github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/service/systemd/shims_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/service/systemd (interfaces: ShimExec) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package systemd -destination shims_mock_test.go github.com/juju/juju/service/systemd ShimExec 7 // 8 9 // Package systemd is a generated GoMock package. 10 package systemd 11 12 import ( 13 reflect "reflect" 14 15 exec "github.com/juju/utils/v3/exec" 16 gomock "go.uber.org/mock/gomock" 17 ) 18 19 // MockShimExec is a mock of ShimExec interface. 20 type MockShimExec struct { 21 ctrl *gomock.Controller 22 recorder *MockShimExecMockRecorder 23 } 24 25 // MockShimExecMockRecorder is the mock recorder for MockShimExec. 26 type MockShimExecMockRecorder struct { 27 mock *MockShimExec 28 } 29 30 // NewMockShimExec creates a new mock instance. 31 func NewMockShimExec(ctrl *gomock.Controller) *MockShimExec { 32 mock := &MockShimExec{ctrl: ctrl} 33 mock.recorder = &MockShimExecMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockShimExec) EXPECT() *MockShimExecMockRecorder { 39 return m.recorder 40 } 41 42 // RunCommands mocks base method. 43 func (m *MockShimExec) RunCommands(arg0 exec.RunParams) (*exec.ExecResponse, error) { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "RunCommands", arg0) 46 ret0, _ := ret[0].(*exec.ExecResponse) 47 ret1, _ := ret[1].(error) 48 return ret0, ret1 49 } 50 51 // RunCommands indicates an expected call of RunCommands. 52 func (mr *MockShimExecMockRecorder) RunCommands(arg0 any) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunCommands", reflect.TypeOf((*MockShimExec)(nil).RunCommands), arg0) 55 }