mocks

package
v1.13.9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 5 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Entry) Context

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

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

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

func (*Log) Code added in v1.13.1

func (_m *Log) Code(code string) log.Writer

Code provides a mock function with given fields: code

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) Hint added in v1.13.1

func (_m *Log) Hint(hint string) log.Writer

Hint provides a mock function with given fields: hint

func (*Log) In added in v1.13.1

func (_m *Log) In(domain string) log.Writer

In provides a mock function with given fields: domain

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) Owner added in v1.13.1

func (_m *Log) Owner(owner interface{}) log.Writer

Owner provides a mock function with given fields: owner

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) Request added in v1.13.1

func (_m *Log) Request(req http.ContextRequest) log.Writer

Request provides a mock function with given fields: req

func (*Log) Response added in v1.13.1

func (_m *Log) Response(res http.ContextResponse) log.Writer

Response provides a mock function with given fields: res

func (*Log) Tags added in v1.13.1

func (_m *Log) Tags(tags ...string) log.Writer

Tags provides a mock function with given fields: tags

func (*Log) User added in v1.13.1

func (_m *Log) User(user interface{}) log.Writer

User provides a mock function with given fields: user

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) With added in v1.13.1

func (_m *Log) With(data map[string]interface{}) log.Writer

With provides a mock function with given fields: data

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

func (*Writer) Code added in v1.13.1

func (_m *Writer) Code(code string) log.Writer

Code provides a mock function with given fields: code

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) Hint added in v1.13.1

func (_m *Writer) Hint(hint string) log.Writer

Hint provides a mock function with given fields: hint

func (*Writer) In added in v1.13.1

func (_m *Writer) In(domain string) log.Writer

In provides a mock function with given fields: domain

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) Owner added in v1.13.1

func (_m *Writer) Owner(owner interface{}) log.Writer

Owner provides a mock function with given fields: owner

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) Request added in v1.13.1

func (_m *Writer) Request(req http.ContextRequest) log.Writer

Request provides a mock function with given fields: req

func (*Writer) Response added in v1.13.1

func (_m *Writer) Response(res http.ContextResponse) log.Writer

Response provides a mock function with given fields: res

func (*Writer) Tags added in v1.13.1

func (_m *Writer) Tags(tags ...string) log.Writer

Tags provides a mock function with given fields: tags

func (*Writer) User added in v1.13.1

func (_m *Writer) User(user interface{}) log.Writer

User provides a mock function with given fields: user

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

func (*Writer) With added in v1.13.1

func (_m *Writer) With(data map[string]interface{}) log.Writer

With provides a mock function with given fields: data

Jump to

Keyboard shortcuts

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