hivetest

package
v0.0.0-...-d997f86 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package hivetest makes testing components using hive easier.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lifecycle

func Lifecycle(tb testing.TB) *lifecycle

Lifecycle returns a cell.Lifecycle which executes start hooks immediately and queues stop hooks for the end of the test.

func Logger

func Logger(t testing.TB, opts ...LogOption) *slog.Logger

Logger returns a logger which forwards structured logs to t.

Types

type LogOption

type LogOption func(*testHandler)

func LogLevel

func LogLevel(l slog.Level) LogOption

Jump to

Keyboard shortcuts

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