mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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