github.com/replicatedhq/ship@v0.55.0/pkg/test-mocks/tfplan/confirmer_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/replicatedhq/ship/pkg/lifecycle/terraform/tfplan (interfaces: PlanConfirmer) 3 4 // Package tfplan is a generated GoMock package. 5 package tfplan 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 api "github.com/replicatedhq/ship/pkg/api" 13 daemontypes "github.com/replicatedhq/ship/pkg/lifecycle/daemon/daemontypes" 14 tfplan "github.com/replicatedhq/ship/pkg/lifecycle/terraform/tfplan" 15 ) 16 17 // MockPlanConfirmer is a mock of PlanConfirmer interface 18 type MockPlanConfirmer struct { 19 ctrl *gomock.Controller 20 recorder *MockPlanConfirmerMockRecorder 21 } 22 23 // MockPlanConfirmerMockRecorder is the mock recorder for MockPlanConfirmer 24 type MockPlanConfirmerMockRecorder struct { 25 mock *MockPlanConfirmer 26 } 27 28 // NewMockPlanConfirmer creates a new mock instance 29 func NewMockPlanConfirmer(ctrl *gomock.Controller) *MockPlanConfirmer { 30 mock := &MockPlanConfirmer{ctrl: ctrl} 31 mock.recorder = &MockPlanConfirmerMockRecorder{mock} 32 return mock 33 } 34 35 // EXPECT returns an object that allows the caller to indicate expected use 36 func (m *MockPlanConfirmer) EXPECT() *MockPlanConfirmerMockRecorder { 37 return m.recorder 38 } 39 40 // ConfirmPlan mocks base method 41 func (m *MockPlanConfirmer) ConfirmPlan(arg0 context.Context, arg1 string, arg2 api.Release, arg3 chan bool) (bool, error) { 42 m.ctrl.T.Helper() 43 ret := m.ctrl.Call(m, "ConfirmPlan", arg0, arg1, arg2, arg3) 44 ret0, _ := ret[0].(bool) 45 ret1, _ := ret[1].(error) 46 return ret0, ret1 47 } 48 49 // ConfirmPlan indicates an expected call of ConfirmPlan 50 func (mr *MockPlanConfirmerMockRecorder) ConfirmPlan(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 51 mr.mock.ctrl.T.Helper() 52 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfirmPlan", reflect.TypeOf((*MockPlanConfirmer)(nil).ConfirmPlan), arg0, arg1, arg2, arg3) 53 } 54 55 // WithStatusReceiver mocks base method 56 func (m *MockPlanConfirmer) WithStatusReceiver(arg0 daemontypes.StatusReceiver) tfplan.PlanConfirmer { 57 m.ctrl.T.Helper() 58 ret := m.ctrl.Call(m, "WithStatusReceiver", arg0) 59 ret0, _ := ret[0].(tfplan.PlanConfirmer) 60 return ret0 61 } 62 63 // WithStatusReceiver indicates an expected call of WithStatusReceiver 64 func (mr *MockPlanConfirmerMockRecorder) WithStatusReceiver(arg0 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithStatusReceiver", reflect.TypeOf((*MockPlanConfirmer)(nil).WithStatusReceiver), arg0) 67 }