github.com/m3db/m3@v1.5.0/src/m3em/os/exec/mocks/exec_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/m3em/os/exec/types.go 3 4 // Copyright (c) 2021 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 // Package exec is a generated GoMock package. 25 package exec 26 27 import ( 28 "reflect" 29 30 "github.com/golang/mock/gomock" 31 ) 32 33 // MockProcessListener is a mock of ProcessListener interface. 34 type MockProcessListener struct { 35 ctrl *gomock.Controller 36 recorder *MockProcessListenerMockRecorder 37 } 38 39 // MockProcessListenerMockRecorder is the mock recorder for MockProcessListener. 40 type MockProcessListenerMockRecorder struct { 41 mock *MockProcessListener 42 } 43 44 // NewMockProcessListener creates a new mock instance. 45 func NewMockProcessListener(ctrl *gomock.Controller) *MockProcessListener { 46 mock := &MockProcessListener{ctrl: ctrl} 47 mock.recorder = &MockProcessListenerMockRecorder{mock} 48 return mock 49 } 50 51 // EXPECT returns an object that allows the caller to indicate expected use. 52 func (m *MockProcessListener) EXPECT() *MockProcessListenerMockRecorder { 53 return m.recorder 54 } 55 56 // OnComplete mocks base method. 57 func (m *MockProcessListener) OnComplete() { 58 m.ctrl.T.Helper() 59 m.ctrl.Call(m, "OnComplete") 60 } 61 62 // OnComplete indicates an expected call of OnComplete. 63 func (mr *MockProcessListenerMockRecorder) OnComplete() *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnComplete", reflect.TypeOf((*MockProcessListener)(nil).OnComplete)) 66 } 67 68 // OnError mocks base method. 69 func (m *MockProcessListener) OnError(arg0 error) { 70 m.ctrl.T.Helper() 71 m.ctrl.Call(m, "OnError", arg0) 72 } 73 74 // OnError indicates an expected call of OnError. 75 func (mr *MockProcessListenerMockRecorder) OnError(arg0 interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnError", reflect.TypeOf((*MockProcessListener)(nil).OnError), arg0) 78 } 79 80 // MockProcessMonitor is a mock of ProcessMonitor interface. 81 type MockProcessMonitor struct { 82 ctrl *gomock.Controller 83 recorder *MockProcessMonitorMockRecorder 84 } 85 86 // MockProcessMonitorMockRecorder is the mock recorder for MockProcessMonitor. 87 type MockProcessMonitorMockRecorder struct { 88 mock *MockProcessMonitor 89 } 90 91 // NewMockProcessMonitor creates a new mock instance. 92 func NewMockProcessMonitor(ctrl *gomock.Controller) *MockProcessMonitor { 93 mock := &MockProcessMonitor{ctrl: ctrl} 94 mock.recorder = &MockProcessMonitorMockRecorder{mock} 95 return mock 96 } 97 98 // EXPECT returns an object that allows the caller to indicate expected use. 99 func (m *MockProcessMonitor) EXPECT() *MockProcessMonitorMockRecorder { 100 return m.recorder 101 } 102 103 // Close mocks base method. 104 func (m *MockProcessMonitor) Close() error { 105 m.ctrl.T.Helper() 106 ret := m.ctrl.Call(m, "Close") 107 ret0, _ := ret[0].(error) 108 return ret0 109 } 110 111 // Close indicates an expected call of Close. 112 func (mr *MockProcessMonitorMockRecorder) Close() *gomock.Call { 113 mr.mock.ctrl.T.Helper() 114 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockProcessMonitor)(nil).Close)) 115 } 116 117 // Err mocks base method. 118 func (m *MockProcessMonitor) Err() error { 119 m.ctrl.T.Helper() 120 ret := m.ctrl.Call(m, "Err") 121 ret0, _ := ret[0].(error) 122 return ret0 123 } 124 125 // Err indicates an expected call of Err. 126 func (mr *MockProcessMonitorMockRecorder) Err() *gomock.Call { 127 mr.mock.ctrl.T.Helper() 128 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockProcessMonitor)(nil).Err)) 129 } 130 131 // Running mocks base method. 132 func (m *MockProcessMonitor) Running() bool { 133 m.ctrl.T.Helper() 134 ret := m.ctrl.Call(m, "Running") 135 ret0, _ := ret[0].(bool) 136 return ret0 137 } 138 139 // Running indicates an expected call of Running. 140 func (mr *MockProcessMonitorMockRecorder) Running() *gomock.Call { 141 mr.mock.ctrl.T.Helper() 142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Running", reflect.TypeOf((*MockProcessMonitor)(nil).Running)) 143 } 144 145 // Start mocks base method. 146 func (m *MockProcessMonitor) Start() error { 147 m.ctrl.T.Helper() 148 ret := m.ctrl.Call(m, "Start") 149 ret0, _ := ret[0].(error) 150 return ret0 151 } 152 153 // Start indicates an expected call of Start. 154 func (mr *MockProcessMonitorMockRecorder) Start() *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockProcessMonitor)(nil).Start)) 157 } 158 159 // StderrPath mocks base method. 160 func (m *MockProcessMonitor) StderrPath() string { 161 m.ctrl.T.Helper() 162 ret := m.ctrl.Call(m, "StderrPath") 163 ret0, _ := ret[0].(string) 164 return ret0 165 } 166 167 // StderrPath indicates an expected call of StderrPath. 168 func (mr *MockProcessMonitorMockRecorder) StderrPath() *gomock.Call { 169 mr.mock.ctrl.T.Helper() 170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StderrPath", reflect.TypeOf((*MockProcessMonitor)(nil).StderrPath)) 171 } 172 173 // StdoutPath mocks base method. 174 func (m *MockProcessMonitor) StdoutPath() string { 175 m.ctrl.T.Helper() 176 ret := m.ctrl.Call(m, "StdoutPath") 177 ret0, _ := ret[0].(string) 178 return ret0 179 } 180 181 // StdoutPath indicates an expected call of StdoutPath. 182 func (mr *MockProcessMonitorMockRecorder) StdoutPath() *gomock.Call { 183 mr.mock.ctrl.T.Helper() 184 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StdoutPath", reflect.TypeOf((*MockProcessMonitor)(nil).StdoutPath)) 185 } 186 187 // Stop mocks base method. 188 func (m *MockProcessMonitor) Stop() error { 189 m.ctrl.T.Helper() 190 ret := m.ctrl.Call(m, "Stop") 191 ret0, _ := ret[0].(error) 192 return ret0 193 } 194 195 // Stop indicates an expected call of Stop. 196 func (mr *MockProcessMonitorMockRecorder) Stop() *gomock.Call { 197 mr.mock.ctrl.T.Helper() 198 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockProcessMonitor)(nil).Stop)) 199 }