gitlab.com/jfprevost/gitlab-runner-notlscheck@v11.11.4+incompatible/common/mock_Shell.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // This comment works around https://github.com/vektra/mockery/issues/155 4 5 package common 6 7 import mock "github.com/stretchr/testify/mock" 8 9 // MockShell is an autogenerated mock type for the Shell type 10 type MockShell struct { 11 mock.Mock 12 } 13 14 // GenerateScript provides a mock function with given fields: buildStage, info 15 func (_m *MockShell) GenerateScript(buildStage BuildStage, info ShellScriptInfo) (string, error) { 16 ret := _m.Called(buildStage, info) 17 18 var r0 string 19 if rf, ok := ret.Get(0).(func(BuildStage, ShellScriptInfo) string); ok { 20 r0 = rf(buildStage, info) 21 } else { 22 r0 = ret.Get(0).(string) 23 } 24 25 var r1 error 26 if rf, ok := ret.Get(1).(func(BuildStage, ShellScriptInfo) error); ok { 27 r1 = rf(buildStage, info) 28 } else { 29 r1 = ret.Error(1) 30 } 31 32 return r0, r1 33 } 34 35 // GetConfiguration provides a mock function with given fields: info 36 func (_m *MockShell) GetConfiguration(info ShellScriptInfo) (*ShellConfiguration, error) { 37 ret := _m.Called(info) 38 39 var r0 *ShellConfiguration 40 if rf, ok := ret.Get(0).(func(ShellScriptInfo) *ShellConfiguration); ok { 41 r0 = rf(info) 42 } else { 43 if ret.Get(0) != nil { 44 r0 = ret.Get(0).(*ShellConfiguration) 45 } 46 } 47 48 var r1 error 49 if rf, ok := ret.Get(1).(func(ShellScriptInfo) error); ok { 50 r1 = rf(info) 51 } else { 52 r1 = ret.Error(1) 53 } 54 55 return r0, r1 56 } 57 58 // GetFeatures provides a mock function with given fields: features 59 func (_m *MockShell) GetFeatures(features *FeaturesInfo) { 60 _m.Called(features) 61 } 62 63 // GetName provides a mock function with given fields: 64 func (_m *MockShell) GetName() string { 65 ret := _m.Called() 66 67 var r0 string 68 if rf, ok := ret.Get(0).(func() string); ok { 69 r0 = rf() 70 } else { 71 r0 = ret.Get(0).(string) 72 } 73 74 return r0 75 } 76 77 // IsDefault provides a mock function with given fields: 78 func (_m *MockShell) IsDefault() bool { 79 ret := _m.Called() 80 81 var r0 bool 82 if rf, ok := ret.Get(0).(func() bool); ok { 83 r0 = rf() 84 } else { 85 r0 = ret.Get(0).(bool) 86 } 87 88 return r0 89 }