Documentation ¶
Index ¶
- func Decode(data []byte, a encodable) error
- func DecodeBinary(data []byte, a io.Serializable) error
- func Encode(a encodable) ([]byte, error)
- func EncodeBinary(a io.Serializable) ([]byte, error)
- func EncodeDecode(t *testing.T, expected, actual encodable)
- func EncodeDecodeBinary(t *testing.T, expected, actual io.Serializable)
- func MarshalUnmarshalJSON(t *testing.T, expected, actual interface{})
- func ToFromStackItem(t *testing.T, expected, actual stackitem.Convertible)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBinary ¶
func DecodeBinary(data []byte, a io.Serializable) error
DecodeBinary deserializes a from a byte slice.
func EncodeBinary ¶
func EncodeBinary(a io.Serializable) ([]byte, error)
EncodeBinary serializes a to a byte slice.
func EncodeDecode ¶
EncodeDecode checks if expected stays the same after serializing/deserializing via encodable methods.
func EncodeDecodeBinary ¶
func EncodeDecodeBinary(t *testing.T, expected, actual io.Serializable)
EncodeDecodeBinary checks if expected stays the same after serializing/deserializing via io.Serializable methods.
func MarshalUnmarshalJSON ¶
MarshalUnmarshalJSON checks if expected stays the same after marshal/unmarshal via JSON.
func ToFromStackItem ¶ added in v0.96.0
func ToFromStackItem(t *testing.T, expected, actual stackitem.Convertible)
ToFromStackItem checks if expected stays the same after converting to/from StackItem.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.