2020-09-27 14:51:14 -07:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: github.com/tendermint/tendermint/libs/log (interfaces: Logger)
|
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
2021-05-25 02:18:59 -07:00
|
|
|
reflect "reflect"
|
|
|
|
|
2020-09-27 14:51:14 -07:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
log "github.com/tendermint/tendermint/libs/log"
|
|
|
|
)
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// MockLogger is a mock of Logger interface.
|
2020-09-27 14:51:14 -07:00
|
|
|
type MockLogger struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockLoggerMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// MockLoggerMockRecorder is the mock recorder for MockLogger.
|
2020-09-27 14:51:14 -07:00
|
|
|
type MockLoggerMockRecorder struct {
|
|
|
|
mock *MockLogger
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// NewMockLogger creates a new mock instance.
|
2020-09-27 14:51:14 -07:00
|
|
|
func NewMockLogger(ctrl *gomock.Controller) *MockLogger {
|
|
|
|
mock := &MockLogger{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockLoggerMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-09-27 14:51:14 -07:00
|
|
|
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// Debug mocks base method.
|
2020-09-27 14:51:14 -07:00
|
|
|
func (m *MockLogger) Debug(arg0 string, arg1 ...interface{}) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0}
|
|
|
|
for _, a := range arg1 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
m.ctrl.Call(m, "Debug", varargs...)
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// Debug indicates an expected call of Debug.
|
2020-09-27 14:51:14 -07:00
|
|
|
func (mr *MockLoggerMockRecorder) Debug(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0}, arg1...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Debug", reflect.TypeOf((*MockLogger)(nil).Debug), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// Error mocks base method.
|
2020-09-27 14:51:14 -07:00
|
|
|
func (m *MockLogger) Error(arg0 string, arg1 ...interface{}) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0}
|
|
|
|
for _, a := range arg1 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
m.ctrl.Call(m, "Error", varargs...)
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// Error indicates an expected call of Error.
|
2020-09-27 14:51:14 -07:00
|
|
|
func (mr *MockLoggerMockRecorder) Error(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0}, arg1...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Error", reflect.TypeOf((*MockLogger)(nil).Error), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// Info mocks base method.
|
2020-09-27 14:51:14 -07:00
|
|
|
func (m *MockLogger) Info(arg0 string, arg1 ...interface{}) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0}
|
|
|
|
for _, a := range arg1 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
m.ctrl.Call(m, "Info", varargs...)
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// Info indicates an expected call of Info.
|
2020-09-27 14:51:14 -07:00
|
|
|
func (mr *MockLoggerMockRecorder) Info(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0}, arg1...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Info", reflect.TypeOf((*MockLogger)(nil).Info), varargs...)
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// With mocks base method.
|
2020-09-27 14:51:14 -07:00
|
|
|
func (m *MockLogger) With(arg0 ...interface{}) log.Logger {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{}
|
|
|
|
for _, a := range arg0 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "With", varargs...)
|
|
|
|
ret0, _ := ret[0].(log.Logger)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-05-25 02:18:59 -07:00
|
|
|
// With indicates an expected call of With.
|
2020-09-27 14:51:14 -07:00
|
|
|
func (mr *MockLoggerMockRecorder) With(arg0 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "With", reflect.TypeOf((*MockLogger)(nil).With), arg0...)
|
|
|
|
}
|