-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_value_with_all_features.go
254 lines (202 loc) · 5.29 KB
/
mock_value_with_all_features.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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
// Code generated by mockery v2.28.1. DO NOT EDIT.
package acal
import mock "github.com/stretchr/testify/mock"
// mockValueWithAllFeatures is an autogenerated mock type for the valueWithAllFeatures type
type mockValueWithAllFeatures struct {
mock.Mock
}
// AddCondition provides a mock function with given fields: _a0
func (_m *mockValueWithAllFeatures) AddCondition(_a0 *Condition) {
_m.Called(_a0)
}
// ExtractValues provides a mock function with given fields: cache
func (_m *mockValueWithAllFeatures) ExtractValues(cache IValueCache) IValueCache {
ret := _m.Called(cache)
var r0 IValueCache
if rf, ok := ret.Get(0).(func(IValueCache) IValueCache); ok {
r0 = rf(cache)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(IValueCache)
}
}
return r0
}
// GetAlias provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) GetAlias() 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
}
// GetCondition provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) GetCondition() *Condition {
ret := _m.Called()
var r0 *Condition
if rf, ok := ret.Get(0).(func() *Condition); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*Condition)
}
}
return r0
}
// GetFormulaFn provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) GetFormulaFn() func() *SyntaxNode {
ret := _m.Called()
var r0 func() *SyntaxNode
if rf, ok := ret.Get(0).(func() func() *SyntaxNode); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(func() *SyntaxNode)
}
}
return r0
}
// GetName provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) GetName() 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
}
// GetTags provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) GetTags() Tags {
ret := _m.Called()
var r0 Tags
if rf, ok := ret.Get(0).(func() Tags); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(Tags)
}
}
return r0
}
// GetValue provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) GetValue() interface{} {
ret := _m.Called()
var r0 interface{}
if rf, ok := ret.Get(0).(func() interface{}); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(interface{})
}
}
return r0
}
// HasFormula provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) HasFormula() bool {
ret := _m.Called()
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// HasIdentity provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) HasIdentity() bool {
ret := _m.Called()
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// Identify provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) Identify() 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
}
// IsConditional provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) IsConditional() bool {
ret := _m.Called()
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// IsNil provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) IsNil() bool {
ret := _m.Called()
var r0 bool
if rf, ok := ret.Get(0).(func() bool); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// SetAlias provides a mock function with given fields: _a0
func (_m *mockValueWithAllFeatures) SetAlias(_a0 string) {
_m.Called(_a0)
}
// Stringify provides a mock function with given fields:
func (_m *mockValueWithAllFeatures) Stringify() 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
}
// Tag provides a mock function with given fields: _a0
func (_m *mockValueWithAllFeatures) Tag(_a0 ...Tag) {
_va := make([]interface{}, len(_a0))
for _i := range _a0 {
_va[_i] = _a0[_i]
}
var _ca []interface{}
_ca = append(_ca, _va...)
_m.Called(_ca...)
}
// ToSyntaxOperand provides a mock function with given fields: nextOp
func (_m *mockValueWithAllFeatures) ToSyntaxOperand(nextOp Op) *SyntaxOperand {
ret := _m.Called(nextOp)
var r0 *SyntaxOperand
if rf, ok := ret.Get(0).(func(Op) *SyntaxOperand); ok {
r0 = rf(nextOp)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*SyntaxOperand)
}
}
return r0
}
type mockConstructorTestingTnewMockValueWithAllFeatures interface {
mock.TestingT
Cleanup(func())
}
// newMockValueWithAllFeatures creates a new instance of mockValueWithAllFeatures. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func newMockValueWithAllFeatures(t mockConstructorTestingTnewMockValueWithAllFeatures) *mockValueWithAllFeatures {
mock := &mockValueWithAllFeatures{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}