wiretest

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package wiretest is the conformance suite for a wire.Codec. A codec that passes Run is interchangeable with every other that does, which is what makes a format written outside this module safe to accept (spec 0003 D12).

func TestConformance(t *testing.T) { wiretest.Run(t, mycodec.Codec) }

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, c wire.Codec)

Run checks c against every fixture, with and without stacks, and then the bounds, nil handling, version and form checks every codec must keep.

Types

This section is empty.

Jump to

Keyboard shortcuts

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