2024-04-11 05:37:59 +02:00
// Code generated by mockery v2.42.2. 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 )
2024-04-11 05:37:59 +02:00
if len ( ret ) == 0 {
panic ( "no return value specified for Start" )
}
2020-09-30 09:14:00 +02:00
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
2023-11-05 07:37:25 +01:00
// 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.
// The first argument is typically a *testing.T value.
func newFlowController ( t interface {
2022-06-07 10:04:33 +02:00
mock . TestingT
Cleanup ( func ( ) )
2023-11-05 07:37:25 +01:00
} ) * flowController {
2022-06-07 10:04:33 +02:00
mock := & flowController { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}