eventbus

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptanceTest

func AcceptanceTest(t *testing.T, bus1, bus2 eh.EventBus, timeout time.Duration)

AcceptanceTest is the acceptance test that all implementations of EventBus should pass. It should manually be called from a test case in each implementation:

func TestEventBus(t *testing.T) {
    bus1 := NewEventBus()
    bus2 := NewEventBus()
    eventbus.AcceptanceTest(t, bus1, bus2)
}

func Benchmark added in v0.8.0

func Benchmark(b *testing.B, bus eh.EventBus)

Benchmark is a benchmark for an event bus implementation.

func LoadTest added in v0.8.0

func LoadTest(t *testing.T, bus eh.EventBus)

LoadTest is a load test for an event bus implementation.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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