logtest

package
Version: v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package doctest contains utilities for mocking logs in unit tests.

Package logtest is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLoggable

type MockLoggable struct {
	// contains filtered or unexported fields
}

MockLoggable is a mock of Loggable interface.

func NewMockLoggable

func NewMockLoggable(ctrl *gomock.Controller) *MockLoggable

NewMockLoggable creates a new mock instance.

func (*MockLoggable) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLoggable) Loggable

func (m *MockLoggable) Loggable() map[string]interface{}

Loggable mocks base method.

type MockLoggableMockRecorder

type MockLoggableMockRecorder struct {
	// contains filtered or unexported fields
}

MockLoggableMockRecorder is the mock recorder for MockLoggable.

func (*MockLoggableMockRecorder) Loggable

func (mr *MockLoggableMockRecorder) Loggable() *gomock.Call

Loggable indicates an expected call of Loggable.

type MockLogger

type MockLogger struct {
	// contains filtered or unexported fields
}

MockLogger is a mock of Logger interface.

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) Debug

func (m *MockLogger) Debug(arg0 ...interface{})

Debug mocks base method.

func (*MockLogger) Debugf

func (m *MockLogger) Debugf(arg0 string, arg1 ...interface{})

Debugf mocks base method.

func (*MockLogger) Debugln

func (m *MockLogger) Debugln(arg0 ...interface{})

Debugln mocks base method.

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLogger) Error

func (m *MockLogger) Error(arg0 ...interface{})

Error mocks base method.

func (*MockLogger) Errorf

func (m *MockLogger) Errorf(arg0 string, arg1 ...interface{})

Errorf mocks base method.

func (*MockLogger) Errorln

func (m *MockLogger) Errorln(arg0 ...interface{})

Errorln mocks base method.

func (*MockLogger) Fatal

func (m *MockLogger) Fatal(arg0 ...interface{})

Fatal mocks base method.

func (*MockLogger) Fatalf

func (m *MockLogger) Fatalf(arg0 string, arg1 ...interface{})

Fatalf mocks base method.

func (*MockLogger) Fatalln

func (m *MockLogger) Fatalln(arg0 ...interface{})

Fatalln mocks base method.

func (*MockLogger) Info

func (m *MockLogger) Info(arg0 ...interface{})

Info mocks base method.

func (*MockLogger) Infof

func (m *MockLogger) Infof(arg0 string, arg1 ...interface{})

Infof mocks base method.

func (*MockLogger) Infoln

func (m *MockLogger) Infoln(arg0 ...interface{})

Infoln mocks base method.

func (*MockLogger) Trace

func (m *MockLogger) Trace(arg0 ...interface{})

Trace mocks base method.

func (*MockLogger) Tracef

func (m *MockLogger) Tracef(arg0 string, arg1 ...interface{})

Tracef mocks base method.

func (*MockLogger) Traceln

func (m *MockLogger) Traceln(arg0 ...interface{})

Traceln mocks base method.

func (*MockLogger) Warn

func (m *MockLogger) Warn(arg0 ...interface{})

Warn mocks base method.

func (*MockLogger) Warnf

func (m *MockLogger) Warnf(arg0 string, arg1 ...interface{})

Warnf mocks base method.

func (*MockLogger) Warnln

func (m *MockLogger) Warnln(arg0 ...interface{})

Warnln mocks base method.

func (*MockLogger) With

func (m *MockLogger) With(arg0 log.Loggable) log.Logger

With mocks base method.

func (*MockLogger) WithError

func (m *MockLogger) WithError(arg0 error) log.Logger

WithError mocks base method.

func (*MockLogger) WithField

func (m *MockLogger) WithField(arg0 string, arg1 interface{}) log.Logger

WithField mocks base method.

func (*MockLogger) WithFields

func (m *MockLogger) WithFields(arg0 logrus.Fields) log.Logger

WithFields mocks base method.

type MockLoggerMockRecorder

type MockLoggerMockRecorder struct {
	// contains filtered or unexported fields
}

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Debug

