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
/
setup_context.go
111 lines (87 loc) · 2.69 KB
/
setup_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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
import promutils "github.com/lyft/flytestdlib/promutils"
// SetupContext is an autogenerated mock type for the SetupContext type
type SetupContext struct {
mock.Mock
}
type SetupContext_EnqueueOwner struct {
*mock.Call
}
func (_m SetupContext_EnqueueOwner) Return(_a0 func(string)) *SetupContext_EnqueueOwner {
return &SetupContext_EnqueueOwner{Call: _m.Call.Return(_a0)}
}
func (_m *SetupContext) OnEnqueueOwner() *SetupContext_EnqueueOwner {
c := _m.On("EnqueueOwner")
return &SetupContext_EnqueueOwner{Call: c}
}
func (_m *SetupContext) OnEnqueueOwnerMatch(matchers ...interface{}) *SetupContext_EnqueueOwner {
c := _m.On("EnqueueOwner", matchers...)
return &SetupContext_EnqueueOwner{Call: c}
}
// EnqueueOwner provides a mock function with given fields:
func (_m *SetupContext) EnqueueOwner() func(string) {
ret := _m.Called()
var r0 func(string)
if rf, ok := ret.Get(0).(func() func(string)); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(func(string))
}
}
return r0
}
type SetupContext_MetricsScope struct {
*mock.Call
}
func (_m SetupContext_MetricsScope) Return(_a0 promutils.Scope) *SetupContext_MetricsScope {
return &SetupContext_MetricsScope{Call: _m.Call.Return(_a0)}
}
func (_m *SetupContext) OnMetricsScope() *SetupContext_MetricsScope {
c := _m.On("MetricsScope")
return &SetupContext_MetricsScope{Call: c}
}
func (_m *SetupContext) OnMetricsScopeMatch(matchers ...interface{}) *SetupContext_MetricsScope {
c := _m.On("MetricsScope", matchers...)
return &SetupContext_MetricsScope{Call: c}
}
// MetricsScope provides a mock function with given fields:
func (_m *SetupContext) MetricsScope() promutils.Scope {
ret := _m.Called()
var r0 promutils.Scope
if rf, ok := ret.Get(0).(func() promutils.Scope); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(promutils.Scope)
}
}
return r0
}
type SetupContext_OwnerKind struct {
*mock.Call
}
func (_m SetupContext_OwnerKind) Return(_a0 string) *SetupContext_OwnerKind {
return &SetupContext_OwnerKind{Call: _m.Call.Return(_a0)}
}
func (_m *SetupContext) OnOwnerKind() *SetupContext_OwnerKind {
c := _m.On("OwnerKind")
return &SetupContext_OwnerKind{Call: c}
}
func (_m *SetupContext) OnOwnerKindMatch(matchers ...interface{}) *SetupContext_OwnerKind {
c := _m.On("OwnerKind", matchers...)
return &SetupContext_OwnerKind{Call: c}
}
// OwnerKind provides a mock function with given fields:
func (_m *SetupContext) OwnerKind() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}