-
Notifications
You must be signed in to change notification settings - Fork 281
/
gc_mock.go
99 lines (82 loc) · 2.56 KB
/
gc_mock.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
// Code generated by MockGen. DO NOT EDIT.
// Source: d7y.io/dragonfly/v2/pkg/gc (interfaces: GC)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
gc "d7y.io/dragonfly/v2/pkg/gc"
gomock "github.com/golang/mock/gomock"
)
// MockGC is a mock of GC interface.
type MockGC struct {
ctrl *gomock.Controller
recorder *MockGCMockRecorder
}
// MockGCMockRecorder is the mock recorder for MockGC.
type MockGCMockRecorder struct {
mock *MockGC
}
// NewMockGC creates a new mock instance.
func NewMockGC(ctrl *gomock.Controller) *MockGC {
mock := &MockGC{ctrl: ctrl}
mock.recorder = &MockGCMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockGC) EXPECT() *MockGCMockRecorder {
return m.recorder
}
// Add mocks base method.
func (m *MockGC) Add(arg0 gc.Task) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Add", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Add indicates an expected call of Add.
func (mr *MockGCMockRecorder) Add(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockGC)(nil).Add), arg0)
}
// Run mocks base method.
func (m *MockGC) Run(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Run", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Run indicates an expected call of Run.
func (mr *MockGCMockRecorder) Run(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockGC)(nil).Run), arg0)
}
// RunAll mocks base method.
func (m *MockGC) RunAll() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "RunAll")
}
// RunAll indicates an expected call of RunAll.
func (mr *MockGCMockRecorder) RunAll() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunAll", reflect.TypeOf((*MockGC)(nil).RunAll))
}
// Serve mocks base method.
func (m *MockGC) Serve() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Serve")
}
// Serve indicates an expected call of Serve.
func (mr *MockGCMockRecorder) Serve() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Serve", reflect.TypeOf((*MockGC)(nil).Serve))
}
// Stop mocks base method.
func (m *MockGC) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop.
func (mr *MockGCMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockGC)(nil).Stop))
}