testutil

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupLogger

func SetupLogger(t testing.TB)

SetupLogger configures the default slog logger for testing.

Types

type TestWriter

type TestWriter struct {
	T testing.TB
}

TestWriter is an io.Writer that writes to test logs.

func (TestWriter) Write

func (t TestWriter) Write(p []byte) (n int, err error)

Write implements io.Writer.

Jump to

Keyboard shortcuts

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