a21848484b
This fixes the run package's leaky abstraction; other packages no longer need to know or care that run.Config even exists. Note that since the various Steps now depend on having a non-nil pointer to a run.Config, it's unsafe (or at least risky) to initialize them directly. They should be created with their NewSTEPNAME functions. All their fields are now private, to reflect this.
62 lines
1.6 KiB
Go
62 lines
1.6 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: ./internal/helm/plan.go
|
|
|
|
// Package mock_helm is a generated GoMock package.
|
|
package helm
|
|
|
|
import (
|
|
gomock "github.com/golang/mock/gomock"
|
|
reflect "reflect"
|
|
)
|
|
|
|
// MockStep is a mock of Step interface
|
|
type MockStep struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockStepMockRecorder
|
|
}
|
|
|
|
// MockStepMockRecorder is the mock recorder for MockStep
|
|
type MockStepMockRecorder struct {
|
|
mock *MockStep
|
|
}
|
|
|
|
// NewMockStep creates a new mock instance
|
|
func NewMockStep(ctrl *gomock.Controller) *MockStep {
|
|
mock := &MockStep{ctrl: ctrl}
|
|
mock.recorder = &MockStepMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *MockStep) EXPECT() *MockStepMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Prepare mocks base method
|
|
func (m *MockStep) Prepare() error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Prepare")
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Prepare indicates an expected call of Prepare
|
|
func (mr *MockStepMockRecorder) Prepare() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Prepare", reflect.TypeOf((*MockStep)(nil).Prepare))
|
|
}
|
|
|
|
// Execute mocks base method
|
|
func (m *MockStep) Execute() error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Execute")
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Execute indicates an expected call of Execute
|
|
func (mr *MockStepMockRecorder) Execute() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Execute", reflect.TypeOf((*MockStep)(nil).Execute))
|
|
}
|