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.
Click to show internal directories.
Click to hide internal directories.