This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
/
flyte_workflow_builder.go
57 lines (44 loc) · 2.03 KB
/
flyte_workflow_builder.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"
mock "github.com/stretchr/testify/mock"
v1alpha1 "github.com/flyteorg/flytepropeller/pkg/apis/flyteworkflow/v1alpha1"
)
// FlyteWorkflowBuilder is an autogenerated mock type for the FlyteWorkflowBuilder type
type FlyteWorkflowBuilder struct {
mock.Mock
}
type FlyteWorkflowBuilder_Build struct {
*mock.Call
}
func (_m FlyteWorkflowBuilder_Build) Return(_a0 *v1alpha1.FlyteWorkflow, _a1 error) *FlyteWorkflowBuilder_Build {
return &FlyteWorkflowBuilder_Build{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *FlyteWorkflowBuilder) OnBuild(wfClosure *core.CompiledWorkflowClosure, inputs *core.LiteralMap, executionID *core.WorkflowExecutionIdentifier, namespace string) *FlyteWorkflowBuilder_Build {
c := _m.On("Build", wfClosure, inputs, executionID, namespace)
return &FlyteWorkflowBuilder_Build{Call: c}
}
func (_m *FlyteWorkflowBuilder) OnBuildMatch(matchers ...interface{}) *FlyteWorkflowBuilder_Build {
c := _m.On("Build", matchers...)
return &FlyteWorkflowBuilder_Build{Call: c}
}
// Build provides a mock function with given fields: wfClosure, inputs, executionID, namespace
func (_m *FlyteWorkflowBuilder) Build(wfClosure *core.CompiledWorkflowClosure, inputs *core.LiteralMap, executionID *core.WorkflowExecutionIdentifier, namespace string) (*v1alpha1.FlyteWorkflow, error) {
ret := _m.Called(wfClosure, inputs, executionID, namespace)
var r0 *v1alpha1.FlyteWorkflow
if rf, ok := ret.Get(0).(func(*core.CompiledWorkflowClosure, *core.LiteralMap, *core.WorkflowExecutionIdentifier, string) *v1alpha1.FlyteWorkflow); ok {
r0 = rf(wfClosure, inputs, executionID, namespace)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*v1alpha1.FlyteWorkflow)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(*core.CompiledWorkflowClosure, *core.LiteralMap, *core.WorkflowExecutionIdentifier, string) error); ok {
r1 = rf(wfClosure, inputs, executionID, namespace)
} else {
r1 = ret.Error(1)
}
return r0, r1
}