testutil

package
v2.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartContextRunner

func StartContextRunner(t *testing.T, runner ContextRunner) func()

StartContextRunner starts a context-driven runner and returns a shutdown function that cancels the context and waits for the runner to exit.

Types

type ContextRunner

type ContextRunner interface {
	Run(context.Context)
}

ContextRunner is a minimal interface for background services that are driven by a cancellable context.

Jump to

Keyboard shortcuts

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