mock_Shell.go 1.95 KB
Newer Older
Tomasz Maczukin's avatar
Tomasz Maczukin committed
1
// Code generated by mockery v1.0.0. DO NOT EDIT.
Lorenzo Villani's avatar
Lorenzo Villani committed
2 3 4

// This comment works around https://github.com/vektra/mockery/issues/155

Kamil Trzciński's avatar
Kamil Trzciński committed
5 6
package common

Lorenzo Villani's avatar
Lorenzo Villani committed
7
import mock "github.com/stretchr/testify/mock"
Kamil Trzciński's avatar
Kamil Trzciński committed
8

Lorenzo Villani's avatar
Lorenzo Villani committed
9
// MockShell is an autogenerated mock type for the Shell type
Kamil Trzciński's avatar
Kamil Trzciński committed
10 11 12 13
type MockShell struct {
	mock.Mock
}

Lorenzo Villani's avatar
Lorenzo Villani committed
14 15 16
// GenerateScript provides a mock function with given fields: buildStage, info
func (_m *MockShell) GenerateScript(buildStage BuildStage, info ShellScriptInfo) (string, error) {
	ret := _m.Called(buildStage, info)
Kamil Trzciński's avatar
Kamil Trzciński committed
17

Lorenzo Villani's avatar
Lorenzo Villani committed
18 19 20 21 22 23
	var r0 string
	if rf, ok := ret.Get(0).(func(BuildStage, ShellScriptInfo) string); ok {
		r0 = rf(buildStage, info)
	} else {
		r0 = ret.Get(0).(string)
	}
Kamil Trzciński's avatar
Kamil Trzciński committed
24

Lorenzo Villani's avatar
Lorenzo Villani committed
25 26 27 28 29 30
	var r1 error
	if rf, ok := ret.Get(1).(func(BuildStage, ShellScriptInfo) error); ok {
		r1 = rf(buildStage, info)
	} else {
		r1 = ret.Error(1)
	}
Kamil Trzciński's avatar
Kamil Trzciński committed
31

Lorenzo Villani's avatar
Lorenzo Villani committed
32
	return r0, r1
Kamil Trzciński's avatar
Kamil Trzciński committed
33
}
Lorenzo Villani's avatar
Lorenzo Villani committed
34 35 36 37

// GetConfiguration provides a mock function with given fields: info
func (_m *MockShell) GetConfiguration(info ShellScriptInfo) (*ShellConfiguration, error) {
	ret := _m.Called(info)
Kamil Trzciński's avatar
Kamil Trzciński committed
38 39

	var r0 *ShellConfiguration
Lorenzo Villani's avatar
Lorenzo Villani committed
40 41 42 43 44 45 46 47 48 49 50 51 52
	if rf, ok := ret.Get(0).(func(ShellScriptInfo) *ShellConfiguration); ok {
		r0 = rf(info)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*ShellConfiguration)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(ShellScriptInfo) error); ok {
		r1 = rf(info)
	} else {
		r1 = ret.Error(1)
Kamil Trzciński's avatar
Kamil Trzciński committed
53 54 55 56 57
	}

	return r0, r1
}

Lorenzo Villani's avatar
Lorenzo Villani committed
58 59 60 61
// GetFeatures provides a mock function with given fields: features
func (_m *MockShell) GetFeatures(features *FeaturesInfo) {
	_m.Called(features)
}
Kamil Trzciński's avatar
Kamil Trzciński committed
62

Lorenzo Villani's avatar
Lorenzo Villani committed
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
// GetName provides a mock function with given fields:
func (_m *MockShell) GetName() string {
	ret := _m.Called()

	var r0 string
	if rf, ok := ret.Get(0).(func() string); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(string)
	}

	return r0
}

// IsDefault provides a mock function with given fields:
func (_m *MockShell) IsDefault() bool {
	ret := _m.Called()

	var r0 bool
	if rf, ok := ret.Get(0).(func() bool); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(bool)
	}

	return r0
Kamil Trzciński's avatar
Kamil Trzciński committed
89
}