-
Notifications
You must be signed in to change notification settings - Fork 540
/
dag_structure_with_start_node.go
129 lines (103 loc) · 3.51 KB
/
dag_structure_with_start_node.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
v1alpha1 "github.com/flyteorg/flyte/flytepropeller/pkg/apis/flyteworkflow/v1alpha1"
mock "github.com/stretchr/testify/mock"
)
// DAGStructureWithStartNode is an autogenerated mock type for the DAGStructureWithStartNode type
type DAGStructureWithStartNode struct {
mock.Mock
}
type DAGStructureWithStartNode_FromNode struct {
*mock.Call
}
func (_m DAGStructureWithStartNode_FromNode) Return(_a0 []string, _a1 error) *DAGStructureWithStartNode_FromNode {
return &DAGStructureWithStartNode_FromNode{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *DAGStructureWithStartNode) OnFromNode(id string) *DAGStructureWithStartNode_FromNode {
c_call := _m.On("FromNode", id)
return &DAGStructureWithStartNode_FromNode{Call: c_call}
}
func (_m *DAGStructureWithStartNode) OnFromNodeMatch(matchers ...interface{}) *DAGStructureWithStartNode_FromNode {
c_call := _m.On("FromNode", matchers...)
return &DAGStructureWithStartNode_FromNode{Call: c_call}
}
// FromNode provides a mock function with given fields: id
func (_m *DAGStructureWithStartNode) FromNode(id string) ([]string, error) {
ret := _m.Called(id)
var r0 []string
if rf, ok := ret.Get(0).(func(string) []string); ok {
r0 = rf(id)
} 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(id)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type DAGStructureWithStartNode_StartNode struct {
*mock.Call
}
func (_m DAGStructureWithStartNode_StartNode) Return(_a0 v1alpha1.ExecutableNode) *DAGStructureWithStartNode_StartNode {
return &DAGStructureWithStartNode_StartNode{Call: _m.Call.Return(_a0)}
}
func (_m *DAGStructureWithStartNode) OnStartNode() *DAGStructureWithStartNode_StartNode {
c_call := _m.On("StartNode")
return &DAGStructureWithStartNode_StartNode{Call: c_call}
}
func (_m *DAGStructureWithStartNode) OnStartNodeMatch(matchers ...interface{}) *DAGStructureWithStartNode_StartNode {
c_call := _m.On("StartNode", matchers...)
return &DAGStructureWithStartNode_StartNode{Call: c_call}
}
// StartNode provides a mock function with given fields:
func (_m *DAGStructureWithStartNode) 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
}
type DAGStructureWithStartNode_ToNode struct {
*mock.Call
}
func (_m DAGStructureWithStartNode_ToNode) Return(_a0 []string, _a1 error) *DAGStructureWithStartNode_ToNode {
return &DAGStructureWithStartNode_ToNode{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *DAGStructureWithStartNode) OnToNode(id string) *DAGStructureWithStartNode_ToNode {
c_call := _m.On("ToNode", id)
return &DAGStructureWithStartNode_ToNode{Call: c_call}
}
func (_m *DAGStructureWithStartNode) OnToNodeMatch(matchers ...interface{}) *DAGStructureWithStartNode_ToNode {
c_call := _m.On("ToNode", matchers...)
return &DAGStructureWithStartNode_ToNode{Call: c_call}
}
// ToNode provides a mock function with given fields: id
func (_m *DAGStructureWithStartNode) ToNode(id string) ([]string, error) {
ret := _m.Called(id)
var r0 []string
if rf, ok := ret.Get(0).(func(string) []string); ok {
r0 = rf(id)
} 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(id)
} else {
r1 = ret.Error(1)
}
return r0, r1
}