testhelper

package
v2.10.10 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyLogger

type DummyLogger struct {
	sync.Mutex
	Msg     string
	AllMsgs []string
}

func NewDummyLogger

func NewDummyLogger(retain uint) *DummyLogger

NewDummyLogger creates a dummy logger and allows to ask for logs to be retained instead of just keeping the most recent. Use retain to provide an initial size estimate on messages (not to provide a max capacity).

func (*DummyLogger) CheckContent

func (l *DummyLogger) CheckContent(t *testing.T, expectedStr string)

func (*DummyLogger) CheckForProhibited

func (l *DummyLogger) CheckForProhibited(t *testing.T, reason, needle string)

func (*DummyLogger) Debugf

func (l *DummyLogger) Debugf(format string, v ...interface{})

func (*DummyLogger) Drain

func (l *DummyLogger) Drain()

func (*DummyLogger) Errorf

func (l *DummyLogger) Errorf(format string, v ...interface{})

func (*DummyLogger) Fatalf

func (l *DummyLogger) Fatalf(format string, v ...interface{})

func (*DummyLogger) Noticef

func (l *DummyLogger) Noticef(format string, v ...interface{})

func (*DummyLogger) Tracef

func (l *DummyLogger) Tracef(format string, v ...interface{})

func (*DummyLogger) Warnf

func (l *DummyLogger) Warnf(format string, v ...interface{})

Jump to

Keyboard shortcuts

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