avrotest

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustAppendEncode

func MustAppendEncode(t testing.TB, s *avro.Schema, dst []byte, v any, opts ...avro.Opt) []byte

func MustAppendEncodeJSON

func MustAppendEncodeJSON(t testing.TB, s *avro.Schema, dst []byte, v any, opts ...avro.Opt) []byte

func MustAppendSingleObject

func MustAppendSingleObject(t testing.TB, s *avro.Schema, dst []byte, v any, opts ...avro.Opt) []byte

func MustCacheParse

func MustCacheParse(t testing.TB, c *avro.SchemaCache, schema string, opts ...avro.SchemaOpt) *avro.Schema

func MustClose

func MustClose(t testing.TB, c io.Closer)

func MustDecode

func MustDecode(t testing.TB, s *avro.Schema, src []byte, v any, opts ...avro.Opt) []byte

func MustDecodeJSON

func MustDecodeJSON(t testing.TB, s *avro.Schema, src []byte, v any, opts ...avro.Opt)

func MustDecodeSingleObject

func MustDecodeSingleObject(t testing.TB, s *avro.Schema, src []byte, v any, opts ...avro.Opt) []byte

func MustEncode

func MustEncode(t testing.TB, s *avro.Schema, v any, opts ...avro.Opt) []byte

func MustEncodeJSON

func MustEncodeJSON(t testing.TB, s *avro.Schema, v any, opts ...avro.Opt) []byte

func MustNodeSchema

func MustNodeSchema(t testing.TB, n *avro.SchemaNode, opts ...avro.SchemaOpt) *avro.Schema

func MustParse

func MustParse(t testing.TB, schema string, opts ...avro.SchemaOpt) *avro.Schema

func MustResolve

func MustResolve(t testing.TB, writer, reader *avro.Schema) *avro.Schema

func MustUnmarshal

func MustUnmarshal(t testing.TB, data []byte, v any)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL