test

package
v2.0.0-preview4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 9 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)

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