You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: marshal_test.go
    path of file: ./repos/awless/template
    
    the code of the file until where you have to start completion: package template

import (
	"encoding/json"
	"errors"
	"fmt"
	"reflect"
	"strings"
	"testing"

	"github.com/wallix/awless/template/internal/ast"
)

func TestTemplateIsOneLiner(t *testing.T) {
	tplExec := &TemplateExecution{}
	if err := tplExec.UnmarshalJSON([]byte(`{"commands":[{"line":"create vpc"},{"line": "detach policy"}]}`)); err != nil {
		t.Fatal(err)
	}
	if tp
    
func TestTemplateExecutionUnmarshalFromJSON(t *testing.T) {
	tplExec := &TemplateExecution{}
	err := tplExec.UnmarshalJSON([]byte(`{
		"source": "create stuff",
		"locale": "eu-west-2",
		"message": "Make the CLI great again",
		"profile": "admin",
		"path": "http://gist.com/mytemplate.aws",
		"fillers": {
			"mykey": "myvalue",
			"mysecondkey": "mysecondvalue"
		},
		"id": "123456", "author": "michael", "commands": [
		{"errors": ["first error"], "results": ["vpc-12345"], "line": "create vpc cidr=10.0.0.0/24"},
		{"line": "create subnet"},
		{"errors": ["third error"], "results": ["i-12345"], "line": "create instance type=t2.micro count=4"}
		]
	}`))
	if err != nil {
		t.Fatal(err)
	}

	if got, want := tplExec.Source, "create stuff"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := tplExec.Fillers, map[string]interface{}{"mykey": "myvalue", "mysecondkey": "mysecondvalue"}; !reflect.DeepEqual(got, want) {
		t.Fatalf("got %v, want %v", got, want)
	}

	var cmds []*ast.CommandNode
	for _, cmd := range tplExec.CommandNodesIterator() {
		cmds = append(cmds, cmd)
	}

	if got, want := tplExec.ID, "123456"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := tplExec.Author, "michael"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := tplExec.Locale, "eu-west-2"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := tplExec.Profile, "admin"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := tplExec.Message, "Make the CLI great again"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := tplExec.Path, "http://gist.com/mytemplate.aws"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}

	if got, want := cmds[0].CmdResult, "vpc-12345"; got != want {
		t.Fatalf("got %v, want %v", got, want)
	}
	if got, want := cmds[0].Action, "create"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := cmds[0].Entity, "vpc"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	exp := map[string]interface{}{"cidr": "10.0.0.0/24"}
	if got, want := cmds[0].ToDriverParams(), exp; !reflect.DeepEqual(got, want) {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := cmds[0].CmdErr.Error(), "first error"; got != want {
		t.Fatalf("got %v, want %v", got, want)
	}

	if got, want := cmds[1].Action, "create"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := cmds[1].Entity, "subnet"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := len(cmds[1].ToDriverParams()), 0; got != want {
		t.Fatalf("got %d, want %d", got, want)
	}
	if cmds[1].CmdErr != nil {
		t.Fatal("expected nil error for cmd")
	}

	if got, want := cmds[2].CmdResult, "i-12345"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := cmds[2].Action, "create"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := cmds[2].Entity, "instance"; got != want {
		t.Fatalf("got %s, want %s", got, want)
	}
	exp = map[string]interface{}{"type": "t2.micro", "count": 4}
	if got, want := cmds[2].ToDriverParams(), exp; !reflect.DeepEqual(got, want) {
		t.Fatalf("got %s, want %s", got, want)
	}
	if got, want := cmds[2].CmdErr.Error(), "third error"; got != want {
		t.Fatalf("got %v, want %v", got, want)
	}
}