Documentation
¶
Overview ¶
Package avrotest holds the must helpers the external test packages share. Each runs one library call and fails the test if it errors, so a test that only needs the successful result reads as one line. The package avro tests cannot import this without an import cycle, so must_test.go keeps its own copies.
Index ¶
- func MustAppendEncode(t testing.TB, s *avro.Schema, dst []byte, v any, opts ...avro.Opt) []byte
- func MustAppendEncodeJSON(t testing.TB, s *avro.Schema, dst []byte, v any, opts ...avro.Opt) []byte
- func MustAppendSingleObject(t testing.TB, s *avro.Schema, dst []byte, v any, opts ...avro.Opt) []byte
- func MustCacheParse(t testing.TB, c *avro.SchemaCache, schema string, opts ...avro.SchemaOpt) *avro.Schema
- func MustClose(t testing.TB, c io.Closer)
- func MustDecode(t testing.TB, s *avro.Schema, src []byte, v any, opts ...avro.Opt) []byte
- func MustDecodeJSON(t testing.TB, s *avro.Schema, src []byte, v any, opts ...avro.Opt)
- func MustDecodeSingleObject(t testing.TB, s *avro.Schema, src []byte, v any, opts ...avro.Opt) []byte
- func MustEncode(t testing.TB, s *avro.Schema, v any, opts ...avro.Opt) []byte
- func MustEncodeJSON(t testing.TB, s *avro.Schema, v any, opts ...avro.Opt) []byte
- func MustNodeSchema(t testing.TB, n *avro.SchemaNode, opts ...avro.SchemaOpt) *avro.Schema
- func MustParse(t testing.TB, schema string, opts ...avro.SchemaOpt) *avro.Schema
- func MustResolve(t testing.TB, writer, reader *avro.Schema) *avro.Schema
- func MustUnmarshal(t testing.TB, data []byte, v any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustAppendEncode ¶
func MustAppendEncodeJSON ¶
func MustAppendSingleObject ¶
func MustCacheParse ¶
func MustDecode ¶
func MustDecodeJSON ¶
func MustDecodeSingleObject ¶
func MustEncodeJSON ¶
func MustNodeSchema ¶
Types ¶
This section is empty.