testlib

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeLogger

func MakeLogger(tb testing.TB) log.FieldLogger

MakeLogger creates a log.FieldLogger that routes to tb.Log.

func NewLoggerEntry

func NewLoggerEntry() *logrus.Entry

NewLoggerEntry returns a new logger entry instance.

Types

type MockedFieldLogger

type MockedFieldLogger struct {
	Logger *mocks.MockFieldLogger
}

MockedFieldLogger supplies a mocked library for testing logs.

func NewMockedFieldLogger

func NewMockedFieldLogger(ctrl *gomock.Controller) *MockedFieldLogger

NewMockedFieldLogger returns a instance of FieldLogger for testing.

Jump to

Keyboard shortcuts

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