neoneo-go/pkg/core/state/storage_item_test.go
Evgenii Stratonikov 9abda40171 testserdes: implement helpers for encode/decode routines
Frequently one needs to check if struct serializes/deserializes
properly. This commit implements helpers for such cases including:
1. JSON
2. io.Serializable interface
2020-03-27 10:27:46 +03:00

16 lines
283 B
Go

package state
import (
"testing"
"github.com/nspcc-dev/neo-go/pkg/internal/testserdes"
)
func TestEncodeDecodeStorageItem(t *testing.T) {
storageItem := &StorageItem{
Value: []byte{},
IsConst: false,
}
testserdes.EncodeDecodeBinary(t, storageItem, new(StorageItem))
}