forked from cloudfoundry/python-buildpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmocks_test.go
More file actions
198 lines (166 loc) · 6 KB
/
Copy pathmocks_test.go
File metadata and controls
198 lines (166 loc) · 6 KB
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
// Code generated by MockGen. DO NOT EDIT.
// Source: finalize.go
package finalize_test
import (
gomock "github.com/golang/mock/gomock"
io "io"
reflect "reflect"
)
// MockManifest is a mock of Manifest interface
type MockManifest struct {
ctrl *gomock.Controller
recorder *MockManifestMockRecorder
}
// MockManifestMockRecorder is the mock recorder for MockManifest
type MockManifestMockRecorder struct {
mock *MockManifest
}
// NewMockManifest creates a new mock instance
func NewMockManifest(ctrl *gomock.Controller) *MockManifest {
mock := &MockManifest{ctrl: ctrl}
mock.recorder = &MockManifestMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (_m *MockManifest) EXPECT() *MockManifestMockRecorder {
return _m.recorder
}
// RootDir mocks base method
func (_m *MockManifest) RootDir() string {
ret := _m.ctrl.Call(_m, "RootDir")
ret0, _ := ret[0].(string)
return ret0
}
// RootDir indicates an expected call of RootDir
func (_mr *MockManifestMockRecorder) RootDir() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "RootDir", reflect.TypeOf((*MockManifest)(nil).RootDir))
}
// 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 {
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 {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "BuildDir", reflect.TypeOf((*MockStager)(nil).BuildDir))
}
// DepDir mocks base method
func (_m *MockStager) DepDir() string {
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 {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "DepDir", reflect.TypeOf((*MockStager)(nil).DepDir))
}
// DepsDir mocks base method
func (_m *MockStager) DepsDir() string {
ret := _m.ctrl.Call(_m, "DepsDir")
ret0, _ := ret[0].(string)
return ret0
}
// DepsDir indicates an expected call of DepsDir
func (_mr *MockStagerMockRecorder) DepsDir() *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "DepsDir", reflect.TypeOf((*MockStager)(nil).DepsDir))
}
// 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
}
// Execute mocks base method
func (_m *MockCommand) Execute(_param0 string, _param1 io.Writer, _param2 io.Writer, _param3 string, _param4 ...string) error {
_s := []interface{}{_param0, _param1, _param2, _param3}
for _, _x := range _param4 {
_s = append(_s, _x)
}
ret := _m.ctrl.Call(_m, "Execute", _s...)
ret0, _ := ret[0].(error)
return ret0
}
// Execute indicates an expected call of Execute
func (_mr *MockCommandMockRecorder) Execute(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call {
_s := append([]interface{}{arg0, arg1, arg2, arg3}, arg4...)
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Execute", reflect.TypeOf((*MockCommand)(nil).Execute), _s...)
}
// Output mocks base method
func (_m *MockCommand) Output(dir string, program string, args ...string) (string, error) {
_s := []interface{}{dir, program}
for _, _x := range args {
_s = append(_s, _x)
}
ret := _m.ctrl.Call(_m, "Output", _s...)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Output indicates an expected call of Output
func (_mr *MockCommandMockRecorder) Output(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
_s := append([]interface{}{arg0, arg1}, arg2...)
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "Output", reflect.TypeOf((*MockCommand)(nil).Output), _s...)
}
// MockManagePyFinder is a mock of ManagePyFinder interface
type MockManagePyFinder struct {
ctrl *gomock.Controller
recorder *MockManagePyFinderMockRecorder
}
// MockManagePyFinderMockRecorder is the mock recorder for MockManagePyFinder
type MockManagePyFinderMockRecorder struct {
mock *MockManagePyFinder
}
// NewMockManagePyFinder creates a new mock instance
func NewMockManagePyFinder(ctrl *gomock.Controller) *MockManagePyFinder {
mock := &MockManagePyFinder{ctrl: ctrl}
mock.recorder = &MockManagePyFinderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (_m *MockManagePyFinder) EXPECT() *MockManagePyFinderMockRecorder {
return _m.recorder
}
// FindManagePy mocks base method
func (_m *MockManagePyFinder) FindManagePy(dir string) (string, error) {
ret := _m.ctrl.Call(_m, "FindManagePy", dir)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FindManagePy indicates an expected call of FindManagePy
func (_mr *MockManagePyFinderMockRecorder) FindManagePy(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "FindManagePy", reflect.TypeOf((*MockManagePyFinder)(nil).FindManagePy), arg0)
}