test

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package test contains the generic serializer tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualEncoding

func EqualEncoding(a io.Encoder, b io.Encoder) (bool, error)

EqualEncoding returns whether the two Encoders `a` and `b` encode to the same byteslice or an error when the encoding failed.

func GenericBrokenPipeTest

func GenericBrokenPipeTest(t *testing.T, serializers ...perunio.Serializer)

GenericBrokenPipeTest tests that encoding and decoding on broken streams fails.

func GenericSerializerTest added in v0.2.0

func GenericSerializerTest(t *testing.T, serializers ...perunio.Serializer)

GenericSerializerTest runs multiple tests to check whether encoding and decoding of serializer values works.

Types

This section is empty.

Jump to

Keyboard shortcuts

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