-
Notifications
You must be signed in to change notification settings - Fork 261
/
dfpath_mock.go
193 lines (165 loc) · 5.68 KB
/
dfpath_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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
// Code generated by MockGen. DO NOT EDIT.
// Source: dfpath.go
//
// Generated by this command:
//
// mockgen -destination mocks/dfpath_mock.go -source dfpath.go -package mocks
//
// Package mocks is a generated GoMock package.
package mocks
import (
fs "io/fs"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockDfpath is a mock of Dfpath interface.
type MockDfpath struct {
ctrl *gomock.Controller
recorder *MockDfpathMockRecorder
}
// MockDfpathMockRecorder is the mock recorder for MockDfpath.
type MockDfpathMockRecorder struct {
mock *MockDfpath
}
// NewMockDfpath creates a new mock instance.
func NewMockDfpath(ctrl *gomock.Controller) *MockDfpath {
mock := &MockDfpath{ctrl: ctrl}
mock.recorder = &MockDfpathMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockDfpath) EXPECT() *MockDfpathMockRecorder {
return m.recorder
}
// CacheDir mocks base method.
func (m *MockDfpath) CacheDir() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CacheDir")
ret0, _ := ret[0].(string)
return ret0
}
// CacheDir indicates an expected call of CacheDir.
func (mr *MockDfpathMockRecorder) CacheDir() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CacheDir", reflect.TypeOf((*MockDfpath)(nil).CacheDir))
}
// CacheDirMode mocks base method.
func (m *MockDfpath) CacheDirMode() fs.FileMode {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CacheDirMode")
ret0, _ := ret[0].(fs.FileMode)
return ret0
}
// CacheDirMode indicates an expected call of CacheDirMode.
func (mr *MockDfpathMockRecorder) CacheDirMode() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CacheDirMode", reflect.TypeOf((*MockDfpath)(nil).CacheDirMode))
}
// DaemonLockPath mocks base method.
func (m *MockDfpath) DaemonLockPath() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DaemonLockPath")
ret0, _ := ret[0].(string)
return ret0
}
// DaemonLockPath indicates an expected call of DaemonLockPath.
func (mr *MockDfpathMockRecorder) DaemonLockPath() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DaemonLockPath", reflect.TypeOf((*MockDfpath)(nil).DaemonLockPath))
}
// DaemonSockPath mocks base method.
func (m *MockDfpath) DaemonSockPath() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DaemonSockPath")
ret0, _ := ret[0].(string)
return ret0
}
// DaemonSockPath indicates an expected call of DaemonSockPath.
func (mr *MockDfpathMockRecorder) DaemonSockPath() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DaemonSockPath", reflect.TypeOf((*MockDfpath)(nil).DaemonSockPath))
}
// DataDir mocks base method.
func (m *MockDfpath) DataDir() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DataDir")
ret0, _ := ret[0].(string)
return ret0
}
// DataDir indicates an expected call of DataDir.
func (mr *MockDfpathMockRecorder) DataDir() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DataDir", reflect.TypeOf((*MockDfpath)(nil).DataDir))
}
// DataDirMode mocks base method.
func (m *MockDfpath) DataDirMode() fs.FileMode {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DataDirMode")
ret0, _ := ret[0].(fs.FileMode)
return ret0
}
// DataDirMode indicates an expected call of DataDirMode.
func (mr *MockDfpathMockRecorder) DataDirMode() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DataDirMode", reflect.TypeOf((*MockDfpath)(nil).DataDirMode))
}
// DfgetLockPath mocks base method.
func (m *MockDfpath) DfgetLockPath() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DfgetLockPath")
ret0, _ := ret[0].(string)
return ret0
}
// DfgetLockPath indicates an expected call of DfgetLockPath.
func (mr *MockDfpathMockRecorder) DfgetLockPath() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DfgetLockPath", reflect.TypeOf((*MockDfpath)(nil).DfgetLockPath))
}
// LogDir mocks base method.
func (m *MockDfpath) LogDir() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LogDir")
ret0, _ := ret[0].(string)
return ret0
}
// LogDir indicates an expected call of LogDir.
func (mr *MockDfpathMockRecorder) LogDir() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LogDir", reflect.TypeOf((*MockDfpath)(nil).LogDir))
}
// PluginDir mocks base method.
func (m *MockDfpath) PluginDir() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PluginDir")
ret0, _ := ret[0].(string)
return ret0
}
// PluginDir indicates an expected call of PluginDir.
func (mr *MockDfpathMockRecorder) PluginDir() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PluginDir", reflect.TypeOf((*MockDfpath)(nil).PluginDir))
}
// WorkHome mocks base method.
func (m *MockDfpath) WorkHome() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WorkHome")
ret0, _ := ret[0].(string)
return ret0
}
// WorkHome indicates an expected call of WorkHome.
func (mr *MockDfpathMockRecorder) WorkHome() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkHome", reflect.TypeOf((*MockDfpath)(nil).WorkHome))
}
// WorkHomeMode mocks base method.
func (m *MockDfpath) WorkHomeMode() fs.FileMode {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WorkHomeMode")
ret0, _ := ret[0].(fs.FileMode)
return ret0
}
// WorkHomeMode indicates an expected call of WorkHomeMode.
func (mr *MockDfpathMockRecorder) WorkHomeMode() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WorkHomeMode", reflect.TypeOf((*MockDfpath)(nil).WorkHomeMode))
}