upgrade: bump up mockery to v2.14.0 (#17415)

Signed-off-by: chlins <chenyuzh@vmware.com>
This commit is contained in:
Chenyu Zhang 2022-08-22 14:21:13 +08:00 committed by GitHub
parent c2a3020e0e
commit 5d7a549620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
88 changed files with 262 additions and 262 deletions

View File

@ -346,7 +346,7 @@ gen_apis: lint_apis
MOCKERY_IMAGENAME=$(IMAGENAMESPACE)/mockery MOCKERY_IMAGENAME=$(IMAGENAMESPACE)/mockery
MOCKERY_VERSION=v2.12.3 MOCKERY_VERSION=v2.14.0
MOCKERY=$(RUNCONTAINER) ${MOCKERY_IMAGENAME}:${MOCKERY_VERSION} MOCKERY=$(RUNCONTAINER) ${MOCKERY_IMAGENAME}:${MOCKERY_VERSION}
MOCKERY_IMAGE_BUILD_CMD=${DOCKERBUILD} -f ${TOOLSPATH}/mockery/Dockerfile --build-arg GOLANG=${GOBUILDIMAGE} --build-arg MOCKERY_VERSION=${MOCKERY_VERSION} -t ${MOCKERY_IMAGENAME}:$(MOCKERY_VERSION) . MOCKERY_IMAGE_BUILD_CMD=${DOCKERBUILD} -f ${TOOLSPATH}/mockery/Dockerfile --build-arg GOLANG=${GOBUILDIMAGE} --build-arg MOCKERY_VERSION=${MOCKERY_VERSION} -t ${MOCKERY_IMAGENAME}:$(MOCKERY_VERSION) .

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package flow package flow
@ -53,13 +53,13 @@ func (_m *mockFactory) Create(_a0 *model.Registry) (adapter.Adapter, error) {
return r0, r1 return r0, r1
} }
type newMockFactoryT interface { type mockConstructorTestingTnewMockFactory interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// newMockFactory creates a new instance of mockFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // newMockFactory creates a new instance of mockFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockFactory(t newMockFactoryT) *mockFactory { func newMockFactory(t mockConstructorTestingTnewMockFactory) *mockFactory {
mock := &mockFactory{} mock := &mockFactory{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package flow package flow
@ -344,13 +344,13 @@ func (_m *mockAdapter) PushManifest(repository string, reference string, mediaTy
return r0, r1 return r0, r1
} }
type newMockAdapterT interface { type mockConstructorTestingTnewMockAdapter interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// newMockAdapter creates a new instance of mockAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // newMockAdapter creates a new instance of mockAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockAdapter(t newMockAdapterT) *mockAdapter { func newMockAdapter(t mockConstructorTestingTnewMockAdapter) *mockAdapter {
mock := &mockAdapter{} mock := &mockAdapter{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package replication package replication
@ -31,13 +31,13 @@ func (_m *flowController) Start(ctx context.Context, executionID int64, policy *
return r0 return r0
} }
type newFlowControllerT interface { type mockConstructorTestingTnewFlowController interface {
mock.TestingT mock.TestingT
Cleanup(func()) 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. // 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 { func newFlowController(t mockConstructorTestingTnewFlowController) *flowController {
mock := &flowController{} mock := &flowController{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package mgt package mgt
@ -141,13 +141,13 @@ func (_m *MockManager) SaveJob(_a0 *job.Stats) error {
return r0 return r0
} }
type NewMockManagerT interface { type mockConstructorTestingTNewMockManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewMockManager creates a new instance of MockManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewMockManager creates a new instance of MockManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockManager(t NewMockManagerT) *MockManager { func NewMockManager(t mockConstructorTestingTNewMockManager) *MockManager {
mock := &MockManager{} mock := &MockManager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package period package period
@ -49,13 +49,13 @@ func (_m *MockScheduler) UnSchedule(policyID string) error {
return r0 return r0
} }
type NewMockSchedulerT interface { type mockConstructorTestingTNewMockScheduler interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewMockScheduler creates a new instance of MockScheduler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewMockScheduler creates a new instance of MockScheduler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockScheduler(t NewMockSchedulerT) *MockScheduler { func NewMockScheduler(t mockConstructorTestingTNewMockScheduler) *MockScheduler {
mock := &MockScheduler{} mock := &MockScheduler{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package scheduler package scheduler
@ -137,13 +137,13 @@ func (_m *mockDAO) UpdateRevision(ctx context.Context, id int64, revision int64)
return r0, r1 return r0, r1
} }
type newMockDAOT interface { type mockConstructorTestingTnewMockDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// newMockDAO creates a new instance of mockDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // newMockDAO creates a new instance of mockDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockDAO(t newMockDAOT) *mockDAO { func newMockDAO(t mockConstructorTestingTnewMockDAO) *mockDAO {
mock := &mockDAO{} mock := &mockDAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package task package task
@ -190,13 +190,13 @@ func (_m *mockExecutionDAO) Update(ctx context.Context, execution *dao.Execution
return r0 return r0
} }
type newMockExecutionDAOT interface { type mockConstructorTestingTnewMockExecutionDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// newMockExecutionDAO creates a new instance of mockExecutionDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // newMockExecutionDAO creates a new instance of mockExecutionDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockExecutionDAO(t newMockExecutionDAOT) *mockExecutionDAO { func newMockExecutionDAO(t mockConstructorTestingTnewMockExecutionDAO) *mockExecutionDAO {
mock := &mockExecutionDAO{} mock := &mockExecutionDAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package task package task
@ -95,13 +95,13 @@ func (_m *mockJobserviceClient) SubmitJob(_a0 *models.JobData) (string, error) {
return r0, r1 return r0, r1
} }
type newMockJobserviceClientT interface { type mockConstructorTestingTnewMockJobserviceClient interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// newMockJobserviceClient creates a new instance of mockJobserviceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // newMockJobserviceClient creates a new instance of mockJobserviceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockJobserviceClient(t newMockJobserviceClientT) *mockJobserviceClient { func newMockJobserviceClient(t mockConstructorTestingTnewMockJobserviceClient) *mockJobserviceClient {
mock := &mockJobserviceClient{} mock := &mockJobserviceClient{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package task package task
@ -199,13 +199,13 @@ func (_m *mockTaskDAO) UpdateStatus(ctx context.Context, id int64, status string
return r0 return r0
} }
type newMockTaskDAOT interface { type mockConstructorTestingTnewMockTaskDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// newMockTaskDAO creates a new instance of mockTaskDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // newMockTaskDAO creates a new instance of mockTaskDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockTaskDAO(t newMockTaskDAOT) *mockTaskDAO { func newMockTaskDAO(t mockConstructorTestingTnewMockTaskDAO) *mockTaskDAO {
mock := &mockTaskDAO{} mock := &mockTaskDAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package task package task
@ -160,13 +160,13 @@ func (_m *mockTaskManager) UpdateExtraAttrs(ctx context.Context, id int64, extra
return r0 return r0
} }
type newMockTaskManagerT interface { type mockConstructorTestingTnewMockTaskManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// newMockTaskManager creates a new instance of mockTaskManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // newMockTaskManager creates a new instance of mockTaskManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockTaskManager(t newMockTaskManagerT) *mockTaskManager { func newMockTaskManager(t mockConstructorTestingTnewMockTaskManager) *mockTaskManager {
mock := &mockTaskManager{} mock := &mockTaskManager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package security package security
@ -99,13 +99,13 @@ func (_m *Context) Name() string {
return r0 return r0
} }
type NewContextT interface { type mockConstructorTestingTNewContext interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewContext creates a new instance of Context. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewContext creates a new instance of Context. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewContext(t NewContextT) *Context { func NewContext(t mockConstructorTestingTNewContext) *Context {
mock := &Context{} mock := &Context{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package artifact package artifact
@ -253,13 +253,13 @@ func (_m *Controller) Walk(ctx context.Context, root *artifact.Artifact, walkFn
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package blob package blob
@ -335,13 +335,13 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Blob) error {
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package config package config
@ -111,13 +111,13 @@ func (_m *Controller) UserConfigs(ctx context.Context) (map[string]*models.Value
return r0, r1 return r0, r1
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package jobservice package jobservice
@ -73,13 +73,13 @@ func (_m *SchedulerController) Get(ctx context.Context, vendorType string) (*sch
return r0, r1 return r0, r1
} }
type NewSchedulerControllerT interface { type mockConstructorTestingTNewSchedulerController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewSchedulerController creates a new instance of SchedulerController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewSchedulerController creates a new instance of SchedulerController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewSchedulerController(t NewSchedulerControllerT) *SchedulerController { func NewSchedulerController(t mockConstructorTestingTNewSchedulerController) *SchedulerController {
mock := &SchedulerController{} mock := &SchedulerController{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package project package project
@ -225,13 +225,13 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Project) error {
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package proxy package proxy
@ -128,13 +128,13 @@ func (_m *RemoteInterface) ManifestExist(repo string, ref string) (bool, *distri
return r0, r1, r2 return r0, r1, r2
} }
type NewRemoteInterfaceT interface { type mockConstructorTestingTNewRemoteInterface interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewRemoteInterface creates a new instance of RemoteInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewRemoteInterface creates a new instance of RemoteInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewRemoteInterface(t NewRemoteInterfaceT) *RemoteInterface { func NewRemoteInterface(t mockConstructorTestingTNewRemoteInterface) *RemoteInterface {
mock := &RemoteInterface{} mock := &RemoteInterface{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package purge package purge
@ -49,13 +49,13 @@ func (_m *Controller) Stop(ctx context.Context, id int64) error {
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package quota package quota
@ -243,13 +243,13 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Quota) error {
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package replication package replication
@ -335,13 +335,13 @@ func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy, pr
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package repository package repository
@ -183,13 +183,13 @@ func (_m *Controller) Update(ctx context.Context, _a1 *model.RepoRecord, propert
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package retention package retention
@ -282,13 +282,13 @@ func (_m *Controller) UpdateRetention(ctx context.Context, p *policy.Metadata) e
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package robot package robot
@ -139,13 +139,13 @@ func (_m *Controller) Update(ctx context.Context, r *robot.Robot, option *robot.
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package scan package scan
@ -36,13 +36,13 @@ func (_m *Checker) IsScannable(ctx context.Context, _a1 *artifact.Artifact) (boo
return r0, r1 return r0, r1
} }
type NewCheckerT interface { type mockConstructorTestingTNewChecker interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewChecker creates a new instance of Checker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewChecker creates a new instance of Checker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewChecker(t NewCheckerT) *Checker { func NewChecker(t mockConstructorTestingTNewChecker) *Checker {
mock := &Checker{} mock := &Checker{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package scan package scan
@ -190,13 +190,13 @@ func (_m *Controller) Stop(ctx context.Context, _a1 *artifact.Artifact) error {
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package scandataexport package scandataexport
@ -120,13 +120,13 @@ func (_m *Controller) Start(ctx context.Context, criteria export.Request) (int64
return r0, r1 return r0, r1
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package scanner package scanner
@ -263,13 +263,13 @@ func (_m *Controller) UpdateRegistration(ctx context.Context, registration *scan
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package systemartifact package systemartifact
@ -27,13 +27,13 @@ func (_m *Controller) Start(ctx context.Context, async bool, trigger string) err
return r0 return r0
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package user package user
@ -294,13 +294,13 @@ func (_m *Controller) VerifyPassword(ctx context.Context, usernameOrEmail string
return r0, r1 return r0, r1
} }
type NewControllerT interface { type mockConstructorTestingTNewController interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// 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. // 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.
func NewController(t NewControllerT) *Controller { func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{} mock := &Controller{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package cache package cache
@ -121,13 +121,13 @@ func (_m *Cache) Save(ctx context.Context, key string, value interface{}, expira
return r0 return r0
} }
type NewCacheT interface { type mockConstructorTestingTNewCache interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewCache creates a new instance of Cache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewCache creates a new instance of Cache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewCache(t NewCacheT) *Cache { func NewCache(t mockConstructorTestingTNewCache) *Cache {
mock := &Cache{} mock := &Cache{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package config package config
@ -141,13 +141,13 @@ func (_m *Manager) ValidateCfg(ctx context.Context, cfgs map[string]interface{})
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package orm package orm
@ -28,13 +28,13 @@ func (_m *Creator) Create() orm.Ormer {
return r0 return r0
} }
type NewCreatorT interface { type mockConstructorTestingTNewCreator interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewCreator creates a new instance of Creator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewCreator creates a new instance of Creator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewCreator(t NewCreatorT) *Creator { func NewCreator(t mockConstructorTestingTNewCreator) *Creator {
mock := &Creator{} mock := &Creator{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -139,13 +139,13 @@ func (_m *DAO) List(ctx context.Context, query *q.Query) ([]*dao.Accessory, erro
return r0, r1 return r0, r1
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package accessory package accessory
@ -146,13 +146,13 @@ func (_m *Manager) List(ctx context.Context, query *q.Query) ([]model.Accessory,
return r0, r1 return r0, r1
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package model package model
@ -82,13 +82,13 @@ func (_m *Accessory) Kind() string {
return r0 return r0
} }
type NewAccessoryT interface { type mockConstructorTestingTNewAccessory interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewAccessory creates a new instance of Accessory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewAccessory creates a new instance of Accessory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewAccessory(t NewAccessoryT) *Accessory { func NewAccessory(t mockConstructorTestingTNewAccessory) *Accessory {
mock := &Accessory{} mock := &Accessory{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -59,13 +59,13 @@ func (_m *DAO) Set(ctx context.Context, l models.CVEAllowlist) (int64, error) {
return r0, r1 return r0, r1
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package robot package robot
@ -102,13 +102,13 @@ func (_m *Manager) SetSys(ctx context.Context, list models.CVEAllowlist) error {
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package artifact package artifact
@ -216,13 +216,13 @@ func (_m *Manager) UpdatePullTime(ctx context.Context, id int64, pullTime time.T
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -140,13 +140,13 @@ func (_m *DAO) Purge(ctx context.Context, retentionHour int, includeOperations [
return r0, r1 return r0, r1
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package audit package audit
@ -139,13 +139,13 @@ func (_m *Manager) Purge(ctx context.Context, retentionHour int, includeOperatio
return r0, r1 return r0, r1
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package blob package blob
@ -313,13 +313,13 @@ func (_m *Manager) UselessBlobs(ctx context.Context, timeWindowHours int64) ([]*
return r0, r1 return r0, r1
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package redis package redis
@ -145,13 +145,13 @@ func (_m *CachedManager) Save(ctx context.Context, digest string, manifest []byt
return r0 return r0
} }
type NewCachedManagerT interface { type mockConstructorTestingTNewCachedManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewCachedManager creates a new instance of CachedManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewCachedManager creates a new instance of CachedManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewCachedManager(t NewCachedManagerT) *CachedManager { func NewCachedManager(t mockConstructorTestingTNewCachedManager) *CachedManager {
mock := &CachedManager{} mock := &CachedManager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package distribution package distribution
@ -58,13 +58,13 @@ func (_m *Manifest) References() []distribution.Descriptor {
return r0 return r0
} }
type NewManifestT interface { type mockConstructorTestingTNewManifest interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManifest creates a new instance of Manifest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManifest creates a new instance of Manifest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManifest(t NewManifestT) *Manifest { func NewManifest(t mockConstructorTestingTNewManifest) *Manifest {
mock := &Manifest{} mock := &Manifest{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -147,13 +147,13 @@ func (_m *DAO) UpdateImmutableRule(ctx context.Context, projectID int64, ir *mod
return r0 return r0
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -82,13 +82,13 @@ func (_m *DAO) Get(ctx context.Context, uuid string) (*models.JobLog, error) {
return r0, r1 return r0, r1
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package joblog package joblog
@ -82,13 +82,13 @@ func (_m *Manager) Get(ctx context.Context, uuid string) (*models.JobLog, error)
return r0, r1 return r0, r1
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -212,13 +212,13 @@ func (_m *DAO) Update(ctx context.Context, label *model.Label) error {
return r0 return r0
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package label package label
@ -212,13 +212,13 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.Label) error {
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package ldap package ldap
@ -108,13 +108,13 @@ func (_m *Manager) SearchUser(ctx context.Context, sess *ldap.Session, username
return r0, r1 return r0, r1
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -177,13 +177,13 @@ func (_m *DAO) Update(ctx context.Context, n *model.Job, props ...string) error
return r0 return r0
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -133,13 +133,13 @@ func (_m *DAO) Update(ctx context.Context, n *model.Policy) error {
return r0 return r0
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package notification package notification
@ -192,13 +192,13 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.Policy) error {
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -119,13 +119,13 @@ func (_m *MetaDAO) Update(ctx context.Context, oidcUser *models.OIDCUser, props
return r0 return r0
} }
type NewMetaDAOT interface { type mockConstructorTestingTNewMetaDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewMetaDAO creates a new instance of MetaDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewMetaDAO creates a new instance of MetaDAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMetaDAO(t NewMetaDAOT) *MetaDAO { func NewMetaDAO(t mockConstructorTestingTNewMetaDAO) *MetaDAO {
mock := &MetaDAO{} mock := &MetaDAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package oidc package oidc
@ -130,13 +130,13 @@ func (_m *MetaManager) Update(ctx context.Context, oidcUser *models.OIDCUser, co
return r0 return r0
} }
type NewMetaManagerT interface { type mockConstructorTestingTNewMetaManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewMetaManager creates a new instance of MetaManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewMetaManager creates a new instance of MetaManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewMetaManager(t NewMetaManagerT) *MetaManager { func NewMetaManager(t mockConstructorTestingTNewMetaManager) *MetaManager {
mock := &MetaManager{} mock := &MetaManager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package project package project
@ -148,13 +148,13 @@ func (_m *Manager) ListRoles(ctx context.Context, projectID int64, userID int, g
return r0, r1 return r0, r1
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package metadata package metadata
@ -117,13 +117,13 @@ func (_m *Manager) Update(ctx context.Context, projectID int64, meta map[string]
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package driver package driver
@ -113,13 +113,13 @@ func (_m *Driver) Validate(hardLimits types.ResourceList) error {
return r0 return r0
} }
type NewDriverT interface { type mockConstructorTestingTNewDriver interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDriver creates a new instance of Driver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDriver creates a new instance of Driver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDriver(t NewDriverT) *Driver { func NewDriver(t mockConstructorTestingTNewDriver) *Driver {
mock := &Driver{} mock := &Driver{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package quota package quota
@ -164,13 +164,13 @@ func (_m *Manager) Update(ctx context.Context, _a1 *models.Quota) error {
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -170,13 +170,13 @@ func (_m *DAO) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*model.P
return r0, r1 return r0, r1
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package rbac package rbac
@ -169,13 +169,13 @@ func (_m *Manager) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*mod
return r0, r1 return r0, r1
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package adapter package adapter
@ -70,13 +70,13 @@ func (_m *Adapter) PrepareForPush(_a0 []*model.Resource) error {
return r0 return r0
} }
type NewAdapterT interface { type mockConstructorTestingTNewAdapter interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewAdapter creates a new instance of Adapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewAdapter creates a new instance of Adapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewAdapter(t NewAdapterT) *Adapter { func NewAdapter(t mockConstructorTestingTNewAdapter) *Adapter {
mock := &Adapter{} mock := &Adapter{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -139,13 +139,13 @@ func (_m *DAO) Update(ctx context.Context, registry *dao.Registry, props ...stri
return r0 return r0
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package manager package manager
@ -211,13 +211,13 @@ func (_m *Manager) Update(ctx context.Context, registry *model.Registry, props .
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package registry package registry
@ -309,13 +309,13 @@ func (_m *Client) PushManifest(repository string, reference string, mediaType st
return r0, r1 return r0, r1
} }
type NewClientT interface { type mockConstructorTestingTNewClient interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewClient(t NewClientT) *Client { func NewClient(t mockConstructorTestingTNewClient) *Client {
mock := &Client{} mock := &Client{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -140,13 +140,13 @@ func (_m *DAO) Update(ctx context.Context, policy *model.Policy, props ...string
return r0 return r0
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package manager package manager
@ -139,13 +139,13 @@ func (_m *Manager) Update(ctx context.Context, policy *model.Policy, props ...st
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -177,13 +177,13 @@ func (_m *DAO) Update(ctx context.Context, repository *model.RepoRecord, props .
return r0 return r0
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package repository package repository
@ -199,13 +199,13 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.RepoRecord, props ...s
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -154,13 +154,13 @@ func (_m *DAO) Update(ctx context.Context, r *model.Robot, props ...string) erro
return r0 return r0
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package robot package robot
@ -153,13 +153,13 @@ func (_m *Manager) Update(ctx context.Context, m *model.Robot, props ...string)
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package export package export
@ -34,13 +34,13 @@ func (_m *ArtifactDigestCalculator) Calculate(fileName string) (digest.Digest, e
return r0, r1 return r0, r1
} }
type NewArtifactDigestCalculatorT interface { type mockConstructorTestingTNewArtifactDigestCalculator interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewArtifactDigestCalculator creates a new instance of ArtifactDigestCalculator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewArtifactDigestCalculator creates a new instance of ArtifactDigestCalculator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewArtifactDigestCalculator(t NewArtifactDigestCalculatorT) *ArtifactDigestCalculator { func NewArtifactDigestCalculator(t mockConstructorTestingTNewArtifactDigestCalculator) *ArtifactDigestCalculator {
mock := &ArtifactDigestCalculator{} mock := &ArtifactDigestCalculator{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package export package export
@ -107,13 +107,13 @@ func (_m *FilterProcessor) ProcessTagFilter(ctx context.Context, filter string,
return r0, r1 return r0, r1
} }
type NewFilterProcessorT interface { type mockConstructorTestingTNewFilterProcessor interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewFilterProcessor creates a new instance of FilterProcessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewFilterProcessor creates a new instance of FilterProcessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewFilterProcessor(t NewFilterProcessorT) *FilterProcessor { func NewFilterProcessor(t mockConstructorTestingTNewFilterProcessor) *FilterProcessor {
mock := &FilterProcessor{} mock := &FilterProcessor{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package export package export
@ -37,13 +37,13 @@ func (_m *Manager) Fetch(ctx context.Context, params export.Params) ([]export.Da
return r0, r1 return r0, r1
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package report package report
@ -132,13 +132,13 @@ func (_m *Manager) UpdateReportData(ctx context.Context, uuid string, _a2 string
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package v1 package v1
@ -79,13 +79,13 @@ func (_m *Client) SubmitScan(req *v1.ScanRequest) (*v1.ScanResponse, error) {
return r0, r1 return r0, r1
} }
type NewClientT interface { type mockConstructorTestingTNewClient interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewClient(t NewClientT) *Client { func NewClient(t mockConstructorTestingTNewClient) *Client {
mock := &Client{} mock := &Client{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package v1 package v1
@ -35,13 +35,13 @@ func (_m *ClientPool) Get(url string, authType string, accessCredential string,
return r0, r1 return r0, r1
} }
type NewClientPoolT interface { type mockConstructorTestingTNewClientPool interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewClientPool creates a new instance of ClientPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewClientPool creates a new instance of ClientPool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewClientPool(t NewClientPoolT) *ClientPool { func NewClientPool(t mockConstructorTestingTNewClientPool) *ClientPool {
mock := &ClientPool{} mock := &ClientPool{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package v1 package v1
@ -18,13 +18,13 @@ func (_m *RequestResolver) Execute(req *http.Request) {
_m.Called(req) _m.Called(req)
} }
type NewRequestResolverT interface { type mockConstructorTestingTNewRequestResolver interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewRequestResolver creates a new instance of RequestResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewRequestResolver creates a new instance of RequestResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewRequestResolver(t NewRequestResolverT) *RequestResolver { func NewRequestResolver(t mockConstructorTestingTNewRequestResolver) *RequestResolver {
mock := &RequestResolver{} mock := &RequestResolver{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package v1 package v1
@ -36,13 +36,13 @@ func (_m *responseHandler) Execute(code int, resp *http.Response) ([]byte, error
return r0, r1 return r0, r1
} }
type newResponseHandlerT interface { type mockConstructorTestingTnewResponseHandler interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// newResponseHandler creates a new instance of responseHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // newResponseHandler creates a new instance of responseHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newResponseHandler(t newResponseHandlerT) *responseHandler { func newResponseHandler(t mockConstructorTestingTnewResponseHandler) *responseHandler {
mock := &responseHandler{} mock := &responseHandler{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package scanner package scanner
@ -169,13 +169,13 @@ func (_m *Manager) Update(ctx context.Context, registration *daoscanner.Registra
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package scheduler package scheduler
@ -111,13 +111,13 @@ func (_m *Scheduler) UnScheduleByVendor(ctx context.Context, vendorType string,
return r0 return r0
} }
type NewSchedulerT interface { type mockConstructorTestingTNewScheduler interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewScheduler creates a new instance of Scheduler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewScheduler creates a new instance of Scheduler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewScheduler(t NewSchedulerT) *Scheduler { func NewScheduler(t mockConstructorTestingTNewScheduler) *Scheduler {
mock := &Scheduler{} mock := &Scheduler{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package cleanup package cleanup
@ -62,13 +62,13 @@ func (_m *Selector) ListWithFilters(ctx context.Context, query *q.Query) ([]*mod
return r0, r1 return r0, r1
} }
type NewSelectorT interface { type mockConstructorTestingTNewSelector interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewSelector creates a new instance of Selector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewSelector creates a new instance of Selector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewSelector(t NewSelectorT) *Selector { func NewSelector(t mockConstructorTestingTNewSelector) *Selector {
mock := &Selector{} mock := &Selector{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -119,13 +119,13 @@ func (_m *DAO) Size(ctx context.Context) (int64, error) {
return r0, r1 return r0, r1
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package systemartifact package systemartifact
@ -183,13 +183,13 @@ func (_m *Manager) RegisterCleanupCriteria(vendor string, artifactType string, c
_m.Called(vendor, artifactType, criteria) _m.Called(vendor, artifactType, criteria)
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package task package task
@ -211,13 +211,13 @@ func (_m *ExecutionManager) UpdateExtraAttrs(ctx context.Context, id int64, extr
return r0 return r0
} }
type NewExecutionManagerT interface { type mockConstructorTestingTNewExecutionManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewExecutionManager creates a new instance of ExecutionManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewExecutionManager creates a new instance of ExecutionManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewExecutionManager(t NewExecutionManagerT) *ExecutionManager { func NewExecutionManager(t mockConstructorTestingTNewExecutionManager) *ExecutionManager {
mock := &ExecutionManager{} mock := &ExecutionManager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package task package task
@ -162,13 +162,13 @@ func (_m *Manager) UpdateExtraAttrs(ctx context.Context, id int64, extraAttrs ma
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package dao package dao
@ -117,13 +117,13 @@ func (_m *DAO) Update(ctx context.Context, user *models.User, props ...string) e
return r0 return r0
} }
type NewDAOT interface { type mockConstructorTestingTNewDAO interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewDAO creates a new instance of DAO. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDAO(t NewDAOT) *DAO { func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{} mock := &DAO{}
mock.Mock.Test(t) mock.Mock.Test(t)

View File

@ -1,4 +1,4 @@
// Code generated by mockery v2.12.3. DO NOT EDIT. // Code generated by mockery v2.14.0. DO NOT EDIT.
package user package user
@ -258,13 +258,13 @@ func (_m *Manager) UpdateProfile(ctx context.Context, _a1 *commonmodels.User, co
return r0 return r0
} }
type NewManagerT interface { type mockConstructorTestingTNewManager interface {
mock.TestingT mock.TestingT
Cleanup(func()) Cleanup(func())
} }
// NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewManager(t NewManagerT) *Manager { func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{} mock := &Manager{}
mock.Mock.Test(t) mock.Mock.Test(t)