test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disposable

type Disposable interface {
	Dispose()
}

Disposable represents a resource that needs to be explicitly freed.

func RedirectLogs

func RedirectLogs(t *testing.T) Disposable

RedirectLogs redirects the output of logrus' standard logger to a testing.T and returns a Disposable that restores the standard logger's output to the output when RedirectLogs was called once Dispose is called.

Jump to

Keyboard shortcuts

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