-
Notifications
You must be signed in to change notification settings - Fork 54
/
loader_mock_test.go
104 lines (88 loc) · 2.89 KB
/
loader_mock_test.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// Code generated by MockGen. DO NOT EDIT.
// Source: ./loader.go
// Package konfig is a generated GoMock package.
package konfig
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
time "time"
)
// MockLoader is a mock of Loader interface
type MockLoader struct {
ctrl *gomock.Controller
recorder *MockLoaderMockRecorder
}
// MockLoaderMockRecorder is the mock recorder for MockLoader
type MockLoaderMockRecorder struct {
mock *MockLoader
}
// NewMockLoader creates a new mock instance
func NewMockLoader(ctrl *gomock.Controller) *MockLoader {
mock := &MockLoader{ctrl: ctrl}
mock.recorder = &MockLoaderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockLoader) EXPECT() *MockLoaderMockRecorder {
return m.recorder
}
// StopOnFailure mocks base method
func (m *MockLoader) StopOnFailure() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StopOnFailure")
ret0, _ := ret[0].(bool)
return ret0
}
// StopOnFailure indicates an expected call of StopOnFailure
func (mr *MockLoaderMockRecorder) StopOnFailure() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopOnFailure", reflect.TypeOf((*MockLoader)(nil).StopOnFailure))
}
// Name mocks base method
func (m *MockLoader) Name() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name
func (mr *MockLoaderMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockLoader)(nil).Name))
}
// Load mocks base method
func (m *MockLoader) Load(arg0 Values) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Load", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Load indicates an expected call of Load
func (mr *MockLoaderMockRecorder) Load(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Load", reflect.TypeOf((*MockLoader)(nil).Load), arg0)
}
// MaxRetry mocks base method
func (m *MockLoader) MaxRetry() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MaxRetry")
ret0, _ := ret[0].(int)
return ret0
}
// MaxRetry indicates an expected call of MaxRetry
func (mr *MockLoaderMockRecorder) MaxRetry() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxRetry", reflect.TypeOf((*MockLoader)(nil).MaxRetry))
}
// RetryDelay mocks base method
func (m *MockLoader) RetryDelay() time.Duration {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RetryDelay")
ret0, _ := ret[0].(time.Duration)
return ret0
}
// RetryDelay indicates an expected call of RetryDelay
func (mr *MockLoaderMockRecorder) RetryDelay() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetryDelay", reflect.TypeOf((*MockLoader)(nil).RetryDelay))
}