testhelpers

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: AGPL-3.0-or-later Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChanDiscard

func ChanDiscard[T any](ch <-chan T)

ChanDiscard consumes a channel and discards all values.

func ChanLog

func ChanLog[T any](ch <-chan T, logger *slog.Logger)

ChanLog logs a channel's values.

func ChanRequireNoError

func ChanRequireNoError(t testing.TB, ch <-chan error)

ChanRequireNoError consumes a channel and asserts that no error is received.

func NewNopLogger

func NewNopLogger() *slog.Logger

NewNopLogger returns a logger that discards all log output.

func NewTestLogger

func NewTestLogger(t *testing.T) *slog.Logger

NewTestLogger returns a logger that writes to stderr.

func NewTestStore added in v0.0.11

func NewTestStore(t *testing.T, state ...store.State) *store.FileStore

NewTestStore creates a new file system store, isolated in a temporary file, for testing.

func StreamFLV

func StreamFLV(t *testing.T, destURL string)

StreamFLV streams a test video to the given URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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