mocks

package
v0.0.0-...-2b5ea0c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrInfoExtractor

type ErrInfoExtractor struct {
	mock.Mock
}

ErrInfoExtractor is an autogenerated mock type for the ErrInfoExtractor type

func NewErrInfoExtractor

func NewErrInfoExtractor(t mockConstructorTestingTNewErrInfoExtractor) *ErrInfoExtractor

NewErrInfoExtractor creates a new instance of ErrInfoExtractor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ErrInfoExtractor) Execute

func (_m *ErrInfoExtractor) Execute(_a0 error) string

Execute provides a mock function with given fields: _a0

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t mockConstructorTestingTNewLogger) *Logger

NewLogger creates a new instance of Logger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Logger) Debug

func (_m *Logger) Debug(msg string)

Debug provides a mock function with given fields: msg

func (*Logger) Error

func (_m *Logger) Error(msg string)

Error provides a mock function with given fields: msg

func (*Logger) Flush

func (_m *Logger) Flush() error

Flush provides a mock function with given fields:

func (*Logger) Info

func (_m *Logger) Info(msg string)

Info provides a mock function with given fields: msg

func (*Logger) Warn

func (_m *Logger) Warn(msg string)

Warn provides a mock function with given fields: msg

func (*Logger) WithError

func (_m *Logger) WithError(err error) logging.Logger

WithError provides a mock function with given fields: err

func (*Logger) WithField

func (_m *Logger) WithField(key string, value interface{}) logging.Logger

WithField provides a mock function with given fields: key, value

func (*Logger) WithFields

func (_m *Logger) WithFields(fields logging.Fields) logging.Logger

WithFields provides a mock function with given fields: fields

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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