alogtest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(
	tester Tester,
	opts *AssertOptions,
	ops ...Operation,
) slog.Handler

func Time

func Time() slog.Attr

Types

type AssertOptions

type AssertOptions struct {
	CheckOrder bool
	AddSource  bool
}

type Operation

type Operation struct {
	Level slog.Level
	Msg   string
	Args  []any
}

func Debug

func Debug(msg string, args ...any) Operation

func Error

func Error(msg string, args ...any) Operation

func Info

func Info(msg string, args ...any) Operation

func Warn

func Warn(msg string, args ...any) Operation

type Tester

type Tester interface {
	Fatalf(string, ...any)
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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