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
/
plugin_context.go
117 lines (92 loc) · 2.89 KB
/
plugin_context.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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
core "github.com/lyft/flyteplugins/go/tasks/pluginmachinery/core"
io "github.com/lyft/flyteplugins/go/tasks/pluginmachinery/io"
mock "github.com/stretchr/testify/mock"
)
// PluginContext is an autogenerated mock type for the PluginContext type
type PluginContext struct {
mock.Mock
}
type PluginContext_InputReader struct {
*mock.Call
}
func (_m PluginContext_InputReader) Return(_a0 io.InputReader) *PluginContext_InputReader {
return &PluginContext_InputReader{Call: _m.Call.Return(_a0)}
}
func (_m *PluginContext) OnInputReader() *PluginContext_InputReader {
c := _m.On("InputReader")
return &PluginContext_InputReader{Call: c}
}
func (_m *PluginContext) OnInputReaderMatch(matchers ...interface{}) *PluginContext_InputReader {
c := _m.On("InputReader", matchers...)
return &PluginContext_InputReader{Call: c}
}
// InputReader provides a mock function with given fields:
func (_m *PluginContext) InputReader() io.InputReader {
ret := _m.Called()
var r0 io.InputReader
if rf, ok := ret.Get(0).(func() io.InputReader); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(io.InputReader)
}
}
return r0
}
type PluginContext_OutputWriter struct {
*mock.Call
}
func (_m PluginContext_OutputWriter) Return(_a0 io.OutputWriter) *PluginContext_OutputWriter {
return &PluginContext_OutputWriter{Call: _m.Call.Return(_a0)}
}
func (_m *PluginContext) OnOutputWriter() *PluginContext_OutputWriter {
c := _m.On("OutputWriter")
return &PluginContext_OutputWriter{Call: c}
}
func (_m *PluginContext) OnOutputWriterMatch(matchers ...interface{}) *PluginContext_OutputWriter {
c := _m.On("OutputWriter", matchers...)
return &PluginContext_OutputWriter{Call: c}
}
// OutputWriter provides a mock function with given fields:
func (_m *PluginContext) OutputWriter() io.OutputWriter {
ret := _m.Called()
var r0 io.OutputWriter
if rf, ok := ret.Get(0).(func() io.OutputWriter); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(io.OutputWriter)
}
}
return r0
}
type PluginContext_TaskReader struct {
*mock.Call
}
func (_m PluginContext_TaskReader) Return(_a0 core.TaskReader) *PluginContext_TaskReader {
return &PluginContext_TaskReader{Call: _m.Call.Return(_a0)}
}
func (_m *PluginContext) OnTaskReader() *PluginContext_TaskReader {
c := _m.On("TaskReader")
return &PluginContext_TaskReader{Call: c}
}
func (_m *PluginContext) OnTaskReaderMatch(matchers ...interface{}) *PluginContext_TaskReader {
c := _m.On("TaskReader", matchers...)
return &PluginContext_TaskReader{Call: c}
}
// TaskReader provides a mock function with given fields:
func (_m *PluginContext) TaskReader() core.TaskReader {
ret := _m.Called()
var r0 core.TaskReader
if rf, ok := ret.Get(0).(func() core.TaskReader); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(core.TaskReader)
}
}
return r0
}