testlogger

package
v1.23.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 11 Imported by: 2

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 added in v1.23.0

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

func Init added in v1.23.0

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