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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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