github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/service/systemd/shims_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/service/systemd (interfaces: ShimFileOps,ShimExec) 3 4 // Package systemd is a generated GoMock package. 5 package systemd 6 7 import ( 8 os "os" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 exec "github.com/juju/utils/exec" 13 ) 14 15 // MockShimFileOps is a mock of ShimFileOps interface 16 type MockShimFileOps struct { 17 ctrl *gomock.Controller 18 recorder *MockShimFileOpsMockRecorder 19 } 20 21 // MockShimFileOpsMockRecorder is the mock recorder for MockShimFileOps 22 type MockShimFileOpsMockRecorder struct { 23 mock *MockShimFileOps 24 } 25 26 // NewMockShimFileOps creates a new mock instance 27 func NewMockShimFileOps(ctrl *gomock.Controller) *MockShimFileOps { 28 mock := &MockShimFileOps{ctrl: ctrl} 29 mock.recorder = &MockShimFileOpsMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use 34 func (m *MockShimFileOps) EXPECT() *MockShimFileOpsMockRecorder { 35 return m.recorder 36 } 37 38 // CreateFile mocks base method 39 func (m *MockShimFileOps) CreateFile(arg0 string, arg1 []byte, arg2 os.FileMode) error { 40 ret := m.ctrl.Call(m, "CreateFile", arg0, arg1, arg2) 41 ret0, _ := ret[0].(error) 42 return ret0 43 } 44 45 // CreateFile indicates an expected call of CreateFile 46 func (mr *MockShimFileOpsMockRecorder) CreateFile(arg0, arg1, arg2 interface{}) *gomock.Call { 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFile", reflect.TypeOf((*MockShimFileOps)(nil).CreateFile), arg0, arg1, arg2) 48 } 49 50 // MkdirAll mocks base method 51 func (m *MockShimFileOps) MkdirAll(arg0 string) error { 52 ret := m.ctrl.Call(m, "MkdirAll", arg0) 53 ret0, _ := ret[0].(error) 54 return ret0 55 } 56 57 // MkdirAll indicates an expected call of MkdirAll 58 func (mr *MockShimFileOpsMockRecorder) MkdirAll(arg0 interface{}) *gomock.Call { 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MkdirAll", reflect.TypeOf((*MockShimFileOps)(nil).MkdirAll), arg0) 60 } 61 62 // RemoveAll mocks base method 63 func (m *MockShimFileOps) RemoveAll(arg0 string) error { 64 ret := m.ctrl.Call(m, "RemoveAll", arg0) 65 ret0, _ := ret[0].(error) 66 return ret0 67 } 68 69 // RemoveAll indicates an expected call of RemoveAll 70 func (mr *MockShimFileOpsMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call { 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveAll", reflect.TypeOf((*MockShimFileOps)(nil).RemoveAll), arg0) 72 } 73 74 // MockShimExec is a mock of ShimExec interface 75 type MockShimExec struct { 76 ctrl *gomock.Controller 77 recorder *MockShimExecMockRecorder 78 } 79 80 // MockShimExecMockRecorder is the mock recorder for MockShimExec 81 type MockShimExecMockRecorder struct { 82 mock *MockShimExec 83 } 84 85 // NewMockShimExec creates a new mock instance 86 func NewMockShimExec(ctrl *gomock.Controller) *MockShimExec { 87 mock := &MockShimExec{ctrl: ctrl} 88 mock.recorder = &MockShimExecMockRecorder{mock} 89 return mock 90 } 91 92 // EXPECT returns an object that allows the caller to indicate expected use 93 func (m *MockShimExec) EXPECT() *MockShimExecMockRecorder { 94 return m.recorder 95 } 96 97 // RunCommands mocks base method 98 func (m *MockShimExec) RunCommands(arg0 exec.RunParams) (*exec.ExecResponse, error) { 99 ret := m.ctrl.Call(m, "RunCommands", arg0) 100 ret0, _ := ret[0].(*exec.ExecResponse) 101 ret1, _ := ret[1].(error) 102 return ret0, ret1 103 } 104 105 // RunCommands indicates an expected call of RunCommands 106 func (mr *MockShimExecMockRecorder) RunCommands(arg0 interface{}) *gomock.Call { 107 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunCommands", reflect.TypeOf((*MockShimExec)(nil).RunCommands), arg0) 108 }