// Code generated by mockery v2.42.2. DO NOT EDIT. package purge import ( context "context" purge "github.com/goharbor/harbor/src/controller/purge" mock "github.com/stretchr/testify/mock" ) // Controller is an autogenerated mock type for the Controller type type Controller struct { mock.Mock } // Start provides a mock function with given fields: ctx, policy, trigger func (_m *Controller) Start(ctx context.Context, policy purge.JobPolicy, trigger string) (int64, error) { ret := _m.Called(ctx, policy, trigger) if len(ret) == 0 { panic("no return value specified for Start") } var r0 int64 var r1 error if rf, ok := ret.Get(0).(func(context.Context, purge.JobPolicy, string) (int64, error)); ok { return rf(ctx, policy, trigger) } if rf, ok := ret.Get(0).(func(context.Context, purge.JobPolicy, string) int64); ok { r0 = rf(ctx, policy, trigger) } else { r0 = ret.Get(0).(int64) } if rf, ok := ret.Get(1).(func(context.Context, purge.JobPolicy, string) error); ok { r1 = rf(ctx, policy, trigger) } else { r1 = ret.Error(1) } return r0, r1 } // Stop provides a mock function with given fields: ctx, id func (_m *Controller) Stop(ctx context.Context, id int64) error { ret := _m.Called(ctx, id) if len(ret) == 0 { panic("no return value specified for Stop") } var r0 error if rf, ok := ret.Get(0).(func(context.Context, int64) error); ok { r0 = rf(ctx, id) } else { r0 = ret.Error(0) } return r0 } // NewController creates a new instance of Controller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewController(t interface { mock.TestingT Cleanup(func()) }) *Controller { mock := &Controller{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }