testutils

package
v5.0.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockedLogger

type MockedLogger struct {
	mock.Mock
}

MockedLogger is a mocked logger

func (*MockedLogger) Debugf

func (l *MockedLogger) Debugf(format string, args ...interface{})

Debugf debug format

func (*MockedLogger) Errorf

func (l *MockedLogger) Errorf(format string, args ...interface{})

Errorf error format

func (*MockedLogger) Infof

func (l *MockedLogger) Infof(format string, args ...interface{})

Infof info format

func (*MockedLogger) Warnf

func (l *MockedLogger) Warnf(format string, args ...interface{})

Warnf warning format

type TestLogger

type TestLogger struct {
	F func(format string, args ...interface{})
}

TestLogger a logger that logs to a generic format function, used with testing.T.Logf

func (*TestLogger) Debugf

func (l *TestLogger) Debugf(format string, args ...interface{})

Debugf debug format

func (*TestLogger) Errorf

func (l *TestLogger) Errorf(format string, args ...interface{})

Errorf error format

func (*TestLogger) Infof

func (l *TestLogger) Infof(format string, args ...interface{})

Infof info format

func (*TestLogger) Warnf

func (l *TestLogger) Warnf(format string, args ...interface{})

Warnf warning format

Jump to

Keyboard shortcuts

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