testutils

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestListener added in v0.10.4

func NewTestListener(tb testing.TB) net.Listener

NewTestListener creates a TCP listener on a random available port. It calls tb.Fatal if the listener cannot be created. The caller is responsible for closing the listener (usually via defer).

func WaitEngineRunning added in v0.10.0

func WaitEngineRunning(e RouteEngine)

Types

type RouteEngine added in v0.10.0

type RouteEngine interface {
	IsRunning() bool
}

Jump to

Keyboard shortcuts

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