/
mocks_finalize_test.go
240 lines (203 loc) · 7.02 KB
/
mocks_finalize_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
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
// Code generated by MockGen. DO NOT EDIT.
// Source: finalize.go
// Package finalize_test is a generated GoMock package.
package finalize_test
import (
exec "os/exec"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockProject is a mock of Project interface.
type MockProject struct {
ctrl *gomock.Controller
recorder *MockProjectMockRecorder
}
// MockProjectMockRecorder is the mock recorder for MockProject.
type MockProjectMockRecorder struct {
mock *MockProject
}
// NewMockProject creates a new mock instance.
func NewMockProject(ctrl *gomock.Controller) *MockProject {
mock := &MockProject{ctrl: ctrl}
mock.recorder = &MockProjectMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockProject) EXPECT() *MockProjectMockRecorder {
return m.recorder
}
// InstallFrameworks mocks base method.
func (m *MockProject) InstallFrameworks() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InstallFrameworks")
ret0, _ := ret[0].(error)
return ret0
}
// InstallFrameworks indicates an expected call of InstallFrameworks.
func (mr *MockProjectMockRecorder) InstallFrameworks() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstallFrameworks", reflect.TypeOf((*MockProject)(nil).InstallFrameworks))
}
// IsFDD mocks base method.
func (m *MockProject) IsFDD() (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsFDD")
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// IsFDD indicates an expected call of IsFDD.
func (mr *MockProjectMockRecorder) IsFDD() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsFDD", reflect.TypeOf((*MockProject)(nil).IsFDD))
}
// IsPublished mocks base method.
func (m *MockProject) IsPublished() (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsPublished")
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// IsPublished indicates an expected call of IsPublished.
func (mr *MockProjectMockRecorder) IsPublished() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsPublished", reflect.TypeOf((*MockProject)(nil).IsPublished))
}
// MainPath mocks base method.
func (m *MockProject) MainPath() (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MainPath")
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// MainPath indicates an expected call of MainPath.
func (mr *MockProjectMockRecorder) MainPath() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MainPath", reflect.TypeOf((*MockProject)(nil).MainPath))
}
// ProjFilePaths mocks base method.
func (m *MockProject) ProjFilePaths() ([]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ProjFilePaths")
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ProjFilePaths indicates an expected call of ProjFilePaths.
func (mr *MockProjectMockRecorder) ProjFilePaths() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProjFilePaths", reflect.TypeOf((*MockProject)(nil).ProjFilePaths))
}
// StartCommand mocks base method.
func (m *MockProject) StartCommand() (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StartCommand")
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// StartCommand indicates an expected call of StartCommand.
func (mr *MockProjectMockRecorder) StartCommand() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCommand", reflect.TypeOf((*MockProject)(nil).StartCommand))
}
// MockStager is a mock of Stager interface.
type MockStager struct {
ctrl *gomock.Controller
recorder *MockStagerMockRecorder
}
// MockStagerMockRecorder is the mock recorder for MockStager.
type MockStagerMockRecorder struct {
mock *MockStager
}
// NewMockStager creates a new mock instance.
func NewMockStager(ctrl *gomock.Controller) *MockStager {
mock := &MockStager{ctrl: ctrl}
mock.recorder = &MockStagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockStager) EXPECT() *MockStagerMockRecorder {
return m.recorder
}
// BuildDir mocks base method.
func (m *MockStager) BuildDir() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BuildDir")
ret0, _ := ret[0].(string)
return ret0
}
// BuildDir indicates an expected call of BuildDir.
func (mr *MockStagerMockRecorder) BuildDir() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildDir", reflect.TypeOf((*MockStager)(nil).BuildDir))
}
// DepDir mocks base method.
func (m *MockStager) DepDir() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DepDir")
ret0, _ := ret[0].(string)
return ret0
}
// DepDir indicates an expected call of DepDir.
func (mr *MockStagerMockRecorder) DepDir() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DepDir", reflect.TypeOf((*MockStager)(nil).DepDir))
}
// DepsIdx mocks base method.
func (m *MockStager) DepsIdx() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DepsIdx")
ret0, _ := ret[0].(string)
return ret0
}
// DepsIdx indicates an expected call of DepsIdx.
func (mr *MockStagerMockRecorder) DepsIdx() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DepsIdx", reflect.TypeOf((*MockStager)(nil).DepsIdx))
}
// WriteProfileD mocks base method.
func (m *MockStager) WriteProfileD(arg0, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteProfileD", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// WriteProfileD indicates an expected call of WriteProfileD.
func (mr *MockStagerMockRecorder) WriteProfileD(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteProfileD", reflect.TypeOf((*MockStager)(nil).WriteProfileD), arg0, arg1)
}
// MockCommand is a mock of Command interface.
type MockCommand struct {
ctrl *gomock.Controller
recorder *MockCommandMockRecorder
}
// MockCommandMockRecorder is the mock recorder for MockCommand.
type MockCommandMockRecorder struct {
mock *MockCommand
}
// NewMockCommand creates a new mock instance.
func NewMockCommand(ctrl *gomock.Controller) *MockCommand {
mock := &MockCommand{ctrl: ctrl}
mock.recorder = &MockCommandMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCommand) EXPECT() *MockCommandMockRecorder {
return m.recorder
}
// Run mocks base method.
func (m *MockCommand) Run(arg0 *exec.Cmd) 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 *MockCommandMockRecorder) Run(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockCommand)(nil).Run), arg0)
}