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 60
/
node_state_writer.go
141 lines (110 loc) · 4.08 KB
/
node_state_writer.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
130
131
132
133
134
135
136
137
138
139
140
141
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
handler "github.com/lyft/flytepropeller/pkg/controller/nodes/handler"
mock "github.com/stretchr/testify/mock"
)
// NodeStateWriter is an autogenerated mock type for the NodeStateWriter type
type NodeStateWriter struct {
mock.Mock
}
type NodeStateWriter_PutBranchNode struct {
*mock.Call
}
func (_m NodeStateWriter_PutBranchNode) Return(_a0 error) *NodeStateWriter_PutBranchNode {
return &NodeStateWriter_PutBranchNode{Call: _m.Call.Return(_a0)}
}
func (_m *NodeStateWriter) OnPutBranchNode(s handler.BranchNodeState) *NodeStateWriter_PutBranchNode {
c := _m.On("PutBranchNode", s)
return &NodeStateWriter_PutBranchNode{Call: c}
}
func (_m *NodeStateWriter) OnPutBranchNodeMatch(matchers ...interface{}) *NodeStateWriter_PutBranchNode {
c := _m.On("PutBranchNode", matchers...)
return &NodeStateWriter_PutBranchNode{Call: c}
}
// PutBranchNode provides a mock function with given fields: s
func (_m *NodeStateWriter) PutBranchNode(s handler.BranchNodeState) error {
ret := _m.Called(s)
var r0 error
if rf, ok := ret.Get(0).(func(handler.BranchNodeState) error); ok {
r0 = rf(s)
} else {
r0 = ret.Error(0)
}
return r0
}
type NodeStateWriter_PutDynamicNodeState struct {
*mock.Call
}
func (_m NodeStateWriter_PutDynamicNodeState) Return(_a0 error) *NodeStateWriter_PutDynamicNodeState {
return &NodeStateWriter_PutDynamicNodeState{Call: _m.Call.Return(_a0)}
}
func (_m *NodeStateWriter) OnPutDynamicNodeState(s handler.DynamicNodeState) *NodeStateWriter_PutDynamicNodeState {
c := _m.On("PutDynamicNodeState", s)
return &NodeStateWriter_PutDynamicNodeState{Call: c}
}
func (_m *NodeStateWriter) OnPutDynamicNodeStateMatch(matchers ...interface{}) *NodeStateWriter_PutDynamicNodeState {
c := _m.On("PutDynamicNodeState", matchers...)
return &NodeStateWriter_PutDynamicNodeState{Call: c}
}
// PutDynamicNodeState provides a mock function with given fields: s
func (_m *NodeStateWriter) PutDynamicNodeState(s handler.DynamicNodeState) error {
ret := _m.Called(s)
var r0 error
if rf, ok := ret.Get(0).(func(handler.DynamicNodeState) error); ok {
r0 = rf(s)
} else {
r0 = ret.Error(0)
}
return r0
}
type NodeStateWriter_PutTaskNodeState struct {
*mock.Call
}
func (_m NodeStateWriter_PutTaskNodeState) Return(_a0 error) *NodeStateWriter_PutTaskNodeState {
return &NodeStateWriter_PutTaskNodeState{Call: _m.Call.Return(_a0)}
}
func (_m *NodeStateWriter) OnPutTaskNodeState(s handler.TaskNodeState) *NodeStateWriter_PutTaskNodeState {
c := _m.On("PutTaskNodeState", s)
return &NodeStateWriter_PutTaskNodeState{Call: c}
}
func (_m *NodeStateWriter) OnPutTaskNodeStateMatch(matchers ...interface{}) *NodeStateWriter_PutTaskNodeState {
c := _m.On("PutTaskNodeState", matchers...)
return &NodeStateWriter_PutTaskNodeState{Call: c}
}
// PutTaskNodeState provides a mock function with given fields: s
func (_m *NodeStateWriter) PutTaskNodeState(s handler.TaskNodeState) error {
ret := _m.Called(s)
var r0 error
if rf, ok := ret.Get(0).(func(handler.TaskNodeState) error); ok {
r0 = rf(s)
} else {
r0 = ret.Error(0)
}
return r0
}
type NodeStateWriter_PutWorkflowNodeState struct {
*mock.Call
}
func (_m NodeStateWriter_PutWorkflowNodeState) Return(_a0 error) *NodeStateWriter_PutWorkflowNodeState {
return &NodeStateWriter_PutWorkflowNodeState{Call: _m.Call.Return(_a0)}
}
func (_m *NodeStateWriter) OnPutWorkflowNodeState(s handler.WorkflowNodeState) *NodeStateWriter_PutWorkflowNodeState {
c := _m.On("PutWorkflowNodeState", s)
return &NodeStateWriter_PutWorkflowNodeState{Call: c}
}
func (_m *NodeStateWriter) OnPutWorkflowNodeStateMatch(matchers ...interface{}) *NodeStateWriter_PutWorkflowNodeState {
c := _m.On("PutWorkflowNodeState", matchers...)
return &NodeStateWriter_PutWorkflowNodeState{Call: c}
}
// PutWorkflowNodeState provides a mock function with given fields: s
func (_m *NodeStateWriter) PutWorkflowNodeState(s handler.WorkflowNodeState) error {
ret := _m.Called(s)
var r0 error
if rf, ok := ret.Get(0).(func(handler.WorkflowNodeState) error); ok {
r0 = rf(s)
} else {
r0 = ret.Error(0)
}
return r0
}