harbor/src/controller/replication/mock_flow_controller_test.go

31 lines
797 B
Go
Raw Normal View History

// Code generated by mockery v2.1.0. DO NOT EDIT.
package replication
import (
context "context"
mock "github.com/stretchr/testify/mock"
model "github.com/goharbor/harbor/src/replication/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 *model.Resource) error {
ret := _m.Called(ctx, executionID, policy, resource)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, int64, *model.Policy, *model.Resource) error); ok {
r0 = rf(ctx, executionID, policy, resource)
} else {
r0 = ret.Error(0)
}
return r0
}