From 2b9d9a61604cd5b8dd81df0aa65b188aacd31136 Mon Sep 17 00:00:00 2001 From: benrub Date: Sun, 10 Sep 2023 19:16:36 +0300 Subject: [PATCH] Fix mock for stateapplier --- controllers/mocks/mock_state_applier.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/controllers/mocks/mock_state_applier.go b/controllers/mocks/mock_state_applier.go index b9f5bc41..af457180 100644 --- a/controllers/mocks/mock_state_applier.go +++ b/controllers/mocks/mock_state_applier.go @@ -12,6 +12,7 @@ import ( v1 "github.com/vmware/cbcontainers-operator/api/v1" models "github.com/vmware/cbcontainers-operator/cbcontainers/models" options "github.com/vmware/cbcontainers-operator/cbcontainers/state/applyment/options" + client "sigs.k8s.io/controller-runtime/pkg/client" ) // MockStateApplier is a mock of StateApplier interface. @@ -51,3 +52,17 @@ func (mr *MockStateApplierMockRecorder) ApplyDesiredState(arg0, arg1, arg2, arg3 mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyDesiredState", reflect.TypeOf((*MockStateApplier)(nil).ApplyDesiredState), arg0, arg1, arg2, arg3) } + +// ShouldProcessEvent mocks base method. +func (m *MockStateApplier) ShouldProcessEvent(arg0 client.Object) bool { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ShouldProcessEvent", arg0) + ret0, _ := ret[0].(bool) + return ret0 +} + +// ShouldProcessEvent indicates an expected call of ShouldProcessEvent. +func (mr *MockStateApplierMockRecorder) ShouldProcessEvent(arg0 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldProcessEvent", reflect.TypeOf((*MockStateApplier)(nil).ShouldProcessEvent), arg0) +}