| // Copyright 2020 Google Inc. All Rights Reserved. |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by MockGen. DO NOT EDIT. |
| // Source: github.com/GoogleCloudPlatform/osconfig/util (interfaces: CommandRunner) |
| |
| // Package utilmocks is a generated GoMock package. |
| package utilmocks |
| |
| import ( |
| context "context" |
| gomock "github.com/golang/mock/gomock" |
| exec "os/exec" |
| reflect "reflect" |
| ) |
| |
| // MockCommandRunner is a mock of CommandRunner interface |
| type MockCommandRunner struct { |
| ctrl *gomock.Controller |
| recorder *MockCommandRunnerMockRecorder |
| } |
| |
| // MockCommandRunnerMockRecorder is the mock recorder for MockCommandRunner |
| type MockCommandRunnerMockRecorder struct { |
| mock *MockCommandRunner |
| } |
| |
| // NewMockCommandRunner creates a new mock instance |
| func NewMockCommandRunner(ctrl *gomock.Controller) *MockCommandRunner { |
| mock := &MockCommandRunner{ctrl: ctrl} |
| mock.recorder = &MockCommandRunnerMockRecorder{mock} |
| return mock |
| } |
| |
| // EXPECT returns an object that allows the caller to indicate expected use |
| func (m *MockCommandRunner) EXPECT() *MockCommandRunnerMockRecorder { |
| return m.recorder |
| } |
| |
| // Run mocks base method |
| func (m *MockCommandRunner) Run(ctx context.Context, command *exec.Cmd) ([]byte, []byte, error) { |
| m.ctrl.T.Helper() |
| ret := m.ctrl.Call(m, "Run", ctx, command) |
| ret0, _ := ret[0].([]byte) |
| ret1, _ := ret[1].([]byte) |
| ret2, _ := ret[2].(error) |
| return ret0, ret1, ret2 |
| } |
| |
| // Run indicates an expected call of Run |
| func (mr *MockCommandRunnerMockRecorder) Run(ctx, command interface{}) *gomock.Call { |
| mr.mock.ctrl.T.Helper() |
| return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockCommandRunner)(nil).Run), ctx, command) |
| } |