test

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package test provides re-usable functions for binding tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkSendReceive

func BenchmarkSendReceive(b *testing.B, s protocol.Sender, r protocol.Receiver)

BenchmarkSendReceive implements a simple send/receive benchmark. Requires a sender and receiver that are connected to each other.

func SendReceive

func SendReceive(t *testing.T, ctx context.Context, in binding.Message, s protocol.Sender, r protocol.Receiver, outAssert func(binding.Message))

SendReceive does s.Send(in), then it receives the message in r.Receive() and executes outAssert Halt test on error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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