github.com/release-engineering/exodus-rsync@v1.11.2/internal/rsync/mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: rsync.go 3 4 // Package rsync is a generated GoMock package. 5 package rsync 6 7 import ( 8 context "context" 9 exec "os/exec" 10 reflect "reflect" 11 12 gomock "github.com/golang/mock/gomock" 13 args "github.com/release-engineering/exodus-rsync/internal/args" 14 ) 15 16 // MockInterface is a mock of Interface interface. 17 type MockInterface struct { 18 ctrl *gomock.Controller 19 recorder *MockInterfaceMockRecorder 20 } 21 22 // MockInterfaceMockRecorder is the mock recorder for MockInterface. 23 type MockInterfaceMockRecorder struct { 24 mock *MockInterface 25 } 26 27 // NewMockInterface creates a new mock instance. 28 func NewMockInterface(ctrl *gomock.Controller) *MockInterface { 29 mock := &MockInterface{ctrl: ctrl} 30 mock.recorder = &MockInterfaceMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder { 36 return m.recorder 37 } 38 39 // Command mocks base method. 40 func (m *MockInterface) Command(arg0 context.Context, arg1 []string) (*exec.Cmd, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "Command", arg0, arg1) 43 ret0, _ := ret[0].(*exec.Cmd) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // Command indicates an expected call of Command. 49 func (mr *MockInterfaceMockRecorder) Command(arg0, arg1 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Command", reflect.TypeOf((*MockInterface)(nil).Command), arg0, arg1) 52 } 53 54 // Exec mocks base method. 55 func (m *MockInterface) Exec(arg0 context.Context, arg1 args.Config) error { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "Exec", arg0, arg1) 58 ret0, _ := ret[0].(error) 59 return ret0 60 } 61 62 // Exec indicates an expected call of Exec. 63 func (mr *MockInterfaceMockRecorder) Exec(arg0, arg1 interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Exec", reflect.TypeOf((*MockInterface)(nil).Exec), arg0, arg1) 66 } 67 68 // RawExec mocks base method. 69 func (m *MockInterface) RawExec(arg0 context.Context, arg1 []string) error { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "RawExec", arg0, arg1) 72 ret0, _ := ret[0].(error) 73 return ret0 74 } 75 76 // RawExec indicates an expected call of RawExec. 77 func (mr *MockInterfaceMockRecorder) RawExec(arg0, arg1 interface{}) *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RawExec", reflect.TypeOf((*MockInterface)(nil).RawExec), arg0, arg1) 80 }