prototest

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkRequest

func BenchmarkRequest(b *testing.B, version int16, msg protocol.Message)

func BenchmarkResponse

func BenchmarkResponse(b *testing.B, version int16, msg protocol.Message)

func Bytes

func Bytes(b []byte) protocol.Bytes

Bytes constructs a Bytes which exposes the content of b.

func String

func String(s string) protocol.Bytes

String constructs a Bytes which exposes the content of s.

func TestRequest

func TestRequest(t *testing.T, version int16, msg protocol.Message)

func TestRequestWithOverride

func TestRequestWithOverride(t *testing.T, version int16, msg protocol.Message)

TestRequestWithOverride validates requests that have an overridden type. For requests with type overrides, we double-serialize the request to ensure the resulting encoding of the overridden and original type are identical.

func TestResponse

func TestResponse(t *testing.T, version int16, msg protocol.Message)

Types

This section is empty.

Jump to

Keyboard shortcuts

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