2022-06-07 10:04:33 +02:00
// Code generated by mockery v2.12.3. DO NOT EDIT.
2020-09-30 09:14:00 +02:00
package replication
import (
context "context"
mock "github.com/stretchr/testify/mock"
2021-03-31 09:49:23 +02:00
model "github.com/goharbor/harbor/src/controller/replication/model"
2021-03-03 04:45:33 +01:00
2021-03-31 09:49:23 +02:00
regmodel "github.com/goharbor/harbor/src/pkg/reg/model"
2020-09-30 09:14:00 +02:00
)
// 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
2021-03-31 09:49:23 +02:00
func ( _m * flowController ) Start ( ctx context . Context , executionID int64 , policy * model . Policy , resource * regmodel . Resource ) error {
2020-09-30 09:14:00 +02:00
ret := _m . Called ( ctx , executionID , policy , resource )
var r0 error
2021-03-31 09:49:23 +02:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , int64 , * model . Policy , * regmodel . Resource ) error ) ; ok {
2020-09-30 09:14:00 +02:00
r0 = rf ( ctx , executionID , policy , resource )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2022-06-07 10:04:33 +02:00
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
}