testlog

package
v0.0.0-...-8e72de7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capture

func Capture(t *testing.T) func()

Capture captures logs to the given testing.T's Log function. Returns a function that stops capturing logs.

Typical usage:

func MyTest(t *testing.T) {
    stopCapture := testlog.Capture(t)
    defer stopCapture()
    // do stuff
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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