0f5a2f4ef5
* enable more linters * Run gofmt -s * run goimports * run unconvert * fix naked return * fix misspellings * fix ineffectual assigments * fix missing declaration * don't use deprecated grpc.Errof * check errors in tests * run gofmt -w -r "assert.Nil(err) -> assert.NoError(err)" * fix directory permissions * don't use nil Context * simplify boolean expressions * use bytes.Equal instead of bytes.Compare * merge variable declarations, remove redundant returns * fix some golint errors * run goimports * handle more errors * delete empty TestMain * delete empty TestMain * ignore examples for now * fix lint errors * remove unused values * more fixes * run gofmt -w -s . * add more comments * fix naming * more lint fixes * try switching travis to go1.11 * fix unnecessary conversions * fix deprecated methods * use go1.10 and disable gofmt/goimports for now * switch to 1.10 * don't re-enable gofmt and goimports * switch covermode to atomic because of -race * gofmt
50 lines
1.5 KiB
Go
50 lines
1.5 KiB
Go
// Copyright (C) 2018 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: storj.io/storj/pkg/miniogw/logging (interfaces: ErrorLogger)
|
|
|
|
// Package logging is a generated GoMock package.
|
|
package logging
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockErrorLogger is a mock of ErrorLogger interface
|
|
type MockErrorLogger struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockErrorLoggerMockRecorder
|
|
}
|
|
|
|
// MockErrorLoggerMockRecorder is the mock recorder for MockErrorLogger
|
|
type MockErrorLoggerMockRecorder struct {
|
|
mock *MockErrorLogger
|
|
}
|
|
|
|
// NewMockErrorLogger creates a new mock instance
|
|
func NewMockErrorLogger(ctrl *gomock.Controller) *MockErrorLogger {
|
|
mock := &MockErrorLogger{ctrl: ctrl}
|
|
mock.recorder = &MockErrorLoggerMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *MockErrorLogger) EXPECT() *MockErrorLoggerMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Errorf mocks base method
|
|
func (m *MockErrorLogger) Errorf(arg0 string, arg1 ...interface{}) {
|
|
varargs := append([]interface{}{arg0}, arg1...)
|
|
m.ctrl.Call(m, "Errorf", varargs...)
|
|
}
|
|
|
|
// Errorf indicates an expected call of Errorf
|
|
func (mr *MockErrorLoggerMockRecorder) Errorf(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
|
|
varargs := append([]interface{}{arg0}, arg1...)
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Errorf", reflect.TypeOf((*MockErrorLogger)(nil).Errorf), varargs...)
|
|
}
|