-
Notifications
You must be signed in to change notification settings - Fork 1
/
mock_Shell.go
54 lines (41 loc) · 981 Bytes
/
mock_Shell.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
package common
import "github.com/stretchr/testify/mock"
type MockShell struct {
mock.Mock
}
func (m *MockShell) GetName() string {
ret := m.Called()
r0 := ret.Get(0).(string)
return r0
}
func (m *MockShell) GetSupportedOptions() []string {
ret := m.Called()
var r0 []string
if ret.Get(0) != nil {
r0 = ret.Get(0).([]string)
}
return r0
}
func (m *MockShell) GetFeatures(features *FeaturesInfo) {
m.Called(features)
}
func (m *MockShell) IsDefault() bool {
ret := m.Called()
r0 := ret.Get(0).(bool)
return r0
}
func (m *MockShell) GetConfiguration(info ShellScriptInfo) (*ShellConfiguration, error) {
ret := m.Called(info)
var r0 *ShellConfiguration
if ret.Get(0) != nil {
r0 = ret.Get(0).(*ShellConfiguration)
}
r1 := ret.Error(1)
return r0, r1
}
func (m *MockShell) GenerateScript(buildStage BuildStage, info ShellScriptInfo) (string, error) {
ret := m.Called(buildStage, info)
r0 := ret.Get(0).(string)
r1 := ret.Error(1)
return r0, r1
}