From df815bcb8d943c9fe03066ceefc4364401bb2c93 Mon Sep 17 00:00:00 2001 From: Nelson Chen Date: Wed, 15 Jan 2025 23:34:29 +0800 Subject: [PATCH] lint --- .../v1alpha1/mocks/ExecutableNode.go | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/flytepropeller/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNode.go b/flytepropeller/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNode.go index e6a03b7deb..386305481c 100644 --- a/flytepropeller/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNode.go +++ b/flytepropeller/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNode.go @@ -52,6 +52,40 @@ func (_m *ExecutableNode) GetActiveDeadline() *time.Duration { return r0 } +type ExecutableNode_GetAnnotations struct { + *mock.Call +} + +func (_m ExecutableNode_GetAnnotations) Return(_a0 map[string]string) *ExecutableNode_GetAnnotations { + return &ExecutableNode_GetAnnotations{Call: _m.Call.Return(_a0)} +} + +func (_m *ExecutableNode) OnGetAnnotations() *ExecutableNode_GetAnnotations { + c_call := _m.On("GetAnnotations") + return &ExecutableNode_GetAnnotations{Call: c_call} +} + +func (_m *ExecutableNode) OnGetAnnotationsMatch(matchers ...interface{}) *ExecutableNode_GetAnnotations { + c_call := _m.On("GetAnnotations", matchers...) + return &ExecutableNode_GetAnnotations{Call: c_call} +} + +// GetAnnotations provides a mock function with given fields: +func (_m *ExecutableNode) GetAnnotations() map[string]string { + ret := _m.Called() + + var r0 map[string]string + if rf, ok := ret.Get(0).(func() map[string]string); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(map[string]string) + } + } + + return r0 +} + type ExecutableNode_GetArrayNode struct { *mock.Call } @@ -386,6 +420,40 @@ func (_m *ExecutableNode) GetKind() v1alpha1.NodeKind { return r0 } +type ExecutableNode_GetLabels struct { + *mock.Call +} + +func (_m ExecutableNode_GetLabels) Return(_a0 map[string]string) *ExecutableNode_GetLabels { + return &ExecutableNode_GetLabels{Call: _m.Call.Return(_a0)} +} + +func (_m *ExecutableNode) OnGetLabels() *ExecutableNode_GetLabels { + c_call := _m.On("GetLabels") + return &ExecutableNode_GetLabels{Call: c_call} +} + +func (_m *ExecutableNode) OnGetLabelsMatch(matchers ...interface{}) *ExecutableNode_GetLabels { + c_call := _m.On("GetLabels", matchers...) + return &ExecutableNode_GetLabels{Call: c_call} +} + +// GetLabels provides a mock function with given fields: +func (_m *ExecutableNode) GetLabels() map[string]string { + ret := _m.Called() + + var r0 map[string]string + if rf, ok := ret.Get(0).(func() map[string]string); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(map[string]string) + } + } + + return r0 +} + type ExecutableNode_GetName struct { *mock.Call }