testoutput

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(t testing.TB, logger logging.Logger) logging.Logger

Logger wraps a logger at the call point to collect its downstream calls.

func New

func New(t testing.TB) io.Writer

New returns a writer that writes strings (assuming lines) to the testing logger.

func Revert

func Revert() func(*logrus.Logger) error

Revert restores the logger output to write to stderr.

func Setter

func Setter(t testing.TB) func(*logrus.Logger) error

Setter may be given to logging to configure the output to be sent to the testing facade to be interlaced with test output. You should not use parallel tests with this set as they would conflict in that they'd write to the wrong test or write to the Revert'd output if they aren't synchronous.

Types

This section is empty.

Jump to

Keyboard shortcuts

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