mirror of https://github.com/goharbor/harbor.git
bumpup mockery to v1.12.3 (#16955)
Signed-off-by: yminer <yminer@vmmware.com> Co-authored-by: yminer <yminer@vmmware.com>
This commit is contained in:
parent
853e3d5fff
commit
9b22e2943f
2
Makefile
2
Makefile
|
@ -346,7 +346,7 @@ gen_apis: lint_apis
|
|||
|
||||
|
||||
MOCKERY_IMAGENAME=$(IMAGENAMESPACE)/mockery
|
||||
MOCKERY_VERSION=v2.1.0
|
||||
MOCKERY_VERSION=v2.12.3
|
||||
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) .
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package flow
|
||||
|
||||
|
@ -52,3 +52,18 @@ func (_m *mockFactory) Create(_a0 *model.Registry) (adapter.Adapter, error) {
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type newMockFactoryT 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 {
|
||||
mock := &mockFactory{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package flow
|
||||
|
||||
|
@ -343,3 +343,18 @@ func (_m *mockAdapter) PushManifest(repository string, reference string, mediaTy
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type newMockAdapterT 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 {
|
||||
mock := &mockAdapter{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package replication
|
||||
|
||||
|
@ -30,3 +30,18 @@ func (_m *flowController) Start(ctx context.Context, executionID int64, policy *
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type newFlowControllerT interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}
|
||||
|
||||
// newFlowController creates a new instance of flowController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func newFlowController(t newFlowControllerT) *flowController {
|
||||
mock := &flowController{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package mgt
|
||||
|
||||
|
@ -140,3 +140,18 @@ func (_m *MockManager) SaveJob(_a0 *job.Stats) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewMockManagerT 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 {
|
||||
mock := &MockManager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package period
|
||||
|
||||
|
@ -48,3 +48,18 @@ func (_m *MockScheduler) UnSchedule(policyID string) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewMockSchedulerT 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 {
|
||||
mock := &MockScheduler{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package scheduler
|
||||
|
||||
|
@ -136,3 +136,18 @@ func (_m *mockDAO) UpdateRevision(ctx context.Context, id int64, revision int64)
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type newMockDAOT 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 {
|
||||
mock := &mockDAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package task
|
||||
|
||||
|
@ -189,3 +189,18 @@ func (_m *mockExecutionDAO) Update(ctx context.Context, execution *dao.Execution
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type newMockExecutionDAOT 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 {
|
||||
mock := &mockExecutionDAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package task
|
||||
|
||||
|
@ -94,3 +94,18 @@ func (_m *mockJobserviceClient) SubmitJob(_a0 *models.JobData) (string, error) {
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type newMockJobserviceClientT 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 {
|
||||
mock := &mockJobserviceClient{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package task
|
||||
|
||||
|
@ -198,3 +198,18 @@ func (_m *mockTaskDAO) UpdateStatus(ctx context.Context, id int64, status string
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type newMockTaskDAOT 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 {
|
||||
mock := &mockTaskDAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package task
|
||||
|
||||
|
@ -159,3 +159,18 @@ func (_m *mockTaskManager) UpdateExtraAttrs(ctx context.Context, id int64, extra
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type newMockTaskManagerT 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 {
|
||||
mock := &mockTaskManager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package security
|
||||
|
||||
|
@ -98,3 +98,18 @@ func (_m *Context) Name() string {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewContextT 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 {
|
||||
mock := &Context{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package artifact
|
||||
|
||||
|
@ -252,3 +252,18 @@ func (_m *Controller) Walk(ctx context.Context, root *artifact.Artifact, walkFn
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package blob
|
||||
|
||||
|
@ -334,3 +334,18 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Blob) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package config
|
||||
|
||||
|
@ -110,3 +110,18 @@ func (_m *Controller) UserConfigs(ctx context.Context) (map[string]*models.Value
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package jobservice
|
||||
|
||||
|
@ -72,3 +72,18 @@ func (_m *SchedulerController) Get(ctx context.Context, vendorType string) (*sch
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewSchedulerControllerT 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 {
|
||||
mock := &SchedulerController{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package project
|
||||
|
||||
|
@ -224,3 +224,18 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Project) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package proxy
|
||||
|
||||
|
@ -127,3 +127,18 @@ func (_m *RemoteInterface) ManifestExist(repo string, ref string) (bool, *distri
|
|||
|
||||
return r0, r1, r2
|
||||
}
|
||||
|
||||
type NewRemoteInterfaceT 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 {
|
||||
mock := &RemoteInterface{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package purge
|
||||
|
||||
|
@ -34,3 +34,18 @@ func (_m *Controller) Start(ctx context.Context, policy purge.JobPolicy, trigger
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package quota
|
||||
|
||||
|
@ -242,3 +242,18 @@ func (_m *Controller) Update(ctx context.Context, _a1 *models.Quota) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package replication
|
||||
|
||||
|
@ -334,3 +334,18 @@ func (_m *Controller) UpdatePolicy(ctx context.Context, policy *model.Policy, pr
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package repository
|
||||
|
||||
|
@ -182,3 +182,18 @@ func (_m *Controller) Update(ctx context.Context, _a1 *model.RepoRecord, propert
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package retention
|
||||
|
||||
|
@ -281,3 +281,18 @@ func (_m *Controller) UpdateRetention(ctx context.Context, p *policy.Metadata) e
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package robot
|
||||
|
||||
|
@ -138,3 +138,18 @@ func (_m *Controller) Update(ctx context.Context, r *robot.Robot, option *robot.
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package scan
|
||||
|
||||
|
@ -35,3 +35,18 @@ func (_m *Checker) IsScannable(ctx context.Context, _a1 *artifact.Artifact) (boo
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewCheckerT 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 {
|
||||
mock := &Checker{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package scan
|
||||
|
||||
|
@ -189,3 +189,18 @@ func (_m *Controller) Stop(ctx context.Context, _a1 *artifact.Artifact) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package scanner
|
||||
|
||||
|
@ -262,3 +262,18 @@ func (_m *Controller) UpdateRegistration(ctx context.Context, registration *scan
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package user
|
||||
|
||||
|
@ -293,3 +293,18 @@ func (_m *Controller) VerifyPassword(ctx context.Context, usernameOrEmail string
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewControllerT 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 {
|
||||
mock := &Controller{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package cache
|
||||
|
||||
|
@ -120,3 +120,18 @@ func (_m *Cache) Save(ctx context.Context, key string, value interface{}, expira
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewCacheT 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 {
|
||||
mock := &Cache{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package orm
|
||||
|
||||
|
@ -27,3 +27,18 @@ func (_m *Creator) Create() orm.Ormer {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewCreatorT 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 {
|
||||
mock := &Creator{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -138,3 +138,18 @@ func (_m *DAO) List(ctx context.Context, query *q.Query) ([]*dao.Accessory, erro
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package accessory
|
||||
|
||||
|
@ -145,3 +145,18 @@ func (_m *Manager) List(ctx context.Context, query *q.Query) ([]model.Accessory,
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package model
|
||||
|
||||
|
@ -81,3 +81,18 @@ func (_m *Accessory) Kind() string {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewAccessoryT 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 {
|
||||
mock := &Accessory{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -58,3 +58,18 @@ func (_m *DAO) Set(ctx context.Context, l models.CVEAllowlist) (int64, error) {
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package robot
|
||||
|
||||
|
@ -101,3 +101,18 @@ func (_m *Manager) SetSys(ctx context.Context, list models.CVEAllowlist) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package artifact
|
||||
|
||||
|
@ -215,3 +215,18 @@ func (_m *Manager) UpdatePullTime(ctx context.Context, id int64, pullTime time.T
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -139,3 +139,18 @@ func (_m *DAO) Purge(ctx context.Context, retentionHour int, includeOperations [
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package audit
|
||||
|
||||
|
@ -138,3 +138,18 @@ func (_m *Manager) Purge(ctx context.Context, retentionHour int, includeOperatio
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package blob
|
||||
|
||||
|
@ -312,3 +312,18 @@ func (_m *Manager) UselessBlobs(ctx context.Context, timeWindowHours int64) ([]*
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package redis
|
||||
|
||||
|
@ -126,3 +126,18 @@ func (_m *CachedManager) Save(ctx context.Context, digest string, manifest []byt
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewCachedManagerT 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 {
|
||||
mock := &CachedManager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package distribution
|
||||
|
||||
|
@ -57,3 +57,18 @@ func (_m *Manifest) References() []distribution.Descriptor {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManifestT 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 {
|
||||
mock := &Manifest{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -146,3 +146,18 @@ func (_m *DAO) UpdateImmutableRule(ctx context.Context, projectID int64, ir *mod
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -81,3 +81,18 @@ func (_m *DAO) Get(ctx context.Context, uuid string) (*models.JobLog, error) {
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package joblog
|
||||
|
||||
|
@ -81,3 +81,18 @@ func (_m *Manager) Get(ctx context.Context, uuid string) (*models.JobLog, error)
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -211,3 +211,18 @@ func (_m *DAO) Update(ctx context.Context, label *model.Label) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package label
|
||||
|
||||
|
@ -211,3 +211,18 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.Label) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package ldap
|
||||
|
||||
|
@ -107,3 +107,18 @@ func (_m *Manager) SearchUser(ctx context.Context, sess *ldap.Session, username
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -176,3 +176,18 @@ func (_m *DAO) Update(ctx context.Context, n *model.Job, props ...string) error
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -132,3 +132,18 @@ func (_m *DAO) Update(ctx context.Context, n *model.Policy) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package notification
|
||||
|
||||
|
@ -191,3 +191,18 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.Policy) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -118,3 +118,18 @@ func (_m *MetaDAO) Update(ctx context.Context, oidcUser *models.OIDCUser, props
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewMetaDAOT 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 {
|
||||
mock := &MetaDAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package oidc
|
||||
|
||||
|
@ -129,3 +129,18 @@ func (_m *MetaManager) Update(ctx context.Context, oidcUser *models.OIDCUser, co
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewMetaManagerT 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 {
|
||||
mock := &MetaManager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package project
|
||||
|
||||
|
@ -147,3 +147,18 @@ func (_m *Manager) ListRoles(ctx context.Context, projectID int64, userID int, g
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package metadata
|
||||
|
||||
|
@ -116,3 +116,18 @@ func (_m *Manager) Update(ctx context.Context, projectID int64, meta map[string]
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package driver
|
||||
|
||||
|
@ -112,3 +112,18 @@ func (_m *Driver) Validate(hardLimits types.ResourceList) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewDriverT 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 {
|
||||
mock := &Driver{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package quota
|
||||
|
||||
|
@ -163,3 +163,18 @@ func (_m *Manager) Update(ctx context.Context, _a1 *models.Quota) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -169,3 +169,18 @@ func (_m *DAO) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*model.P
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package rbac
|
||||
|
||||
|
@ -168,3 +168,18 @@ func (_m *Manager) ListRbacPolicies(ctx context.Context, query *q.Query) ([]*mod
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package adapter
|
||||
|
||||
|
@ -69,3 +69,18 @@ func (_m *Adapter) PrepareForPush(_a0 []*model.Resource) error {
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewAdapterT 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 {
|
||||
mock := &Adapter{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -138,3 +138,18 @@ func (_m *DAO) Update(ctx context.Context, registry *dao.Registry, props ...stri
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package manager
|
||||
|
||||
|
@ -210,3 +210,18 @@ func (_m *Manager) Update(ctx context.Context, registry *model.Registry, props .
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -139,3 +139,18 @@ func (_m *DAO) Update(ctx context.Context, policy *model.Policy, props ...string
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package manager
|
||||
|
||||
|
@ -138,3 +138,18 @@ func (_m *Manager) Update(ctx context.Context, policy *model.Policy, props ...st
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -176,3 +176,18 @@ func (_m *DAO) Update(ctx context.Context, repository *model.RepoRecord, props .
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package repository
|
||||
|
||||
|
@ -198,3 +198,18 @@ func (_m *Manager) Update(ctx context.Context, _a1 *model.RepoRecord, props ...s
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -153,3 +153,18 @@ func (_m *DAO) Update(ctx context.Context, r *model.Robot, props ...string) erro
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package robot
|
||||
|
||||
|
@ -152,3 +152,18 @@ func (_m *Manager) Update(ctx context.Context, m *model.Robot, props ...string)
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package report
|
||||
|
||||
|
@ -131,3 +131,18 @@ func (_m *Manager) UpdateReportData(ctx context.Context, uuid string, _a2 string
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
|
@ -78,3 +78,18 @@ func (_m *Client) SubmitScan(req *v1.ScanRequest) (*v1.ScanResponse, error) {
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewClientT 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 {
|
||||
mock := &Client{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
|
@ -34,3 +34,18 @@ func (_m *ClientPool) Get(url string, authType string, accessCredential string,
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewClientPoolT 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 {
|
||||
mock := &ClientPool{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
|
@ -17,3 +17,18 @@ type RequestResolver struct {
|
|||
func (_m *RequestResolver) Execute(req *http.Request) {
|
||||
_m.Called(req)
|
||||
}
|
||||
|
||||
type NewRequestResolverT 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 {
|
||||
mock := &RequestResolver{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
|
@ -35,3 +35,18 @@ func (_m *responseHandler) Execute(code int, resp *http.Response) ([]byte, error
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type newResponseHandlerT 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 {
|
||||
mock := &responseHandler{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package scanner
|
||||
|
||||
|
@ -168,3 +168,18 @@ func (_m *Manager) Update(ctx context.Context, registration *daoscanner.Registra
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package scheduler
|
||||
|
||||
|
@ -110,3 +110,18 @@ func (_m *Scheduler) UnScheduleByVendor(ctx context.Context, vendorType string,
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewSchedulerT 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 {
|
||||
mock := &Scheduler{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package cleanup
|
||||
|
||||
|
@ -61,3 +61,18 @@ func (_m *Selector) ListWithFilters(ctx context.Context, query *q.Query) ([]*mod
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewSelectorT 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 {
|
||||
mock := &Selector{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -118,3 +118,18 @@ func (_m *DAO) Size(ctx context.Context) (int64, error) {
|
|||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package systemartifact
|
||||
|
||||
|
@ -166,3 +166,18 @@ func (_m *Manager) Read(ctx context.Context, vendor string, repository string, d
|
|||
func (_m *Manager) RegisterCleanupCriteria(vendor string, artifactType string, criteria systemartifact.Selector) {
|
||||
_m.Called(vendor, artifactType, criteria)
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package task
|
||||
|
||||
|
@ -210,3 +210,18 @@ func (_m *ExecutionManager) UpdateExtraAttrs(ctx context.Context, id int64, extr
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewExecutionManagerT 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 {
|
||||
mock := &ExecutionManager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package task
|
||||
|
||||
|
@ -161,3 +161,18 @@ func (_m *Manager) UpdateExtraAttrs(ctx context.Context, id int64, extraAttrs ma
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package dao
|
||||
|
||||
|
@ -116,3 +116,18 @@ func (_m *DAO) Update(ctx context.Context, user *models.User, props ...string) e
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewDAOT 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 {
|
||||
mock := &DAO{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.1.0. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package user
|
||||
|
||||
|
@ -235,3 +235,18 @@ func (_m *Manager) UpdateProfile(ctx context.Context, _a1 *models.User, col ...s
|
|||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewManagerT 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 {
|
||||
mock := &Manager{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue