testing

package
v0.0.0-...-57dcc05 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapCheckLog

func WrapCheckLog(log CheckLogger) logger.Logger

WrapCheckLog returns a checkLogger that logs to the given CheckLog.

func WrapCheckLogForContext

func WrapCheckLogForContext(log CheckLogger) logger.LoggerContext

WrapCheckLogForContext returns a logger.LoggerContext that creates loggers that log to the given CheckLogger.

func WrapCheckLogWithLevel

func WrapCheckLogWithLevel(log CheckLogger, level logger.Level) logger.Logger

WrapCheckLogWithLevel returns a checkLogger that logs to the given CheckLog with the given default level.

Types

type CheckLogger

type CheckLogger interface {
	Logf(string, ...any)
}

CheckLogger is an interface that can be used to log messages to a *testing.T or *check.C.

type RecordLog

type RecordLog func(string, ...any)

RecordLog is a function that records log messages.

func (RecordLog) Logf

func (r RecordLog) Logf(msg string, args ...any)

Logf implements logger.Logger.

Jump to

Keyboard shortcuts

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