testutils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 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

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

func WaitEngineRunning(e RouteEngine)

Types

type RouteEngine

type RouteEngine interface {
	IsRunning() bool
}

Jump to

Keyboard shortcuts

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