mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 2 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) AddContext

func (_m *Logger) AddContext(ctx ...interface{}) logger.Logger

AddContext provides a mock function with given fields: ctx

func (*Logger) DebugKV

func (_m *Logger) DebugKV(message string, kvs ...interface{})

DebugKV provides a mock function with given fields: message, kvs

func (*Logger) ErrorKV

func (_m *Logger) ErrorKV(message string, kvs ...interface{})

ErrorKV provides a mock function with given fields: message, kvs

func (*Logger) FatalKV

func (_m *Logger) FatalKV(message string, kvs ...interface{})

FatalKV provides a mock function with given fields: message, kvs

func (*Logger) InfoKV

func (_m *Logger) InfoKV(message string, kvs ...interface{})

InfoKV provides a mock function with given fields: message, kvs

func (*Logger) WarnKV

func (_m *Logger) WarnKV(message string, kvs ...interface{})

WarnKV provides a mock function with given fields: message, kvs

Jump to

Keyboard shortcuts

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