Documentation ¶
Index ¶
- func AssertDecode(t *testing.T, decodingAsserts []DecodingAssert)
- func AssertDecodeNilData[T any](t *testing.T)
- func AssertEncode(t *testing.T, encodingAsserts []EncodingAssert)
- func AssertEncodeEmptyObj[T any](t *testing.T, expectedByteLen int)
- func AssertEncodeToHex(t *testing.T, encodeToHexAsserts []EncodeToHexAssert)
- func AssertEncodedLength(t *testing.T, encodedLengthAsserts []EncodedLengthAssert)
- func AssertEq(t *testing.T, eqAsserts []EqAssert)
- func AssertEqual(t *testing.T, a interface{}, b interface{})
- func AssertHash(t *testing.T, hashAsserts []HashAssert)
- func AssertJSONRoundTrip[T any, U jsonMarshalerUnmarshaler[T]](t *testing.T, value U)
- func AssertRoundTripFuzz[T any](t *testing.T, fuzzCount int, fuzzOpts ...FuzzOpt)
- func AssertRoundtrip(t *testing.T, value interface{})
- func AssertString(t *testing.T, stringAsserts []StringAssert)
- type DecodingAssert
- type EncodeToHexAssert
- type EncodedLengthAssert
- type EncodingAssert
- type EqAssert
- type FuzzOpt
- type HashAssert
- type StringAssert
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDecode ¶
func AssertDecode(t *testing.T, decodingAsserts []DecodingAssert)
func AssertDecodeNilData ¶
func AssertEncode ¶
func AssertEncode(t *testing.T, encodingAsserts []EncodingAssert)
func AssertEncodeToHex ¶
func AssertEncodeToHex(t *testing.T, encodeToHexAsserts []EncodeToHexAssert)
func AssertEncodedLength ¶
func AssertEncodedLength(t *testing.T, encodedLengthAsserts []EncodedLengthAssert)
func AssertEqual ¶
func AssertHash ¶
func AssertHash(t *testing.T, hashAsserts []HashAssert)
func AssertJSONRoundTrip ¶
func AssertRoundTripFuzz ¶
func AssertRoundtrip ¶
func AssertString ¶
func AssertString(t *testing.T, stringAsserts []StringAssert)
Types ¶
type DecodingAssert ¶
type DecodingAssert struct { Input []byte Expected interface{} }
type EncodeToHexAssert ¶
type EncodeToHexAssert struct { Input interface{} Expected string }
type EncodedLengthAssert ¶
type EncodedLengthAssert struct { Input interface{} Expected int }
type EncodingAssert ¶
type EncodingAssert struct { Input interface{} Expected []byte }
type FuzzOpt ¶
func CombineFuzzOpts ¶
func WithFuzzFuncs ¶
func WithMaxDepth ¶
func WithNilChance ¶
func WithNumElements ¶
type HashAssert ¶
type HashAssert struct { Input interface{} Expected []byte }
type StringAssert ¶
type StringAssert struct { Input interface{} Expected string }
Click to show internal directories.
Click to hide internal directories.