package
Version:
v0.0.0-...-8e72de7
Opens a new window with list of versions in this module.
Published: May 3, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.