-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_ShellWriter.go
197 lines (162 loc) · 4.9 KB
/
mock_ShellWriter.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
// This comment works around https://github.com/vektra/mockery/issues/155
package shells
import common "gitlab.com/gitlab-org/gitlab-runner/common"
import mock "github.com/stretchr/testify/mock"
// MockShellWriter is an autogenerated mock type for the ShellWriter type
type MockShellWriter struct {
mock.Mock
}
// Absolute provides a mock function with given fields: path
func (_m *MockShellWriter) Absolute(path string) string {
ret := _m.Called(path)
var r0 string
if rf, ok := ret.Get(0).(func(string) string); ok {
r0 = rf(path)
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// Cd provides a mock function with given fields: path
func (_m *MockShellWriter) Cd(path string) {
_m.Called(path)
}
// CheckForErrors provides a mock function with given fields:
func (_m *MockShellWriter) CheckForErrors() {
_m.Called()
}
// Command provides a mock function with given fields: command, arguments
func (_m *MockShellWriter) Command(command string, arguments ...string) {
_va := make([]interface{}, len(arguments))
for _i := range arguments {
_va[_i] = arguments[_i]
}
var _ca []interface{}
_ca = append(_ca, command)
_ca = append(_ca, _va...)
_m.Called(_ca...)
}
// Else provides a mock function with given fields:
func (_m *MockShellWriter) Else() {
_m.Called()
}
// EmptyLine provides a mock function with given fields:
func (_m *MockShellWriter) EmptyLine() {
_m.Called()
}
// EndIf provides a mock function with given fields:
func (_m *MockShellWriter) EndIf() {
_m.Called()
}
// EnvVariableKey provides a mock function with given fields: name
func (_m *MockShellWriter) EnvVariableKey(name string) string {
ret := _m.Called(name)
var r0 string
if rf, ok := ret.Get(0).(func(string) string); ok {
r0 = rf(name)
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// Error provides a mock function with given fields: fmt, arguments
func (_m *MockShellWriter) Error(fmt string, arguments ...interface{}) {
var _ca []interface{}
_ca = append(_ca, fmt)
_ca = append(_ca, arguments...)
_m.Called(_ca...)
}
// IfCmd provides a mock function with given fields: cmd, arguments
func (_m *MockShellWriter) IfCmd(cmd string, arguments ...string) {
_va := make([]interface{}, len(arguments))
for _i := range arguments {
_va[_i] = arguments[_i]
}
var _ca []interface{}
_ca = append(_ca, cmd)
_ca = append(_ca, _va...)
_m.Called(_ca...)
}
// IfCmdWithOutput provides a mock function with given fields: cmd, arguments
func (_m *MockShellWriter) IfCmdWithOutput(cmd string, arguments ...string) {
_va := make([]interface{}, len(arguments))
for _i := range arguments {
_va[_i] = arguments[_i]
}
var _ca []interface{}
_ca = append(_ca, cmd)
_ca = append(_ca, _va...)
_m.Called(_ca...)
}
// IfDirectory provides a mock function with given fields: path
func (_m *MockShellWriter) IfDirectory(path string) {
_m.Called(path)
}
// IfFile provides a mock function with given fields: file
func (_m *MockShellWriter) IfFile(file string) {
_m.Called(file)
}
// Line provides a mock function with given fields: text
func (_m *MockShellWriter) Line(text string) {
_m.Called(text)
}
// MkDir provides a mock function with given fields: path
func (_m *MockShellWriter) MkDir(path string) {
_m.Called(path)
}
// MkTmpDir provides a mock function with given fields: name
func (_m *MockShellWriter) MkTmpDir(name string) string {
ret := _m.Called(name)
var r0 string
if rf, ok := ret.Get(0).(func(string) string); ok {
r0 = rf(name)
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// Notice provides a mock function with given fields: fmt, arguments
func (_m *MockShellWriter) Notice(fmt string, arguments ...interface{}) {
var _ca []interface{}
_ca = append(_ca, fmt)
_ca = append(_ca, arguments...)
_m.Called(_ca...)
}
// Print provides a mock function with given fields: fmt, arguments
func (_m *MockShellWriter) Print(fmt string, arguments ...interface{}) {
var _ca []interface{}
_ca = append(_ca, fmt)
_ca = append(_ca, arguments...)
_m.Called(_ca...)
}
// RmDir provides a mock function with given fields: path
func (_m *MockShellWriter) RmDir(path string) {
_m.Called(path)
}
// RmFile provides a mock function with given fields: path
func (_m *MockShellWriter) RmFile(path string) {
_m.Called(path)
}
// TmpFile provides a mock function with given fields: name
func (_m *MockShellWriter) TmpFile(name string) string {
ret := _m.Called(name)
var r0 string
if rf, ok := ret.Get(0).(func(string) string); ok {
r0 = rf(name)
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// Variable provides a mock function with given fields: variable
func (_m *MockShellWriter) Variable(variable common.JobVariable) {
_m.Called(variable)
}
// Warning provides a mock function with given fields: fmt, arguments
func (_m *MockShellWriter) Warning(fmt string, arguments ...interface{}) {
var _ca []interface{}
_ca = append(_ca, fmt)
_ca = append(_ca, arguments...)
_m.Called(_ca...)
}