mocks

package
v1.0.24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Logger) Debug

func (_m *Logger) Debug(msg string, args ...any)

Debug provides a mock function with given fields: msg, args

func (*Logger) Debugf

func (_m *Logger) Debugf(msg string, args ...any)

Debugf provides a mock function with given fields: msg, args

func (*Logger) Error

func (_m *Logger) Error(msg string, args ...any)

Error provides a mock function with given fields: msg, args

func (*Logger) Errorf

func (_m *Logger) Errorf(msg string, args ...any)

Errorf provides a mock function with given fields: msg, args

func (*Logger) Info

func (_m *Logger) Info(msg string, args ...any)

Info provides a mock function with given fields: msg, args

func (*Logger) Infof

func (_m *Logger) Infof(msg string, args ...any)

Infof provides a mock function with given fields: msg, args

func (*Logger) LogLevel

func (_m *Logger) LogLevel() string

LogLevel provides a mock function with given fields:

func (*Logger) SetLogLevel

func (_m *Logger) SetLogLevel(logLevel string) error

SetLogLevel provides a mock function with given fields: logLevel

func (*Logger) Trace

func (_m *Logger) Trace(msg string, args ...any)

Trace provides a mock function with given fields: msg, args

func (*Logger) Tracef

func (_m *Logger) Tracef(msg string, args ...any)

Tracef provides a mock function with given fields: msg, args

func (*Logger) Warn

func (_m *Logger) Warn(msg string, args ...any)

Warn provides a mock function with given fields: msg, args

func (*Logger) Warnf

func (_m *Logger) Warnf(msg string, args ...any)

Warnf provides a mock function with given fields: msg, args

Jump to

Keyboard shortcuts

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