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 53
/
output_reader.go
216 lines (171 loc) · 5.14 KB
/
output_reader.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
context "context"
core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"
io "github.com/flyteorg/flyteplugins/go/tasks/pluginmachinery/io"
mock "github.com/stretchr/testify/mock"
)
// OutputReader is an autogenerated mock type for the OutputReader type
type OutputReader struct {
mock.Mock
}
type OutputReader_Exists struct {
*mock.Call
}
func (_m OutputReader_Exists) Return(_a0 bool, _a1 error) *OutputReader_Exists {
return &OutputReader_Exists{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *OutputReader) OnExists(ctx context.Context) *OutputReader_Exists {
c := _m.On("Exists", ctx)
return &OutputReader_Exists{Call: c}
}
func (_m *OutputReader) OnExistsMatch(matchers ...interface{}) *OutputReader_Exists {
c := _m.On("Exists", matchers...)
return &OutputReader_Exists{Call: c}
}
// Exists provides a mock function with given fields: ctx
func (_m *OutputReader) Exists(ctx context.Context) (bool, error) {
ret := _m.Called(ctx)
var r0 bool
if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
r0 = rf(ctx)
} else {
r0 = ret.Get(0).(bool)
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context) error); ok {
r1 = rf(ctx)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type OutputReader_IsError struct {
*mock.Call
}
func (_m OutputReader_IsError) Return(_a0 bool, _a1 error) *OutputReader_IsError {
return &OutputReader_IsError{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *OutputReader) OnIsError(ctx context.Context) *OutputReader_IsError {
c := _m.On("IsError", ctx)
return &OutputReader_IsError{Call: c}
}
func (_m *OutputReader) OnIsErrorMatch(matchers ...interface{}) *OutputReader_IsError {
c := _m.On("IsError", matchers...)
return &OutputReader_IsError{Call: c}
}
// IsError provides a mock function with given fields: ctx
func (_m *OutputReader) IsError(ctx context.Context) (bool, error) {
ret := _m.Called(ctx)
var r0 bool
if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
r0 = rf(ctx)
} else {
r0 = ret.Get(0).(bool)
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context) error); ok {
r1 = rf(ctx)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type OutputReader_IsFile struct {
*mock.Call
}
func (_m OutputReader_IsFile) Return(_a0 bool) *OutputReader_IsFile {
return &OutputReader_IsFile{Call: _m.Call.Return(_a0)}
}
func (_m *OutputReader) OnIsFile(ctx context.Context) *OutputReader_IsFile {
c := _m.On("IsFile", ctx)
return &OutputReader_IsFile{Call: c}
}
func (_m *OutputReader) OnIsFileMatch(matchers ...interface{}) *OutputReader_IsFile {
c := _m.On("IsFile", matchers...)
return &OutputReader_IsFile{Call: c}
}
// IsFile provides a mock function with given fields: ctx
func (_m *OutputReader) IsFile(ctx context.Context) bool {
ret := _m.Called(ctx)
var r0 bool
if rf, ok := ret.Get(0).(func(context.Context) bool); ok {
r0 = rf(ctx)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
type OutputReader_Read struct {
*mock.Call
}
func (_m OutputReader_Read) Return(_a0 *core.LiteralMap, _a1 *io.ExecutionError, _a2 error) *OutputReader_Read {
return &OutputReader_Read{Call: _m.Call.Return(_a0, _a1, _a2)}
}
func (_m *OutputReader) OnRead(ctx context.Context) *OutputReader_Read {
c := _m.On("Read", ctx)
return &OutputReader_Read{Call: c}
}
func (_m *OutputReader) OnReadMatch(matchers ...interface{}) *OutputReader_Read {
c := _m.On("Read", matchers...)
return &OutputReader_Read{Call: c}
}
// Read provides a mock function with given fields: ctx
func (_m *OutputReader) Read(ctx context.Context) (*core.LiteralMap, *io.ExecutionError, error) {
ret := _m.Called(ctx)
var r0 *core.LiteralMap
if rf, ok := ret.Get(0).(func(context.Context) *core.LiteralMap); ok {
r0 = rf(ctx)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*core.LiteralMap)
}
}
var r1 *io.ExecutionError
if rf, ok := ret.Get(1).(func(context.Context) *io.ExecutionError); ok {
r1 = rf(ctx)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(*io.ExecutionError)
}
}
var r2 error
if rf, ok := ret.Get(2).(func(context.Context) error); ok {
r2 = rf(ctx)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}
type OutputReader_ReadError struct {
*mock.Call
}
func (_m OutputReader_ReadError) Return(_a0 io.ExecutionError, _a1 error) *OutputReader_ReadError {
return &OutputReader_ReadError{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *OutputReader) OnReadError(ctx context.Context) *OutputReader_ReadError {
c := _m.On("ReadError", ctx)
return &OutputReader_ReadError{Call: c}
}
func (_m *OutputReader) OnReadErrorMatch(matchers ...interface{}) *OutputReader_ReadError {
c := _m.On("ReadError", matchers...)
return &OutputReader_ReadError{Call: c}
}
// ReadError provides a mock function with given fields: ctx
func (_m *OutputReader) ReadError(ctx context.Context) (io.ExecutionError, error) {
ret := _m.Called(ctx)
var r0 io.ExecutionError
if rf, ok := ret.Get(0).(func(context.Context) io.ExecutionError); ok {
r0 = rf(ctx)
} else {
r0 = ret.Get(0).(io.ExecutionError)
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context) error); ok {
r1 = rf(ctx)
} else {
r1 = ret.Error(1)
}
return r0, r1
}