-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmock_field_logger.go
45 lines (36 loc) · 981 Bytes
/
mock_field_logger.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package httplog
import "github.com/stretchr/testify/mock"
// MockFieldLogger is an autogenerated mock type for the FieldLogger type
type MockFieldLogger struct {
mock.Mock
}
// Log provides a mock function with given fields: args
func (_m *MockFieldLogger) Log(args ...interface{}) {
_m.Called(args)
}
// WithError provides a mock function with given fields: err
func (_m *MockFieldLogger) WithError(err error) FieldLogger {
ret := _m.Called(err)
var r0 FieldLogger
if rf, ok := ret.Get(0).(func(error) FieldLogger); ok {
r0 = rf(err)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(FieldLogger)
}
}
return r0
}
// WithFields provides a mock function with given fields: fields
func (_m *MockFieldLogger) WithFields(fields Fields) FieldLogger {
ret := _m.Called(fields)
var r0 FieldLogger
if rf, ok := ret.Get(0).(func(Fields) FieldLogger); ok {
r0 = rf(fields)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(FieldLogger)
}
}
return r0
}