// Code generated by mockery v2.12.3. DO NOT EDIT.

package replication

import (
	context "context"

	mock "github.com/stretchr/testify/mock"

	model "github.com/goharbor/harbor/src/controller/replication/model"

	regmodel "github.com/goharbor/harbor/src/pkg/reg/model"
)

// flowController is an autogenerated mock type for the Controller type
type flowController struct {
	mock.Mock
}

// Start provides a mock function with given fields: ctx, executionID, policy, resource
func (_m *flowController) Start(ctx context.Context, executionID int64, policy *model.Policy, resource *regmodel.Resource) error {
	ret := _m.Called(ctx, executionID, policy, resource)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, int64, *model.Policy, *regmodel.Resource) error); ok {
		r0 = rf(ctx, executionID, policy, resource)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

type newFlowControllerT interface {
	mock.TestingT
	Cleanup(func())
}

// newFlowController creates a new instance of flowController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newFlowController(t newFlowControllerT) *flowController {
	mock := &flowController{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
