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: script_test.go
    path of file: ./repos/bytom/protocol/vm/vmutil
    
    the code of the file until where you have to start completion: package vmutil

import (
	"crypto/ed25519"
	"encoding/hex"
	"reflect"
	"testing"

	"github.com/bytom/bytom/errors"
)

// TestIsUnspendable ensures the IsUnspendable function returns the expected
// results.
func TestIsUnspendable(t *testing.T) {
	tests := []struct {
		pkScript []byte
		expected bool
	}{
		{
			// Unspendable
			pkScript: []byte{0x6a, 0x04, 0x74, 0x65, 0x73, 0x74},
			expected: true,
		},
		{
			// Spendable
			pkScript: []byte{0x76, 0xa9, 0x14, 0x29, 0x95, 0xa0,
				0xfe, 0x68, 0x43, 0xfa, 0x9b, 0x95, 0x45,
				0x97, 0xf0, 0xdc, 0xa7, 0xa4, 0x4d, 0xf6,
				0xfa, 0x0b, 0x5c, 0x88, 0xac},
			expected: false,
		},
	}

	for i, test := range tests {
		res := IsUnspendable(test.pkScript)
		if res !=
    
func TestGetIssuanceProgramRestrictHeight(t *testing.T) {
	tests := []struct {
		issuanceProgram string
		wantHeight      uint64
	}{
		{
			issuanceProgram: "",
			wantHeight:      0,
		},
		{
			issuanceProgram: "ae20ac20f5cdb9ada2ae9836bcfff32126d6b885aa3f73ee111a95d1bf37f3904aca5151ad",
			wantHeight:      0,
		},
		{
			issuanceProgram: "01c8cda069ae20f44dd85be89de08b0f894476ccc7b3eebcf0a288c79504fa7e4c8033f5b7338020c86dc682ce3ecac64e165d9b5f8cca9ee05bd0d4df07adbfd11251ad7e88f1685152ad",
			wantHeight:      200,
		},
		{
			issuanceProgram: "08c8c8c8c8c8c8c8c8cda069ae20f44dd85be89de08b0f894476ccc7b3eebcf0a288c79504fa7e4c8033f5b7338020c86dc682ce3ecac64e165d9b5f8cca9ee05bd0d4df07adbfd11251ad7e88f1685152ad",
			wantHeight:      14468034567615334600,
		},
	}

	for i, test := range tests {
		program, err := hex.DecodeString(test.issuanceProgram)
		if err != nil {
			t.Fatal(err)
		}
		originProgram := make([]byte, len(program))
		copy(originProgram, program)
		gotHeight := GetIssuanceProgramRestrictHeight(program)
		if gotHeight != test.wantHeight {
			t.Errorf("TestGetIssuanceProgramRestrictHeight #%d failed: got %d want %d", i, gotHeight, test.wantHeight)
			return
		}

		if !reflect.DeepEqual(originProgram, program) {
			t.Errorf("TestGetIssuanceProgramRestrictHeight #%d failed: after got %v before %v", i, program, originProgram)
		}
	}
}