bustest

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package bustest is the psrpc bus conformance harness.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServer

func RegisterServer(name string, fnc ServerFunc)

Registration is per binary, so call this from an init function in a package the test binary imports.

func TestAll

func TestAll(t *testing.T, test func(t *testing.T, bus Connect))

Types

type Connect

type Connect func(t testing.TB, opts ...bus.BusOption) bus.MessageBus

type Server

type Server interface {
	// Repeated calls must return separate peers that can reach each other.
	Connect(t testing.TB, opts ...bus.BusOption) bus.MessageBus
}

func NewLocalBus

func NewLocalBus() Server

type ServerFunc

type ServerFunc func(t testing.TB) Server

Brings up a broker for the duration of the test.

Directories

Path Synopsis
Package dockerutil holds the container plumbing shared by the broker-backed bustest servers.
Package dockerutil holds the container plumbing shared by the broker-backed bustest servers.

Jump to

Keyboard shortcuts

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