mock

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerMock

type LoggerMock struct {
	mock.Mock
	log.Logger
	ReceivedCall chan struct{}
	Warns        []string
	Errors       []string
	Panics       []string
}

LoggerMock conforms to the Secretless Logger interface

func NewLogger

func NewLogger() *LoggerMock

NewLogger creates a mock that conforms to the Secretless Logger interface

func (*LoggerMock) CopyWith

func (l *LoggerMock) CopyWith(prefix string, isDebug bool) log.Logger

CopyWith mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Debug

func (l *LoggerMock) Debug(...interface{})

Debug mocks the method of the same name on the log.Logger interface

func (*LoggerMock) DebugEnabled

func (l *LoggerMock) DebugEnabled() bool

DebugEnabled mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Debugf

func (l *LoggerMock) Debugf(string, ...interface{})

Debugf mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Debugln

func (l *LoggerMock) Debugln(...interface{})

Debugln mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Error

func (l *LoggerMock) Error(args ...interface{})

Error mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Errorf

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

Errorf mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Errorln

func (l *LoggerMock) Errorln(args ...interface{})

Errorln mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Info

func (l *LoggerMock) Info(...interface{})

Info mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Infof

func (l *LoggerMock) Infof(string, ...interface{})

Infof mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Infoln

func (l *LoggerMock) Infoln(...interface{})

Infoln mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Panic

func (l *LoggerMock) Panic(args ...interface{})

Panic mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Panicf

func (l *LoggerMock) Panicf(format string, args ...interface{})

Panicf mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Panicln

func (l *LoggerMock) Panicln(args ...interface{})

Panicln mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Prefix

func (l *LoggerMock) Prefix() string

Prefix mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Warn

func (l *LoggerMock) Warn(args ...interface{})

Warn mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Warnf

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

Warnf mocks the method of the same name on the log.Logger interface

func (*LoggerMock) Warnln

func (l *LoggerMock) Warnln(args ...interface{})

Warnln mocks the method of the same name on the log.Logger interface

Jump to

Keyboard shortcuts

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