diff --git a/persist/sqldb/mocks/WorkflowArchive.go b/persist/sqldb/mocks/WorkflowArchive.go index 4cf1983fa5e4..16edf80c38fd 100644 --- a/persist/sqldb/mocks/WorkflowArchive.go +++ b/persist/sqldb/mocks/WorkflowArchive.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.35.2. DO NOT EDIT. +// Code generated by mockery v2.26.0. DO NOT EDIT. package mocks @@ -200,12 +200,13 @@ func (_m *WorkflowArchive) ListWorkflowsLabelValues(key string) (*v1alpha1.Label return r0, r1 } -// NewWorkflowArchive creates a new instance of WorkflowArchive. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewWorkflowArchive(t interface { +type mockConstructorTestingTNewWorkflowArchive interface { mock.TestingT Cleanup(func()) -}) *WorkflowArchive { +} + +// NewWorkflowArchive creates a new instance of WorkflowArchive. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +func NewWorkflowArchive(t mockConstructorTestingTNewWorkflowArchive) *WorkflowArchive { mock := &WorkflowArchive{} mock.Mock.Test(t) diff --git a/pkg/apiclient/workflow/mocks/WorkflowServiceClient.go b/pkg/apiclient/workflow/mocks/WorkflowServiceClient.go index db6d68e051a6..0e5ee916a994 100644 --- a/pkg/apiclient/workflow/mocks/WorkflowServiceClient.go +++ b/pkg/apiclient/workflow/mocks/WorkflowServiceClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.35.2. DO NOT EDIT. +// Code generated by mockery v2.26.0. DO NOT EDIT. package mocks @@ -580,12 +580,13 @@ func (_m *WorkflowServiceClient) WorkflowLogs(ctx context.Context, in *workflow. return r0, r1 } -// NewWorkflowServiceClient creates a new instance of WorkflowServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewWorkflowServiceClient(t interface { +type mockConstructorTestingTNewWorkflowServiceClient interface { mock.TestingT Cleanup(func()) -}) *WorkflowServiceClient { +} + +// NewWorkflowServiceClient creates a new instance of WorkflowServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +func NewWorkflowServiceClient(t mockConstructorTestingTNewWorkflowServiceClient) *WorkflowServiceClient { mock := &WorkflowServiceClient{} mock.Mock.Test(t) diff --git a/pkg/apiclient/workflowtemplate/mocks/WorkflowTemplateServiceClient.go b/pkg/apiclient/workflowtemplate/mocks/WorkflowTemplateServiceClient.go index 619a22b2aecb..1e5a68880d64 100644 --- a/pkg/apiclient/workflowtemplate/mocks/WorkflowTemplateServiceClient.go +++ b/pkg/apiclient/workflowtemplate/mocks/WorkflowTemplateServiceClient.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.35.2. DO NOT EDIT. +// Code generated by mockery v2.26.0. DO NOT EDIT. package mocks @@ -217,12 +217,13 @@ func (_m *WorkflowTemplateServiceClient) UpdateWorkflowTemplate(ctx context.Cont return r0, r1 } -// NewWorkflowTemplateServiceClient creates a new instance of WorkflowTemplateServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewWorkflowTemplateServiceClient(t interface { +type mockConstructorTestingTNewWorkflowTemplateServiceClient interface { mock.TestingT Cleanup(func()) -}) *WorkflowTemplateServiceClient { +} + +// NewWorkflowTemplateServiceClient creates a new instance of WorkflowTemplateServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +func NewWorkflowTemplateServiceClient(t mockConstructorTestingTNewWorkflowTemplateServiceClient) *WorkflowTemplateServiceClient { mock := &WorkflowTemplateServiceClient{} mock.Mock.Test(t) diff --git a/server/auth/mocks/Gatekeeper.go b/server/auth/mocks/Gatekeeper.go index 3f3aff5b3367..f9cbf136761f 100644 --- a/server/auth/mocks/Gatekeeper.go +++ b/server/auth/mocks/Gatekeeper.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.35.2. DO NOT EDIT. +// Code generated by mockery v2.26.0. DO NOT EDIT. package mocks @@ -99,12 +99,13 @@ func (_m *Gatekeeper) UnaryServerInterceptor() grpc.UnaryServerInterceptor { return r0 } -// NewGatekeeper creates a new instance of Gatekeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewGatekeeper(t interface { +type mockConstructorTestingTNewGatekeeper interface { mock.TestingT Cleanup(func()) -}) *Gatekeeper { +} + +// NewGatekeeper creates a new instance of Gatekeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +func NewGatekeeper(t mockConstructorTestingTNewGatekeeper) *Gatekeeper { mock := &Gatekeeper{} mock.Mock.Test(t) diff --git a/server/auth/sso/mocks/Interface.go b/server/auth/sso/mocks/Interface.go index d49e6986ccdb..205f8fd6d5d2 100644 --- a/server/auth/sso/mocks/Interface.go +++ b/server/auth/sso/mocks/Interface.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.35.2. DO NOT EDIT. +// Code generated by mockery v2.26.0. DO NOT EDIT. package mocks @@ -65,12 +65,13 @@ func (_m *Interface) IsRBACEnabled() bool { return r0 } -// NewInterface creates a new instance of Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewInterface(t interface { +type mockConstructorTestingTNewInterface interface { mock.TestingT Cleanup(func()) -}) *Interface { +} + +// NewInterface creates a new instance of Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +func NewInterface(t mockConstructorTestingTNewInterface) *Interface { mock := &Interface{} mock.Mock.Test(t) diff --git a/workflow/artifactrepositories/mocks/Interface.go b/workflow/artifactrepositories/mocks/Interface.go index 5f0ff1b3596e..c392ce6eb540 100644 --- a/workflow/artifactrepositories/mocks/Interface.go +++ b/workflow/artifactrepositories/mocks/Interface.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.35.2. DO NOT EDIT. +// Code generated by mockery v2.26.0. DO NOT EDIT. package mocks @@ -66,12 +66,13 @@ func (_m *Interface) Resolve(ctx context.Context, ref *v1alpha1.ArtifactReposito return r0, r1 } -// NewInterface creates a new instance of Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewInterface(t interface { +type mockConstructorTestingTNewInterface interface { mock.TestingT Cleanup(func()) -}) *Interface { +} + +// NewInterface creates a new instance of Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +func NewInterface(t mockConstructorTestingTNewInterface) *Interface { mock := &Interface{} mock.Mock.Test(t) diff --git a/workflow/executor/mocks/ContainerRuntimeExecutor.go b/workflow/executor/mocks/ContainerRuntimeExecutor.go index 64281973876d..6eb7026e866c 100644 --- a/workflow/executor/mocks/ContainerRuntimeExecutor.go +++ b/workflow/executor/mocks/ContainerRuntimeExecutor.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.35.2. DO NOT EDIT. +// Code generated by mockery v2.26.0. DO NOT EDIT. package mocks @@ -109,12 +109,13 @@ func (_m *ContainerRuntimeExecutor) Wait(ctx context.Context, containerNames []s return r0 } -// NewContainerRuntimeExecutor creates a new instance of ContainerRuntimeExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewContainerRuntimeExecutor(t interface { +type mockConstructorTestingTNewContainerRuntimeExecutor interface { mock.TestingT Cleanup(func()) -}) *ContainerRuntimeExecutor { +} + +// NewContainerRuntimeExecutor creates a new instance of ContainerRuntimeExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +func NewContainerRuntimeExecutor(t mockConstructorTestingTNewContainerRuntimeExecutor) *ContainerRuntimeExecutor { mock := &ContainerRuntimeExecutor{} mock.Mock.Test(t) diff --git a/workflow/sync/mocks/Throttler.go b/workflow/sync/mocks/Throttler.go index c6766bcec5e2..61399ac62720 100644 --- a/workflow/sync/mocks/Throttler.go +++ b/workflow/sync/mocks/Throttler.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.35.2. DO NOT EDIT. +// Code generated by mockery v2.26.0. DO NOT EDIT. package mocks @@ -53,12 +53,13 @@ func (_m *Throttler) Remove(key string) { _m.Called(key) } -// NewThrottler creates a new instance of Throttler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewThrottler(t interface { +type mockConstructorTestingTNewThrottler interface { mock.TestingT Cleanup(func()) -}) *Throttler { +} + +// NewThrottler creates a new instance of Throttler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +func NewThrottler(t mockConstructorTestingTNewThrottler) *Throttler { mock := &Throttler{} mock.Mock.Test(t)