github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/cmd/juju/caas/mocks/runner_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/cmd/juju/caas (interfaces: CommandRunner)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	exec "github.com/juju/utils/exec"
    10  	reflect "reflect"
    11  )
    12  
    13  // MockCommandRunner is a mock of CommandRunner interface
    14  type MockCommandRunner struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockCommandRunnerMockRecorder
    17  }
    18  
    19  // MockCommandRunnerMockRecorder is the mock recorder for MockCommandRunner
    20  type MockCommandRunnerMockRecorder struct {
    21  	mock *MockCommandRunner
    22  }
    23  
    24  // NewMockCommandRunner creates a new mock instance
    25  func NewMockCommandRunner(ctrl *gomock.Controller) *MockCommandRunner {
    26  	mock := &MockCommandRunner{ctrl: ctrl}
    27  	mock.recorder = &MockCommandRunnerMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use
    32  func (m *MockCommandRunner) EXPECT() *MockCommandRunnerMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // RunCommands mocks base method
    37  func (m *MockCommandRunner) RunCommands(arg0 exec.RunParams) (*exec.ExecResponse, error) {
    38  	ret := m.ctrl.Call(m, "RunCommands", arg0)
    39  	ret0, _ := ret[0].(*exec.ExecResponse)
    40  	ret1, _ := ret[1].(error)
    41  	return ret0, ret1
    42  }
    43  
    44  // RunCommands indicates an expected call of RunCommands
    45  func (mr *MockCommandRunnerMockRecorder) RunCommands(arg0 interface{}) *gomock.Call {
    46  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunCommands", reflect.TypeOf((*MockCommandRunner)(nil).RunCommands), arg0)
    47  }