testlogger

package
v0.0.0-...-e61ee7f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestTimeout   = 10 * time.Minute
	TestSlowRun   = 10 * time.Second
	TestSlowFlush = 1 * time.Second
)
View Source
var WriterCloser = &testLoggerWriterCloser{}

Functions

func Fatalf

func Fatalf(format string, args ...any)

func Init

func Init()

func PrintCurrentTest

func PrintCurrentTest(t testing.TB, skip ...int) func()

PrintCurrentTest prints the current test to os.Stdout

func Printf

func Printf(format string, args ...any)

Printf takes a format and args and prints the string to os.Stdout

Types

type TestLogEventWriter

type TestLogEventWriter struct {
	*log.EventWriterBaseImpl
}

TestLogEventWriter is a logger which will write to the testing log

Jump to

Keyboard shortcuts

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