mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicLogger added in v0.0.2

type BasicLogger struct {
	mock.Mock
}

BasicLogger is an autogenerated mock type for the BasicLogger type

func NewBasicLogger added in v0.0.2

func NewBasicLogger(t NewBasicLoggerT) *BasicLogger

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

func (*BasicLogger) Debug added in v0.0.2

func (_m *BasicLogger) Debug(_a0 ...interface{})

Debug provides a mock function with given fields: _a0

func (*BasicLogger) Debugf added in v0.0.2

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

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

func (*BasicLogger) Error added in v0.0.2

func (_m *BasicLogger) Error(_a0 ...interface{})

Error provides a mock function with given fields: _a0

func (*BasicLogger) Errorf added in v0.0.2

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

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

func (*BasicLogger) Fatal added in v0.0.2

func (_m *BasicLogger) Fatal(_a0 ...interface{})

Fatal provides a mock function with given fields: _a0

func (*BasicLogger) Fatalf added in v0.0.2

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

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

func (*BasicLogger) Info added in v0.0.2

func (_m *BasicLogger) Info(_a0 ...interface{})

Info provides a mock function with given fields: _a0

func (*BasicLogger) Infof added in v0.0.2

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

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

func (*BasicLogger) Log added in v0.0.2

func (_m *BasicLogger) Log(level logger.Level, args ...interface{})

Log provides a mock function with given fields: level, args

func (*BasicLogger) Logf added in v0.0.2

func (_m *BasicLogger) Logf(level logger.Level, format string, args ...interface{})

Logf provides a mock function with given fields: level, format, args

func (*BasicLogger) Panic added in v0.0.2

func (_m *BasicLogger) Panic(_a0 ...interface{})

Panic provides a mock function with given fields: _a0

func (*BasicLogger) Panicf added in v0.0.2

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

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

func (*BasicLogger) Trace added in v0.0.2

func (_m *BasicLogger) Trace(_a0 ...interface{})

Trace provides a mock function with given fields: _a0

func (*BasicLogger) Tracef added in v0.0.2

func (_m *BasicLogger) Tracef(format string, args ...interface{})

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

func (*BasicLogger) Warn added in v0.0.2

func (_m *BasicLogger) Warn(_a0 ...interface{})

Warn provides a mock function with given fields: _a0

func (*BasicLogger) Warnf added in v0.0.2

func (_m *BasicLogger) Warnf(format string, args ...interface{})

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

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t NewLoggerT) *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) Debug

func (_m *Logger) Debug(_a0 ...interface{})

Debug provides a mock function with given fields: _a0

func (*Logger) Debugf

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

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

func (*Logger) Error

func (_m *Logger) Error(_a0 ...interface{})

Error provides a mock function with given fields: _a0

func (*Logger) Errorf

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

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

func (*Logger) Fatal

func (_m *Logger) Fatal(_a0 ...interface{})

Fatal provides a mock function with given fields: _a0

func (*Logger) Fatalf

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

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

func (*Logger) GetTags

func (_m *Logger) GetTags() []string

GetTags provides a mock function with given fields:

func (*Logger) Info

func (_m *Logger) Info(_a0 ...interface{})

Info provides a mock function with given fields: _a0

func (*Logger) Infof

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

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

func (*Logger) Log

func (_m *Logger) Log(level logger.Level, args ...interface{})

Log provides a mock function with given fields: level, args

func (*Logger) Logf

func (_m *Logger) Logf(level logger.Level, format string, args ...interface{})

Logf provides a mock function with given fields: level, format, args

func (*Logger) Panic

func (_m *Logger) Panic(_a0 ...interface{})

Panic provides a mock function with given fields: _a0

func (*Logger) Panicf

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

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

func (*Logger) SetDefaultContext

func (_m *Logger) SetDefaultContext(ctx context.Context)

SetDefaultContext provides a mock function with given fields: ctx

func (*Logger) SetDefaultField

func (_m *Logger) SetDefaultField(key string, val interface{})

SetDefaultField provides a mock function with given fields: key, val

func (*Logger) SetDefaultFields

func (_m *Logger) SetDefaultFields(fields map[string]interface{})

SetDefaultFields provides a mock function with given fields: fields

func (*Logger) SetDefaultTags

func (_m *Logger) SetDefaultTags(_a0 []string)

SetDefaultTags provides a mock function with given fields: _a0

func (*Logger) SetDefaultTraceID

func (_m *Logger) SetDefaultTraceID(traceID logger.TracerID)

SetDefaultTraceID provides a mock function with given fields: traceID

func (*Logger) SetLevel

func (_m *Logger) SetLevel(level logger.Level)

SetLevel provides a mock function with given fields: level

func (*Logger) SetOutput

func (_m *Logger) SetOutput(output io.Writer)

SetOutput provides a mock function with given fields: output

func (*Logger) Trace

func (_m *Logger) Trace(_a0 ...interface{})

Trace provides a mock function with given fields: _a0

func (*Logger) Tracef

func (_m *Logger) Tracef(format string, args ...interface{})

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

func (*Logger) Warn

func (_m *Logger) Warn(_a0 ...interface{})

Warn provides a mock function with given fields: _a0

func (*Logger) Warnf

func (_m *Logger) Warnf(format string, args ...interface{})

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

func (*Logger) WithContext

func (_m *Logger) WithContext(_a0 context.Context) logger.Logger

WithContext provides a mock function with given fields: _a0

func (*Logger) WithError

func (_m *Logger) WithError(_a0 error) logger.Logger

WithError provides a mock function with given fields: _a0

func (*Logger) WithField

func (_m *Logger) WithField(key string, val interface{}) logger.Logger

WithField provides a mock function with given fields: key, val

func (*Logger) WithFields

func (_m *Logger) WithFields(fields map[string]interface{}) logger.Logger

WithFields provides a mock function with given fields: fields

func (*Logger) WithTags

func (_m *Logger) WithTags(_a0 []string) logger.Logger

WithTags provides a mock function with given fields: _a0

func (*Logger) WithTraceID

func (_m *Logger) WithTraceID(traceID logger.TracerID) logger.Logger

WithTraceID provides a mock function with given fields: traceID

type NewBasicLoggerT added in v0.0.2

type NewBasicLoggerT interface {
	mock.TestingT
	Cleanup(func())
}

type NewLoggerT

type NewLoggerT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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