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 59
/
BaseWorkflow.go
87 lines (70 loc) · 1.82 KB
/
BaseWorkflow.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
import v1alpha1 "github.com/lyft/flytepropeller/pkg/apis/flyteworkflow/v1alpha1"
// BaseWorkflow is an autogenerated mock type for the BaseWorkflow type
type BaseWorkflow struct {
mock.Mock
}
// FromNode provides a mock function with given fields: name
func (_m *BaseWorkflow) FromNode(name string) ([]string, error) {
ret := _m.Called(name)
var r0 []string
if rf, ok := ret.Get(0).(func(string) []string); ok {
r0 = rf(name)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]string)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(name)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// GetID provides a mock function with given fields:
func (_m *BaseWorkflow) GetID() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// GetNode provides a mock function with given fields: nodeID
func (_m *BaseWorkflow) GetNode(nodeID string) (v1alpha1.ExecutableNode, bool) {
ret := _m.Called(nodeID)
var r0 v1alpha1.ExecutableNode
if rf, ok := ret.Get(0).(func(string) v1alpha1.ExecutableNode); ok {
r0 = rf(nodeID)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(v1alpha1.ExecutableNode)
}
}
var r1 bool
if rf, ok := ret.Get(1).(func(string) bool); ok {
r1 = rf(nodeID)
} else {
r1 = ret.Get(1).(bool)
}
return r0, r1
}
// StartNode provides a mock function with given fields:
func (_m *BaseWorkflow) StartNode() v1alpha1.ExecutableNode {
ret := _m.Called()
var r0 v1alpha1.ExecutableNode
if rf, ok := ret.Get(0).(func() v1alpha1.ExecutableNode); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(v1alpha1.ExecutableNode)
}
}
return r0
}