github.com/secure-build/gitlab-runner@v12.5.0+incompatible/common/mock_Executor.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  // MockExecutor is an autogenerated mock type for the Executor type
    10  type MockExecutor struct {
    11  	mock.Mock
    12  }
    13  
    14  // Cleanup provides a mock function with given fields:
    15  func (_m *MockExecutor) Cleanup() {
    16  	_m.Called()
    17  }
    18  
    19  // Finish provides a mock function with given fields: err
    20  func (_m *MockExecutor) Finish(err error) {
    21  	_m.Called(err)
    22  }
    23  
    24  // GetCurrentStage provides a mock function with given fields:
    25  func (_m *MockExecutor) GetCurrentStage() ExecutorStage {
    26  	ret := _m.Called()
    27  
    28  	var r0 ExecutorStage
    29  	if rf, ok := ret.Get(0).(func() ExecutorStage); ok {
    30  		r0 = rf()
    31  	} else {
    32  		r0 = ret.Get(0).(ExecutorStage)
    33  	}
    34  
    35  	return r0
    36  }
    37  
    38  // Prepare provides a mock function with given fields: options
    39  func (_m *MockExecutor) Prepare(options ExecutorPrepareOptions) error {
    40  	ret := _m.Called(options)
    41  
    42  	var r0 error
    43  	if rf, ok := ret.Get(0).(func(ExecutorPrepareOptions) error); ok {
    44  		r0 = rf(options)
    45  	} else {
    46  		r0 = ret.Error(0)
    47  	}
    48  
    49  	return r0
    50  }
    51  
    52  // Run provides a mock function with given fields: cmd
    53  func (_m *MockExecutor) Run(cmd ExecutorCommand) error {
    54  	ret := _m.Called(cmd)
    55  
    56  	var r0 error
    57  	if rf, ok := ret.Get(0).(func(ExecutorCommand) error); ok {
    58  		r0 = rf(cmd)
    59  	} else {
    60  		r0 = ret.Error(0)
    61  	}
    62  
    63  	return r0
    64  }
    65  
    66  // SetCurrentStage provides a mock function with given fields: stage
    67  func (_m *MockExecutor) SetCurrentStage(stage ExecutorStage) {
    68  	_m.Called(stage)
    69  }
    70  
    71  // Shell provides a mock function with given fields:
    72  func (_m *MockExecutor) Shell() *ShellScriptInfo {
    73  	ret := _m.Called()
    74  
    75  	var r0 *ShellScriptInfo
    76  	if rf, ok := ret.Get(0).(func() *ShellScriptInfo); ok {
    77  		r0 = rf()
    78  	} else {
    79  		if ret.Get(0) != nil {
    80  			r0 = ret.Get(0).(*ShellScriptInfo)
    81  		}
    82  	}
    83  
    84  	return r0
    85  }