-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_Cache_test.go
109 lines (86 loc) · 2.27 KB
/
mock_Cache_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
105
106
107
108
109
// Code generated by mockery v1.1.2. DO NOT EDIT.
package main
import mock "github.com/stretchr/testify/mock"
// MockCache is an autogenerated mock type for the Cache type
type MockCache struct {
mock.Mock
}
// Add provides a mock function with given fields: response
func (_m *MockCache) Add(response Response) {
_m.Called(response)
}
// Clean provides a mock function with given fields:
func (_m *MockCache) Clean() int {
ret := _m.Called()
var r0 int
if rf, ok := ret.Get(0).(func() int); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(int)
}
return r0
}
// Evict provides a mock function with given fields: resp
func (_m *MockCache) Evict(resp Response) {
_m.Called(resp)
}
// Get provides a mock function with given fields: name, qtype
func (_m *MockCache) Get(name string, qtype uint16) (Response, bool) {
ret := _m.Called(name, qtype)
var r0 Response
if rf, ok := ret.Get(0).(func(string, uint16) Response); ok {
r0 = rf(name, qtype)
} else {
r0 = ret.Get(0).(Response)
}
var r1 bool
if rf, ok := ret.Get(1).(func(string, uint16) bool); ok {
r1 = rf(name, qtype)
} else {
r1 = ret.Get(1).(bool)
}
return r0, r1
}
// Lock provides a mock function with given fields:
func (_m *MockCache) Lock() {
_m.Called()
}
// RLock provides a mock function with given fields:
func (_m *MockCache) RLock() {
_m.Called()
}
// RUnlock provides a mock function with given fields:
func (_m *MockCache) RUnlock() {
_m.Called()
}
// Remove provides a mock function with given fields: response
func (_m *MockCache) Remove(response Response) {
_m.Called(response)
}
// RemoveSlice provides a mock function with given fields: responses
func (_m *MockCache) RemoveSlice(responses []Response) {
_m.Called(responses)
}
// Size provides a mock function with given fields:
func (_m *MockCache) Size() int {
ret := _m.Called()
var r0 int
if rf, ok := ret.Get(0).(func() int); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(int)
}
return r0
}
// StartCleaningCrew provides a mock function with given fields:
func (_m *MockCache) StartCleaningCrew() {
_m.Called()
}
// StopCleaningCrew provides a mock function with given fields:
func (_m *MockCache) StopCleaningCrew() {
_m.Called()
}
// Unlock provides a mock function with given fields:
func (_m *MockCache) Unlock() {
_m.Called()
}