testutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LevelLogger

func LevelLogger(tb testing.TB, level slog.Leveler) *slog.Logger

LevelLogger returns a slog test logger for the given level (which might be dynamic).

func Logger

func Logger(tb testing.TB) *slog.Logger

Logger returns slog test logger.

func MustParseDumpFile

func MustParseDumpFile(path ...string) []byte

MustParseDumpFile panics if fails to parse file input to byte array.

func ParseDump

func ParseDump(s string) ([]byte, error)

ParseDump decodes from hex dump to the byte array.

func Unindent

func Unindent(tb testing.TB, s string) string

Unindent removes the common number of leading tabs from all lines in s.

Types

This section is empty.

Jump to

Keyboard shortcuts

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