func (mr *MockLoggerMockRecorder) Debug(arg0 ...interface{}) *gomock.Call

Debug indicates an expected call of Debug.

func (*MockLoggerMockRecorder) Debugf

func (mr *MockLoggerMockRecorder) Debugf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Debugf indicates an expected call of Debugf.

func (*MockLoggerMockRecorder) Debugln

func (mr *MockLoggerMockRecorder) Debugln(arg0 ...interface{}) *gomock.Call

Debugln indicates an expected call of Debugln.

func (*MockLoggerMockRecorder) Error

func (mr *MockLoggerMockRecorder) Error(arg0 ...interface{}) *gomock.Call

Error indicates an expected call of Error.

func (*MockLoggerMockRecorder) Errorf

func (mr *MockLoggerMockRecorder) Errorf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Errorf indicates an expected call of Errorf.

func (*MockLoggerMockRecorder) Errorln

func (mr *MockLoggerMockRecorder) Errorln(arg0 ...interface{}) *gomock.Call

Errorln indicates an expected call of Errorln.

func (*MockLoggerMockRecorder) Fatal

func (mr *MockLoggerMockRecorder) Fatal(arg0 ...interface{}) *gomock.Call

Fatal indicates an expected call of Fatal.

func (*MockLoggerMockRecorder) Fatalf

func (mr *MockLoggerMockRecorder) Fatalf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Fatalf indicates an expected call of Fatalf.

func (*MockLoggerMockRecorder) Fatalln

func (mr *MockLoggerMockRecorder) Fatalln(arg0 ...interface{}) *gomock.Call

Fatalln indicates an expected call of Fatalln.

func (*MockLoggerMockRecorder) Info

func (mr *MockLoggerMockRecorder) Info(arg0 ...interface{}) *gomock.Call

Info indicates an expected call of Info.

func (*MockLoggerMockRecorder) Infof

func (mr *MockLoggerMockRecorder) Infof(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Infof indicates an expected call of Infof.

func (*MockLoggerMockRecorder) Infoln

func (mr *MockLoggerMockRecorder) Infoln(arg0 ...interface{}) *gomock.Call

Infoln indicates an expected call of Infoln.

func (*MockLoggerMockRecorder) Trace

func (mr *MockLoggerMockRecorder) Trace(arg0 ...interface{}) *gomock.Call

Trace indicates an expected call of Trace.

func (*MockLoggerMockRecorder) Tracef

func (mr *MockLoggerMockRecorder) Tracef(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Tracef indicates an expected call of Tracef.

func (*MockLoggerMockRecorder) Traceln

func (mr *MockLoggerMockRecorder) Traceln(arg0 ...interface{}) *gomock.Call

Traceln indicates an expected call of Traceln.

func (*MockLoggerMockRecorder) Warn

func (mr *MockLoggerMockRecorder) Warn(arg0 ...interface{}) *gomock.Call

Warn indicates an expected call of Warn.

func (*MockLoggerMockRecorder) Warnf

func (mr *MockLoggerMockRecorder) Warnf(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Warnf indicates an expected call of Warnf.

func (*MockLoggerMockRecorder) Warnln

func (mr *MockLoggerMockRecorder) Warnln(arg0 ...interface{}) *gomock.Call

Warnln indicates an expected call of Warnln.

func (*MockLoggerMockRecorder) With

func (mr *MockLoggerMockRecorder) With(arg0 interface{}) *gomock.Call

With indicates an expected call of With.

func (*MockLoggerMockRecorder) WithError

func (mr *MockLoggerMockRecorder) WithError(arg0 interface{}) *gomock.Call

WithError indicates an expected call of WithError.

func (*MockLoggerMockRecorder) WithField

func (mr *MockLoggerMockRecorder) WithField(arg0, arg1 interface{}) *gomock.Call

WithField indicates an expected call of WithField.

func (*MockLoggerMockRecorder) WithFields

func (mr *MockLoggerMockRecorder) WithFields(arg0 interface{}) *gomock.Call

WithFields indicates an expected call of WithFields.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL