test

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package test contains test helper functions for running generic tests for types implementing perunio serializer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericBrokenPipeTest

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

GenericBrokenPipeTest tests that encoding and decoding on broken streams fails.

func GenericSerializerTest

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

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

func MsgSerializerTest

func MsgSerializerTest(t *testing.T, msg wire.Msg)

MsgSerializerTest performs generic serializer tests on a wire.Msg object. It tests the perunio encoder/decoder implementations on the individual types and the registration of the corresponding decoders.

Types

This section is empty.

Jump to

Keyboard shortcuts

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