mocks

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	mock.Mock
}

Entry is an autogenerated mock type for the Entry type

func NewEntry

func NewEntry(t mockConstructorTestingTNewEntry) *Entry

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

func (*Entry) Context

func (_m *Entry) Context() context.Context

Context provides a mock function with given fields:

func (*Entry) GetLevel

func (_m *Entry) GetLevel() log.Level

GetLevel provides a mock function with given fields:

func (*Entry) GetMessage

func (_m *Entry) GetMessage() string

GetMessage provides a mock function with given fields:

func (*Entry) GetTime

func (_m *Entry) GetTime() time.Time

GetTime provides a mock function with given fields:

func (*Entry) Level

func (_m *Entry) Level() log.Level

Level provides a mock function with given fields:

func (*Entry) Message

func (_m *Entry) Message() string

Message provides a mock function with given fields:

func (*Entry) Time

func (_m *Entry) Time() time.Time

Time provides a mock function with given fields:

type Hook

type Hook struct {
	mock.Mock
}

Hook is an autogenerated mock type for the Hook type

func NewHook

func NewHook(t mockConstructorTestingTNewHook) *Hook

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

func (*Hook) Fire

func (_m *Hook) Fire(_a0 log.Entry) error

Fire provides a mock function with given fields: _a0

func (*Hook) Levels

func (_m *Hook) Levels() []log.Level

Levels provides a mock function with given fields:

type Log

type Log struct {
	mock.Mock
}

Log is an autogenerated mock type for the Log type

func NewLog

func NewLog(t mockConstructorTestingTNewLog) *Log

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

func (*Log) Debug

func (_m *Log) Debug(args ...interface{})

Debug provides a mock function with given fields: args

func (*Log) Debugf

func (_m *Log) Debugf(format string, args ...interface{})

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

func (*Log) Error

func (_m *Log) Error(args ...interface{})

Error provides a mock function with given fields: args

func (*Log) Errorf

func (_m *Log) Errorf(format string, args ...interface{})

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

func (*Log) Fatal

func (_m *Log) Fatal(args ...interface{})

Fatal provides a mock function with given fields: args

func (*Log) Fatalf

func (_m *Log) Fatalf(format string, args ...interface{})

Fatalf provides a mock function with given fields: format, args

func (*Log) Info

func (_m *Log) Info(args ...interface{})

Info provides a mock function with given fields: args

func (*Log) Infof

func (_m *Log) Infof(format string, args ...interface{})

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

func (*Log) Panic

func (_m *Log) Panic(args ...interface{})

Panic provides a mock function with given fields: args

func (*Log) Panicf

func (_m *Log) Panicf(format string, args ...interface{})

Panicf provides a mock function with given fields: format, args

func (*Log) Warning

func (_m *Log) Warning(args ...interface{})

Warning provides a mock function with given fields: args

func (*Log) Warningf

func (_m *Log) Warningf(format string, args ...interface{})

Warningf provides a mock function with given fields: format, args

func (*Log) WithContext

func (_m *Log) WithContext(ctx context.Context) log.Writer

WithContext provides a mock function with given fields: ctx

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) Handle

func (_m *Logger) Handle(channel string) (log.Hook, error)

Handle provides a mock function with given fields: channel

type Writer

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func NewWriter

func NewWriter(t mockConstructorTestingTNewWriter) *Writer

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

func (*Writer) Debug

func (_m *Writer) Debug(args ...interface{})

Debug provides a mock function with given fields: args

func (*Writer) Debugf

func (_m *Writer) Debugf(format string, args ...interface{})

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

func (*Writer) Error

func (_m *Writer) Error(args ...interface{})

Error provides a mock function with given fields: args

func (*Writer) Errorf

func (_m *Writer) Errorf(format string, args ...interface{})

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

func (*Writer) Fatal

func (_m *Writer) Fatal(args ...interface{})

Fatal provides a mock function with given fields: args

func (*Writer) Fatalf

func (_m *Writer) Fatalf(format string, args ...interface{})

Fatalf provides a mock function with given fields: format, args

func (*Writer) Info

func (_m *Writer) Info(args ...interface{})

Info provides a mock function with given fields: args

func (*Writer) Infof

func (_m *Writer) Infof(format string, args ...interface{})

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

func (*Writer) Panic

func (_m *Writer) Panic(args ...interface{})

Panic provides a mock function with given fields: args

func (*Writer) Panicf

func (_m *Writer) Panicf(format string, args ...interface{})

Panicf provides a mock function with given fields: format, args

func (*Writer) Warning

func (_m *Writer) Warning(args ...interface{})

Warning provides a mock function with given fields: args

func (*Writer) Warningf

func (_m *Writer) Warningf(format string, args ...interface{})

Warningf provides a mock function with given fields: format, args

Jump to

Keyboard shortcuts

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