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_VERSION=v2.12.3
MOCKERY_VERSION=v2.14.0
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) .

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
@ -53,13 +53,13 @@ func (_m *mockFactory) Create(_a0 *model.Registry) (adapter.Adapter, error) {
return r0, r1
}
type newMockFactoryT interface {
type mockConstructorTestingTnewMockFactory interface {
mock.TestingT
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.
func newMockFactory(t newMockFactoryT) *mockFactory {
func newMockFactory(t mockConstructorTestingTnewMockFactory) *mockFactory {
mock := &mockFactory{}
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
@ -344,13 +344,13 @@ func (_m *mockAdapter) PushManifest(repository string, reference string, mediaTy
return r0, r1
}
type newMockAdapterT interface {
type mockConstructorTestingTnewMockAdapter interface {
mock.TestingT
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.
func newMockAdapter(t newMockAdapterT) *mockAdapter {
func newMockAdapter(t mockConstructorTestingTnewMockAdapter) *mockAdapter {
mock := &mockAdapter{}
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
@ -31,13 +31,13 @@ func (_m *flowController) Start(ctx context.Context, executionID int64, policy *
return r0
}
type newFlowControllerT interface {
type mockConstructorTestingTnewFlowController 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 {
func newFlowController(t mockConstructorTestingTnewFlowController) *flowController {
mock := &flowController{}
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
@ -141,13 +141,13 @@ func (_m *MockManager) SaveJob(_a0 *job.Stats) error {
return r0
}
type NewMockManagerT interface {
type mockConstructorTestingTNewMockManager interface {
mock.TestingT
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.
func NewMockManager(t NewMockManagerT) *MockManager {
func NewMockManager(t mockConstructorTestingTNewMockManager) *MockManager {
mock := &MockManager{}
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
@ -49,13 +49,13 @@ func (_m *MockScheduler) UnSchedule(policyID string) error {
return r0
}
type NewMockSchedulerT interface {
type mockConstructorTestingTNewMockScheduler interface {
mock.TestingT
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.
func NewMockScheduler(t NewMockSchedulerT) *MockScheduler {
func NewMockScheduler(t mockConstructorTestingTNewMockScheduler) *MockScheduler {
mock := &MockScheduler{}
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
@ -137,13 +137,13 @@ func (_m *mockDAO) UpdateRevision(ctx context.Context, id int64, revision int64)
return r0, r1
}
type newMockDAOT interface {
type mockConstructorTestingTnewMockDAO interface {
mock.TestingT
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.
func newMockDAO(t newMockDAOT) *mockDAO {
func newMockDAO(t mockConstructorTestingTnewMockDAO) *mockDAO {
mock := &mockDAO{}
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
@ -190,13 +190,13 @@ func (_m *mockExecutionDAO) Update(ctx context.Context, execution *dao.Execution
return r0
}
type newMockExecutionDAOT interface {
type mockConstructorTestingTnewMockExecutionDAO interface {
mock.TestingT
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.
func newMockExecutionDAO(t newMockExecutionDAOT) *mockExecutionDAO {
func newMockExecutionDAO(t mockConstructorTestingTnewMockExecutionDAO) *mockExecutionDAO {
mock := &mockExecutionDAO{}
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
@ -95,13 +95,13 @@ func (_m *mockJobserviceClient) SubmitJob(_a0 *models.JobData) (string, error) {
return r0, r1
}
type newMockJobserviceClientT interface {
type mockConstructorTestingTnewMockJobserviceClient interface {
mock.TestingT
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.
func newMockJobserviceClient(t newMockJobserviceClientT) *mockJobserviceClient {
func newMockJobserviceClient(t mockConstructorTestingTnewMockJobserviceClient) *mockJobserviceClient {
mock := &mockJobserviceClient{}
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
@ -199,13 +199,13 @@ func (_m *mockTaskDAO) UpdateStatus(ctx context.Context, id int64, status string
return r0
}
type newMockTaskDAOT interface {
type mockConstructorTestingTnewMockTaskDAO interface {
mock.TestingT
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.
func newMockTaskDAO(t newMockTaskDAOT) *mockTaskDAO {
func newMockTaskDAO(t mockConstructorTestingTnewMockTaskDAO) *mockTaskDAO {
mock := &mockTaskDAO{}
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
@ -160,13 +160,13 @@ func (_m *mockTaskManager) UpdateExtraAttrs(ctx context.Context, id int64, extra
return r0
}
type newMockTaskManagerT interface {
type mockConstructorTestingTnewMockTaskManager interface {
mock.TestingT
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.
func newMockTaskManager(t newMockTaskManagerT) *mockTaskManager {
func newMockTaskManager(t mockConstructorTestingTnewMockTaskManager) *mockTaskManager {
mock := &mockTaskManager{}
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
@ -99,13 +99,13 @@ func (_m *Context) Name() string {
return r0
}
type NewContextT interface {
type mockConstructorTestingTNewContext interface {
mock.TestingT
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.
func NewContext(t NewContextT) *Context {
func NewContext(t mockConstructorTestingTNewContext) *Context {
mock := &Context{}
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
@ -253,13 +253,13 @@ func (_m *Controller) Walk(ctx context.Context, root *artifact.Artifact, walkFn
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -335,13 +335,13 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Blob) error {
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -111,13 +111,13 @@ func (_m *Controller) UserConfigs(ctx context.Context) (map[string]*models.Value
return r0, r1
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -73,13 +73,13 @@ func (_m *SchedulerController) Get(ctx context.Context, vendorType string) (*sch
return r0, r1
}
type NewSchedulerControllerT interface {
type mockConstructorTestingTNewSchedulerController interface {
mock.TestingT
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.
func NewSchedulerController(t NewSchedulerControllerT) *SchedulerController {
func NewSchedulerController(t mockConstructorTestingTNewSchedulerController) *SchedulerController {
mock := &SchedulerController{}
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
@ -225,13 +225,13 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Project) error {
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -128,13 +128,13 @@ func (_m *RemoteInterface) ManifestExist(repo string, ref string) (bool, *distri
return r0, r1, r2
}
type NewRemoteInterfaceT interface {
type mockConstructorTestingTNewRemoteInterface interface {
mock.TestingT
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.
func NewRemoteInterface(t NewRemoteInterfaceT) *RemoteInterface {
func NewRemoteInterface(t mockConstructorTestingTNewRemoteInterface) *RemoteInterface {
mock := &RemoteInterface{}
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
@ -49,13 +49,13 @@ func (_m *Controller) Stop(ctx context.Context, id int64) error {
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -243,13 +243,13 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Quota) error {
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -335,13 +335,13 @@ func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy, pr
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -183,13 +183,13 @@ func (_m *Controller) Update(ctx context.Context, _a1 *model.RepoRecord, propert
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -282,13 +282,13 @@ func (_m *Controller) UpdateRetention(ctx context.Context, p *policy.Metadata) e
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -139,13 +139,13 @@ func (_m *Controller) Update(ctx context.Context, r *robot.Robot, option *robot.
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -36,13 +36,13 @@ func (_m *Checker) IsScannable(ctx context.Context, _a1 *artifact.Artifact) (boo
return r0, r1
}
type NewCheckerT interface {
type mockConstructorTestingTNewChecker interface {
mock.TestingT
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.
func NewChecker(t NewCheckerT) *Checker {
func NewChecker(t mockConstructorTestingTNewChecker) *Checker {
mock := &Checker{}
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
@ -190,13 +190,13 @@ func (_m *Controller) Stop(ctx context.Context, _a1 *artifact.Artifact) error {
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -120,13 +120,13 @@ func (_m *Controller) Start(ctx context.Context, criteria export.Request) (int64
return r0, r1
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -263,13 +263,13 @@ func (_m *Controller) UpdateRegistration(ctx context.Context, registration *scan
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -27,13 +27,13 @@ func (_m *Controller) Start(ctx context.Context, async bool, trigger string) err
return r0
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -294,13 +294,13 @@ func (_m *Controller) VerifyPassword(ctx context.Context, usernameOrEmail string
return r0, r1
}
type NewControllerT interface {
type mockConstructorTestingTNewController interface {
mock.TestingT
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.
func NewController(t NewControllerT) *Controller {
func NewController(t mockConstructorTestingTNewController) *Controller {
mock := &Controller{}
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
@ -121,13 +121,13 @@ func (_m *Cache) Save(ctx context.Context, key string, value interface{}, expira
return r0
}
type NewCacheT interface {
type mockConstructorTestingTNewCache interface {
mock.TestingT
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.
func NewCache(t NewCacheT) *Cache {
func NewCache(t mockConstructorTestingTNewCache) *Cache {
mock := &Cache{}
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
@ -141,13 +141,13 @@ func (_m *Manager) ValidateCfg(ctx context.Context, cfgs map[string]interface{})
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -28,13 +28,13 @@ func (_m *Creator) Create() orm.Ormer {
return r0
}
type NewCreatorT interface {
type mockConstructorTestingTNewCreator interface {
mock.TestingT
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.
func NewCreator(t NewCreatorT) *Creator {
func NewCreator(t mockConstructorTestingTNewCreator) *Creator {
mock := &Creator{}
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
@ -139,13 +139,13 @@ func (_m *DAO) List(ctx context.Context, query *q.Query) ([]*dao.Accessory, erro
return r0, r1
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -146,13 +146,13 @@ func (_m *Manager) List(ctx context.Context, query *q.Query) ([]model.Accessory,
return r0, r1
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -82,13 +82,13 @@ func (_m *Accessory) Kind() string {
return r0
}
type NewAccessoryT interface {
type mockConstructorTestingTNewAccessory interface {
mock.TestingT
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.
func NewAccessory(t NewAccessoryT) *Accessory {
func NewAccessory(t mockConstructorTestingTNewAccessory) *Accessory {
mock := &Accessory{}
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
@ -59,13 +59,13 @@ func (_m *DAO) Set(ctx context.Context, l models.CVEAllowlist) (int64, error) {
return r0, r1
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -102,13 +102,13 @@ func (_m *Manager) SetSys(ctx context.Context, list models.CVEAllowlist) error {
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -216,13 +216,13 @@ func (_m *Manager) UpdatePullTime(ctx context.Context, id int64, pullTime time.T
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -140,13 +140,13 @@ func (_m *DAO) Purge(ctx context.Context, retentionHour int, includeOperations [
return r0, r1
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -139,13 +139,13 @@ func (_m *Manager) Purge(ctx context.Context, retentionHour int, includeOperatio
return r0, r1
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -313,13 +313,13 @@ func (_m *Manager) UselessBlobs(ctx context.Context, timeWindowHours int64) ([]*
return r0, r1
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -145,13 +145,13 @@ func (_m *CachedManager) Save(ctx context.Context, digest string, manifest []byt
return r0
}
type NewCachedManagerT interface {
type mockConstructorTestingTNewCachedManager interface {
mock.TestingT
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.
func NewCachedManager(t NewCachedManagerT) *CachedManager {
func NewCachedManager(t mockConstructorTestingTNewCachedManager) *CachedManager {
mock := &CachedManager{}
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
@ -58,13 +58,13 @@ func (_m *Manifest) References() []distribution.Descriptor {
return r0
}
type NewManifestT interface {
type mockConstructorTestingTNewManifest interface {
mock.TestingT
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.
func NewManifest(t NewManifestT) *Manifest {
func NewManifest(t mockConstructorTestingTNewManifest) *Manifest {
mock := &Manifest{}
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
@ -147,13 +147,13 @@ func (_m *DAO) UpdateImmutableRule(ctx context.Context, projectID int64, ir *mod
return r0
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -82,13 +82,13 @@ func (_m *DAO) Get(ctx context.Context, uuid string) (*models.JobLog, error) {
return r0, r1
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -82,13 +82,13 @@ func (_m *Manager) Get(ctx context.Context, uuid string) (*models.JobLog, error)
return r0, r1
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -212,13 +212,13 @@ func (_m *DAO) Update(ctx context.Context, label *model.Label) error {
return r0
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -212,13 +212,13 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.Label) error {
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -108,13 +108,13 @@ func (_m *Manager) SearchUser(ctx context.Context, sess *ldap.Session, username
return r0, r1
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -177,13 +177,13 @@ func (_m *DAO) Update(ctx context.Context, n *model.Job, props ...string) error
return r0
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -133,13 +133,13 @@ func (_m *DAO) Update(ctx context.Context, n *model.Policy) error {
return r0
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -192,13 +192,13 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.Policy) error {
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -119,13 +119,13 @@ func (_m *MetaDAO) Update(ctx context.Context, oidcUser *models.OIDCUser, props
return r0
}
type NewMetaDAOT interface {
type mockConstructorTestingTNewMetaDAO interface {
mock.TestingT
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.
func NewMetaDAO(t NewMetaDAOT) *MetaDAO {
func NewMetaDAO(t mockConstructorTestingTNewMetaDAO) *MetaDAO {
mock := &MetaDAO{}
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
@ -130,13 +130,13 @@ func (_m *MetaManager) Update(ctx context.Context, oidcUser *models.OIDCUser, co
return r0
}
type NewMetaManagerT interface {
type mockConstructorTestingTNewMetaManager interface {
mock.TestingT
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.
func NewMetaManager(t NewMetaManagerT) *MetaManager {
func NewMetaManager(t mockConstructorTestingTNewMetaManager) *MetaManager {
mock := &MetaManager{}
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
@ -148,13 +148,13 @@ func (_m *Manager) ListRoles(ctx context.Context, projectID int64, userID int, g
return r0, r1
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -117,13 +117,13 @@ func (_m *Manager) Update(ctx context.Context, projectID int64, meta map[string]
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -113,13 +113,13 @@ func (_m *Driver) Validate(hardLimits types.ResourceList) error {
return r0
}
type NewDriverT interface {
type mockConstructorTestingTNewDriver interface {
mock.TestingT
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.
func NewDriver(t NewDriverT) *Driver {
func NewDriver(t mockConstructorTestingTNewDriver) *Driver {
mock := &Driver{}
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
@ -164,13 +164,13 @@ func (_m *Manager) Update(ctx context.Context, _a1 *models.Quota) error {
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -170,13 +170,13 @@ func (_m *DAO) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*model.P
return r0, r1
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -169,13 +169,13 @@ func (_m *Manager) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*mod
return r0, r1
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -70,13 +70,13 @@ func (_m *Adapter) PrepareForPush(_a0 []*model.Resource) error {
return r0
}
type NewAdapterT interface {
type mockConstructorTestingTNewAdapter interface {
mock.TestingT
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.
func NewAdapter(t NewAdapterT) *Adapter {
func NewAdapter(t mockConstructorTestingTNewAdapter) *Adapter {
mock := &Adapter{}
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
@ -139,13 +139,13 @@ func (_m *DAO) Update(ctx context.Context, registry *dao.Registry, props ...stri
return r0
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -211,13 +211,13 @@ func (_m *Manager) Update(ctx context.Context, registry *model.Registry, props .
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -309,13 +309,13 @@ func (_m *Client) PushManifest(repository string, reference string, mediaType st
return r0, r1
}
type NewClientT interface {
type mockConstructorTestingTNewClient interface {
mock.TestingT
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.
func NewClient(t NewClientT) *Client {
func NewClient(t mockConstructorTestingTNewClient) *Client {
mock := &Client{}
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
@ -140,13 +140,13 @@ func (_m *DAO) Update(ctx context.Context, policy *model.Policy, props ...string
return r0
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -139,13 +139,13 @@ func (_m *Manager) Update(ctx context.Context, policy *model.Policy, props ...st
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -177,13 +177,13 @@ func (_m *DAO) Update(ctx context.Context, repository *model.RepoRecord, props .
return r0
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -199,13 +199,13 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.RepoRecord, props ...s
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -154,13 +154,13 @@ func (_m *DAO) Update(ctx context.Context, r *model.Robot, props ...string) erro
return r0
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -153,13 +153,13 @@ func (_m *Manager) Update(ctx context.Context, m *model.Robot, props ...string)
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -34,13 +34,13 @@ func (_m *ArtifactDigestCalculator) Calculate(fileName string) (digest.Digest, e
return r0, r1
}
type NewArtifactDigestCalculatorT interface {
type mockConstructorTestingTNewArtifactDigestCalculator interface {
mock.TestingT
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.
func NewArtifactDigestCalculator(t NewArtifactDigestCalculatorT) *ArtifactDigestCalculator {
func NewArtifactDigestCalculator(t mockConstructorTestingTNewArtifactDigestCalculator) *ArtifactDigestCalculator {
mock := &ArtifactDigestCalculator{}
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
@ -107,13 +107,13 @@ func (_m *FilterProcessor) ProcessTagFilter(ctx context.Context, filter string,
return r0, r1
}
type NewFilterProcessorT interface {
type mockConstructorTestingTNewFilterProcessor interface {
mock.TestingT
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.
func NewFilterProcessor(t NewFilterProcessorT) *FilterProcessor {
func NewFilterProcessor(t mockConstructorTestingTNewFilterProcessor) *FilterProcessor {
mock := &FilterProcessor{}
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
@ -37,13 +37,13 @@ func (_m *Manager) Fetch(ctx context.Context, params export.Params) ([]export.Da
return r0, r1
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -132,13 +132,13 @@ func (_m *Manager) UpdateReportData(ctx context.Context, uuid string, _a2 string
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -79,13 +79,13 @@ func (_m *Client) SubmitScan(req *v1.ScanRequest) (*v1.ScanResponse, error) {
return r0, r1
}
type NewClientT interface {
type mockConstructorTestingTNewClient interface {
mock.TestingT
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.
func NewClient(t NewClientT) *Client {
func NewClient(t mockConstructorTestingTNewClient) *Client {
mock := &Client{}
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
@ -35,13 +35,13 @@ func (_m *ClientPool) Get(url string, authType string, accessCredential string,
return r0, r1
}
type NewClientPoolT interface {
type mockConstructorTestingTNewClientPool interface {
mock.TestingT
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.
func NewClientPool(t NewClientPoolT) *ClientPool {
func NewClientPool(t mockConstructorTestingTNewClientPool) *ClientPool {
mock := &ClientPool{}
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
@ -18,13 +18,13 @@ func (_m *RequestResolver) Execute(req *http.Request) {
_m.Called(req)
}
type NewRequestResolverT interface {
type mockConstructorTestingTNewRequestResolver interface {
mock.TestingT
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.
func NewRequestResolver(t NewRequestResolverT) *RequestResolver {
func NewRequestResolver(t mockConstructorTestingTNewRequestResolver) *RequestResolver {
mock := &RequestResolver{}
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
@ -36,13 +36,13 @@ func (_m *responseHandler) Execute(code int, resp *http.Response) ([]byte, error
return r0, r1
}
type newResponseHandlerT interface {
type mockConstructorTestingTnewResponseHandler interface {
mock.TestingT
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.
func newResponseHandler(t newResponseHandlerT) *responseHandler {
func newResponseHandler(t mockConstructorTestingTnewResponseHandler) *responseHandler {
mock := &responseHandler{}
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
@ -169,13 +169,13 @@ func (_m *Manager) Update(ctx context.Context, registration *daoscanner.Registra
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -111,13 +111,13 @@ func (_m *Scheduler) UnScheduleByVendor(ctx context.Context, vendorType string,
return r0
}
type NewSchedulerT interface {
type mockConstructorTestingTNewScheduler interface {
mock.TestingT
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.
func NewScheduler(t NewSchedulerT) *Scheduler {
func NewScheduler(t mockConstructorTestingTNewScheduler) *Scheduler {
mock := &Scheduler{}
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
@ -62,13 +62,13 @@ func (_m *Selector) ListWithFilters(ctx context.Context, query *q.Query) ([]*mod
return r0, r1
}
type NewSelectorT interface {
type mockConstructorTestingTNewSelector interface {
mock.TestingT
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.
func NewSelector(t NewSelectorT) *Selector {
func NewSelector(t mockConstructorTestingTNewSelector) *Selector {
mock := &Selector{}
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
@ -119,13 +119,13 @@ func (_m *DAO) Size(ctx context.Context) (int64, error) {
return r0, r1
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -183,13 +183,13 @@ func (_m *Manager) RegisterCleanupCriteria(vendor string, artifactType string, c
_m.Called(vendor, artifactType, criteria)
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -211,13 +211,13 @@ func (_m *ExecutionManager) UpdateExtraAttrs(ctx context.Context, id int64, extr
return r0
}
type NewExecutionManagerT interface {
type mockConstructorTestingTNewExecutionManager interface {
mock.TestingT
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.
func NewExecutionManager(t NewExecutionManagerT) *ExecutionManager {
func NewExecutionManager(t mockConstructorTestingTNewExecutionManager) *ExecutionManager {
mock := &ExecutionManager{}
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
@ -162,13 +162,13 @@ func (_m *Manager) UpdateExtraAttrs(ctx context.Context, id int64, extraAttrs ma
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
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
@ -117,13 +117,13 @@ func (_m *DAO) Update(ctx context.Context, user *models.User, props ...string) e
return r0
}
type NewDAOT interface {
type mockConstructorTestingTNewDAO interface {
mock.TestingT
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.
func NewDAO(t NewDAOT) *DAO {
func NewDAO(t mockConstructorTestingTNewDAO) *DAO {
mock := &DAO{}
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
@ -258,13 +258,13 @@ func (_m *Manager) UpdateProfile(ctx context.Context, _a1 *commonmodels.User, co
return r0
}
type NewManagerT interface {
type mockConstructorTestingTNewManager interface {
mock.TestingT
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.
func NewManager(t NewManagerT) *Manager {
func NewManager(t mockConstructorTestingTNewManager) *Manager {
mock := &Manager{}
mock.Mock.Test(t)