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 59
/
task.go
113 lines (89 loc) · 2.45 KB
/
task.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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
core "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/core"
mock "github.com/stretchr/testify/mock"
)
// Task is an autogenerated mock type for the Task type
type Task struct {
mock.Mock
}
type Task_GetCoreTask struct {
*mock.Call
}
func (_m Task_GetCoreTask) Return(_a0 *core.TaskTemplate) *Task_GetCoreTask {
return &Task_GetCoreTask{Call: _m.Call.Return(_a0)}
}
func (_m *Task) OnGetCoreTask() *Task_GetCoreTask {
c := _m.On("GetCoreTask")
return &Task_GetCoreTask{Call: c}
}
func (_m *Task) OnGetCoreTaskMatch(matchers ...interface{}) *Task_GetCoreTask {
c := _m.On("GetCoreTask", matchers...)
return &Task_GetCoreTask{Call: c}
}
// GetCoreTask provides a mock function with given fields:
func (_m *Task) GetCoreTask() *core.TaskTemplate {
ret := _m.Called()
var r0 *core.TaskTemplate
if rf, ok := ret.Get(0).(func() *core.TaskTemplate); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*core.TaskTemplate)
}
}
return r0
}
type Task_GetID struct {
*mock.Call
}
func (_m Task_GetID) Return(_a0 core.Identifier) *Task_GetID {
return &Task_GetID{Call: _m.Call.Return(_a0)}
}
func (_m *Task) OnGetID() *Task_GetID {
c := _m.On("GetID")
return &Task_GetID{Call: c}
}
func (_m *Task) OnGetIDMatch(matchers ...interface{}) *Task_GetID {
c := _m.On("GetID", matchers...)
return &Task_GetID{Call: c}
}
// GetID provides a mock function with given fields:
func (_m *Task) GetID() core.Identifier {
ret := _m.Called()
var r0 core.Identifier
if rf, ok := ret.Get(0).(func() core.Identifier); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(core.Identifier)
}
return r0
}
type Task_GetInterface struct {
*mock.Call
}
func (_m Task_GetInterface) Return(_a0 *core.TypedInterface) *Task_GetInterface {
return &Task_GetInterface{Call: _m.Call.Return(_a0)}
}
func (_m *Task) OnGetInterface() *Task_GetInterface {
c := _m.On("GetInterface")
return &Task_GetInterface{Call: c}
}
func (_m *Task) OnGetInterfaceMatch(matchers ...interface{}) *Task_GetInterface {
c := _m.On("GetInterface", matchers...)
return &Task_GetInterface{Call: c}
}
// GetInterface provides a mock function with given fields:
func (_m *Task) GetInterface() *core.TypedInterface {
ret := _m.Called()
var r0 *core.TypedInterface
if rf, ok := ret.Get(0).(func() *core.TypedInterface); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*core.TypedInterface)
}
}
return r0
}