-
Notifications
You must be signed in to change notification settings - Fork 1
/
mock_Executor.go
53 lines (40 loc) · 930 Bytes
/
mock_Executor.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
package common
import "github.com/stretchr/testify/mock"
type MockExecutor struct {
mock.Mock
}
func (m *MockExecutor) Shell() *ShellScriptInfo {
ret := m.Called()
var r0 *ShellScriptInfo
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ShellScriptInfo)
}
return r0
}
func (m *MockExecutor) Prepare(globalConfig *Config, config *RunnerConfig, build *Build) error {
ret := m.Called(globalConfig, config, build)
r0 := ret.Error(0)
return r0
}
func (m *MockExecutor) Run(cmd ExecutorCommand) error {
ret := m.Called(cmd)
r0 := ret.Error(0)
return r0
}
func (m *MockExecutor) Finish(err error) {
m.Called(err)
}
func (m *MockExecutor) Cleanup() {
m.Called()
}
func (m *MockExecutor) GetCurrentStage() ExecutorStage {
ret := m.Called()
var r0 ExecutorStage
if ret.Get(0) != nil {
r0 = ret.Get(0).(ExecutorStage)
}
return r0
}
func (m *MockExecutor) SetCurrentStage(stage ExecutorStage) {
m.Called(stage)
}