internal/pkg/exec/mock_exec.go (97 lines of code) (raw):
// Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/pkg/exec/exec.go
// Package exec is a generated GoMock package.
package exec
import (
http "net/http"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockhttpClient is a mock of httpClient interface.
type MockhttpClient struct {
ctrl *gomock.Controller
recorder *MockhttpClientMockRecorder
}
// MockhttpClientMockRecorder is the mock recorder for MockhttpClient.
type MockhttpClientMockRecorder struct {
mock *MockhttpClient
}
// NewMockhttpClient creates a new mock instance.
func NewMockhttpClient(ctrl *gomock.Controller) *MockhttpClient {
mock := &MockhttpClient{ctrl: ctrl}
mock.recorder = &MockhttpClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockhttpClient) EXPECT() *MockhttpClientMockRecorder {
return m.recorder
}
// Get mocks base method.
func (m *MockhttpClient) Get(url string) (*http.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", url)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockhttpClientMockRecorder) Get(url interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockhttpClient)(nil).Get), url)
}
// Mockrunner is a mock of runner interface.
type Mockrunner struct {
ctrl *gomock.Controller
recorder *MockrunnerMockRecorder
}
// MockrunnerMockRecorder is the mock recorder for Mockrunner.
type MockrunnerMockRecorder struct {
mock *Mockrunner
}
// NewMockrunner creates a new mock instance.
func NewMockrunner(ctrl *gomock.Controller) *Mockrunner {
mock := &Mockrunner{ctrl: ctrl}
mock.recorder = &MockrunnerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *Mockrunner) EXPECT() *MockrunnerMockRecorder {
return m.recorder
}
// InteractiveRun mocks base method.
func (m *Mockrunner) InteractiveRun(name string, args []string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InteractiveRun", name, args)
ret0, _ := ret[0].(error)
return ret0
}
// InteractiveRun indicates an expected call of InteractiveRun.
func (mr *MockrunnerMockRecorder) InteractiveRun(name, args interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InteractiveRun", reflect.TypeOf((*Mockrunner)(nil).InteractiveRun), name, args)
}
// Run mocks base method.
func (m *Mockrunner) Run(name string, args []string, options ...CmdOption) error {
m.ctrl.T.Helper()
varargs := []interface{}{name, args}
for _, a := range options {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Run", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// Run indicates an expected call of Run.
func (mr *MockrunnerMockRecorder) Run(name, args interface{}, options ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{name, args}, options...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*Mockrunner)(nil).Run), varargs...)
}
// MockcmdRunner is a mock of cmdRunner interface.
type MockcmdRunner struct {
ctrl *gomock.Controller
recorder *MockcmdRunnerMockRecorder
}
// MockcmdRunnerMockRecorder is the mock recorder for MockcmdRunner.
type MockcmdRunnerMockRecorder struct {
mock *MockcmdRunner
}
// NewMockcmdRunner creates a new mock instance.
func NewMockcmdRunner(ctrl *gomock.Controller) *MockcmdRunner {
mock := &MockcmdRunner{ctrl: ctrl}
mock.recorder = &MockcmdRunnerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockcmdRunner) EXPECT() *MockcmdRunnerMockRecorder {
return m.recorder
}
// Run mocks base method.
func (m *MockcmdRunner) Run() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Run")
ret0, _ := ret[0].(error)
return ret0
}
// Run indicates an expected call of Run.
func (mr *MockcmdRunnerMockRecorder) Run() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockcmdRunner)(nil).Run))
}