testsuite

package
v3.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalHook

type GlobalHook struct {
	T  *testing.T
	TF func(t *testing.T, e *logrus.Entry)
}

func NewGlobalHook

func NewGlobalHook(t *testing.T, tf func(t *testing.T, e *logrus.Entry)) *GlobalHook

NewGlobalHook creates a new GlobalHook for logrus testing

func (*GlobalHook) Cleanup

func (h *GlobalHook) Cleanup()

func (*GlobalHook) Fire

func (h *GlobalHook) Fire(e *logrus.Entry) error

func (*GlobalHook) Levels

func (h *GlobalHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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