This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
/
input_reader.go
123 lines (95 loc) · 3.04 KB
/
input_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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
context "context"
core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"
mock "github.com/stretchr/testify/mock"
storage "github.com/lyft/flytestdlib/storage"
)
// InputReader is an autogenerated mock type for the InputReader type
type InputReader struct {
mock.Mock
}
type InputReader_Get struct {
*mock.Call
}
func (_m InputReader_Get) Return(_a0 *core.LiteralMap, _a1 error) *InputReader_Get {
return &InputReader_Get{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *InputReader) OnGet(ctx context.Context) *InputReader_Get {
c := _m.On("Get", ctx)
return &InputReader_Get{Call: c}
}
func (_m *InputReader) OnGetMatch(matchers ...interface{}) *InputReader_Get {
c := _m.On("Get", matchers...)
return &InputReader_Get{Call: c}
}
// Get provides a mock function with given fields: ctx
func (_m *InputReader) Get(ctx context.Context) (*core.LiteralMap, 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 error
if rf, ok := ret.Get(1).(func(context.Context) error); ok {
r1 = rf(ctx)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type InputReader_GetInputPath struct {
*mock.Call
}
func (_m InputReader_GetInputPath) Return(_a0 storage.DataReference) *InputReader_GetInputPath {
return &InputReader_GetInputPath{Call: _m.Call.Return(_a0)}
}
func (_m *InputReader) OnGetInputPath() *InputReader_GetInputPath {
c := _m.On("GetInputPath")
return &InputReader_GetInputPath{Call: c}
}
func (_m *InputReader) OnGetInputPathMatch(matchers ...interface{}) *InputReader_GetInputPath {
c := _m.On("GetInputPath", matchers...)
return &InputReader_GetInputPath{Call: c}
}
// GetInputPath provides a mock function with given fields:
func (_m *InputReader) GetInputPath() storage.DataReference {
ret := _m.Called()
var r0 storage.DataReference
if rf, ok := ret.Get(0).(func() storage.DataReference); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(storage.DataReference)
}
return r0
}
type InputReader_GetInputPrefixPath struct {
*mock.Call
}
func (_m InputReader_GetInputPrefixPath) Return(_a0 storage.DataReference) *InputReader_GetInputPrefixPath {
return &InputReader_GetInputPrefixPath{Call: _m.Call.Return(_a0)}
}
func (_m *InputReader) OnGetInputPrefixPath() *InputReader_GetInputPrefixPath {
c := _m.On("GetInputPrefixPath")
return &InputReader_GetInputPrefixPath{Call: c}
}
func (_m *InputReader) OnGetInputPrefixPathMatch(matchers ...interface{}) *InputReader_GetInputPrefixPath {
c := _m.On("GetInputPrefixPath", matchers...)
return &InputReader_GetInputPrefixPath{Call: c}
}
// GetInputPrefixPath provides a mock function with given fields:
func (_m *InputReader) GetInputPrefixPath() storage.DataReference {
ret := _m.Called()
var r0 storage.DataReference
if rf, ok := ret.Get(0).(func() storage.DataReference); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(storage.DataReference)
}
return r0
}