github.com/kubeshop/testkube@v1.17.23/pkg/tcl/expressionstcl/mock_staticvalue.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/kubeshop/testkube/pkg/tcl/expressionstcl (interfaces: StaticValue) 3 4 // Package expressionstcl is a generated GoMock package. 5 package expressionstcl 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 ) 12 13 // MockStaticValue is a mock of StaticValue interface. 14 type MockStaticValue struct { 15 ctrl *gomock.Controller 16 recorder *MockStaticValueMockRecorder 17 } 18 19 // MockStaticValueMockRecorder is the mock recorder for MockStaticValue. 20 type MockStaticValueMockRecorder struct { 21 mock *MockStaticValue 22 } 23 24 // NewMockStaticValue creates a new mock instance. 25 func NewMockStaticValue(ctrl *gomock.Controller) *MockStaticValue { 26 mock := &MockStaticValue{ctrl: ctrl} 27 mock.recorder = &MockStaticValueMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use. 32 func (m *MockStaticValue) EXPECT() *MockStaticValueMockRecorder { 33 return m.recorder 34 } 35 36 // Accessors mocks base method. 37 func (m *MockStaticValue) Accessors() map[string]struct{} { 38 m.ctrl.T.Helper() 39 ret := m.ctrl.Call(m, "Accessors") 40 ret0, _ := ret[0].(map[string]struct{}) 41 return ret0 42 } 43 44 // Accessors indicates an expected call of Accessors. 45 func (mr *MockStaticValueMockRecorder) Accessors() *gomock.Call { 46 mr.mock.ctrl.T.Helper() 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Accessors", reflect.TypeOf((*MockStaticValue)(nil).Accessors)) 48 } 49 50 // BoolValue mocks base method. 51 func (m *MockStaticValue) BoolValue() (bool, error) { 52 m.ctrl.T.Helper() 53 ret := m.ctrl.Call(m, "BoolValue") 54 ret0, _ := ret[0].(bool) 55 ret1, _ := ret[1].(error) 56 return ret0, ret1 57 } 58 59 // BoolValue indicates an expected call of BoolValue. 60 func (mr *MockStaticValueMockRecorder) BoolValue() *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BoolValue", reflect.TypeOf((*MockStaticValue)(nil).BoolValue)) 63 } 64 65 // FloatValue mocks base method. 66 func (m *MockStaticValue) FloatValue() (float64, error) { 67 m.ctrl.T.Helper() 68 ret := m.ctrl.Call(m, "FloatValue") 69 ret0, _ := ret[0].(float64) 70 ret1, _ := ret[1].(error) 71 return ret0, ret1 72 } 73 74 // FloatValue indicates an expected call of FloatValue. 75 func (mr *MockStaticValueMockRecorder) FloatValue() *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FloatValue", reflect.TypeOf((*MockStaticValue)(nil).FloatValue)) 78 } 79 80 // Functions mocks base method. 81 func (m *MockStaticValue) Functions() map[string]struct{} { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "Functions") 84 ret0, _ := ret[0].(map[string]struct{}) 85 return ret0 86 } 87 88 // Functions indicates an expected call of Functions. 89 func (mr *MockStaticValueMockRecorder) Functions() *gomock.Call { 90 mr.mock.ctrl.T.Helper() 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Functions", reflect.TypeOf((*MockStaticValue)(nil).Functions)) 92 } 93 94 // IntValue mocks base method. 95 func (m *MockStaticValue) IntValue() (int64, error) { 96 m.ctrl.T.Helper() 97 ret := m.ctrl.Call(m, "IntValue") 98 ret0, _ := ret[0].(int64) 99 ret1, _ := ret[1].(error) 100 return ret0, ret1 101 } 102 103 // IntValue indicates an expected call of IntValue. 104 func (mr *MockStaticValueMockRecorder) IntValue() *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IntValue", reflect.TypeOf((*MockStaticValue)(nil).IntValue)) 107 } 108 109 // IsBool mocks base method. 110 func (m *MockStaticValue) IsBool() bool { 111 m.ctrl.T.Helper() 112 ret := m.ctrl.Call(m, "IsBool") 113 ret0, _ := ret[0].(bool) 114 return ret0 115 } 116 117 // IsBool indicates an expected call of IsBool. 118 func (mr *MockStaticValueMockRecorder) IsBool() *gomock.Call { 119 mr.mock.ctrl.T.Helper() 120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBool", reflect.TypeOf((*MockStaticValue)(nil).IsBool)) 121 } 122 123 // IsInt mocks base method. 124 func (m *MockStaticValue) IsInt() bool { 125 m.ctrl.T.Helper() 126 ret := m.ctrl.Call(m, "IsInt") 127 ret0, _ := ret[0].(bool) 128 return ret0 129 } 130 131 // IsInt indicates an expected call of IsInt. 132 func (mr *MockStaticValueMockRecorder) IsInt() *gomock.Call { 133 mr.mock.ctrl.T.Helper() 134 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsInt", reflect.TypeOf((*MockStaticValue)(nil).IsInt)) 135 } 136 137 // IsMap mocks base method. 138 func (m *MockStaticValue) IsMap() bool { 139 m.ctrl.T.Helper() 140 ret := m.ctrl.Call(m, "IsMap") 141 ret0, _ := ret[0].(bool) 142 return ret0 143 } 144 145 // IsMap indicates an expected call of IsMap. 146 func (mr *MockStaticValueMockRecorder) IsMap() *gomock.Call { 147 mr.mock.ctrl.T.Helper() 148 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsMap", reflect.TypeOf((*MockStaticValue)(nil).IsMap)) 149 } 150 151 // IsNone mocks base method. 152 func (m *MockStaticValue) IsNone() bool { 153 m.ctrl.T.Helper() 154 ret := m.ctrl.Call(m, "IsNone") 155 ret0, _ := ret[0].(bool) 156 return ret0 157 } 158 159 // IsNone indicates an expected call of IsNone. 160 func (mr *MockStaticValueMockRecorder) IsNone() *gomock.Call { 161 mr.mock.ctrl.T.Helper() 162 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNone", reflect.TypeOf((*MockStaticValue)(nil).IsNone)) 163 } 164 165 // IsNumber mocks base method. 166 func (m *MockStaticValue) IsNumber() bool { 167 m.ctrl.T.Helper() 168 ret := m.ctrl.Call(m, "IsNumber") 169 ret0, _ := ret[0].(bool) 170 return ret0 171 } 172 173 // IsNumber indicates an expected call of IsNumber. 174 func (mr *MockStaticValueMockRecorder) IsNumber() *gomock.Call { 175 mr.mock.ctrl.T.Helper() 176 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsNumber", reflect.TypeOf((*MockStaticValue)(nil).IsNumber)) 177 } 178 179 // IsSlice mocks base method. 180 func (m *MockStaticValue) IsSlice() bool { 181 m.ctrl.T.Helper() 182 ret := m.ctrl.Call(m, "IsSlice") 183 ret0, _ := ret[0].(bool) 184 return ret0 185 } 186 187 // IsSlice indicates an expected call of IsSlice. 188 func (mr *MockStaticValueMockRecorder) IsSlice() *gomock.Call { 189 mr.mock.ctrl.T.Helper() 190 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSlice", reflect.TypeOf((*MockStaticValue)(nil).IsSlice)) 191 } 192 193 // IsString mocks base method. 194 func (m *MockStaticValue) IsString() bool { 195 m.ctrl.T.Helper() 196 ret := m.ctrl.Call(m, "IsString") 197 ret0, _ := ret[0].(bool) 198 return ret0 199 } 200 201 // IsString indicates an expected call of IsString. 202 func (mr *MockStaticValueMockRecorder) IsString() *gomock.Call { 203 mr.mock.ctrl.T.Helper() 204 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsString", reflect.TypeOf((*MockStaticValue)(nil).IsString)) 205 } 206 207 // MapValue mocks base method. 208 func (m *MockStaticValue) MapValue() (map[string]interface{}, error) { 209 m.ctrl.T.Helper() 210 ret := m.ctrl.Call(m, "MapValue") 211 ret0, _ := ret[0].(map[string]interface{}) 212 ret1, _ := ret[1].(error) 213 return ret0, ret1 214 } 215 216 // MapValue indicates an expected call of MapValue. 217 func (mr *MockStaticValueMockRecorder) MapValue() *gomock.Call { 218 mr.mock.ctrl.T.Helper() 219 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MapValue", reflect.TypeOf((*MockStaticValue)(nil).MapValue)) 220 } 221 222 // Resolve mocks base method. 223 func (m *MockStaticValue) Resolve(arg0 ...Machine) (Expression, error) { 224 m.ctrl.T.Helper() 225 varargs := []interface{}{} 226 for _, a := range arg0 { 227 varargs = append(varargs, a) 228 } 229 ret := m.ctrl.Call(m, "Resolve", varargs...) 230 ret0, _ := ret[0].(Expression) 231 ret1, _ := ret[1].(error) 232 return ret0, ret1 233 } 234 235 // Resolve indicates an expected call of Resolve. 236 func (mr *MockStaticValueMockRecorder) Resolve(arg0 ...interface{}) *gomock.Call { 237 mr.mock.ctrl.T.Helper() 238 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Resolve", reflect.TypeOf((*MockStaticValue)(nil).Resolve), arg0...) 239 } 240 241 // SafeResolve mocks base method. 242 func (m *MockStaticValue) SafeResolve(arg0 ...Machine) (Expression, bool, error) { 243 m.ctrl.T.Helper() 244 varargs := []interface{}{} 245 for _, a := range arg0 { 246 varargs = append(varargs, a) 247 } 248 ret := m.ctrl.Call(m, "SafeResolve", varargs...) 249 ret0, _ := ret[0].(Expression) 250 ret1, _ := ret[1].(bool) 251 ret2, _ := ret[2].(error) 252 return ret0, ret1, ret2 253 } 254 255 // SafeResolve indicates an expected call of SafeResolve. 256 func (mr *MockStaticValueMockRecorder) SafeResolve(arg0 ...interface{}) *gomock.Call { 257 mr.mock.ctrl.T.Helper() 258 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SafeResolve", reflect.TypeOf((*MockStaticValue)(nil).SafeResolve), arg0...) 259 } 260 261 // SafeString mocks base method. 262 func (m *MockStaticValue) SafeString() string { 263 m.ctrl.T.Helper() 264 ret := m.ctrl.Call(m, "SafeString") 265 ret0, _ := ret[0].(string) 266 return ret0 267 } 268 269 // SafeString indicates an expected call of SafeString. 270 func (mr *MockStaticValueMockRecorder) SafeString() *gomock.Call { 271 mr.mock.ctrl.T.Helper() 272 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SafeString", reflect.TypeOf((*MockStaticValue)(nil).SafeString)) 273 } 274 275 // SliceValue mocks base method. 276 func (m *MockStaticValue) SliceValue() ([]interface{}, error) { 277 m.ctrl.T.Helper() 278 ret := m.ctrl.Call(m, "SliceValue") 279 ret0, _ := ret[0].([]interface{}) 280 ret1, _ := ret[1].(error) 281 return ret0, ret1 282 } 283 284 // SliceValue indicates an expected call of SliceValue. 285 func (mr *MockStaticValueMockRecorder) SliceValue() *gomock.Call { 286 mr.mock.ctrl.T.Helper() 287 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SliceValue", reflect.TypeOf((*MockStaticValue)(nil).SliceValue)) 288 } 289 290 // Static mocks base method. 291 func (m *MockStaticValue) Static() StaticValue { 292 m.ctrl.T.Helper() 293 ret := m.ctrl.Call(m, "Static") 294 ret0, _ := ret[0].(StaticValue) 295 return ret0 296 } 297 298 // Static indicates an expected call of Static. 299 func (mr *MockStaticValueMockRecorder) Static() *gomock.Call { 300 mr.mock.ctrl.T.Helper() 301 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Static", reflect.TypeOf((*MockStaticValue)(nil).Static)) 302 } 303 304 // String mocks base method. 305 func (m *MockStaticValue) String() string { 306 m.ctrl.T.Helper() 307 ret := m.ctrl.Call(m, "String") 308 ret0, _ := ret[0].(string) 309 return ret0 310 } 311 312 // String indicates an expected call of String. 313 func (mr *MockStaticValueMockRecorder) String() *gomock.Call { 314 mr.mock.ctrl.T.Helper() 315 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockStaticValue)(nil).String)) 316 } 317 318 // StringValue mocks base method. 319 func (m *MockStaticValue) StringValue() (string, error) { 320 m.ctrl.T.Helper() 321 ret := m.ctrl.Call(m, "StringValue") 322 ret0, _ := ret[0].(string) 323 ret1, _ := ret[1].(error) 324 return ret0, ret1 325 } 326 327 // StringValue indicates an expected call of StringValue. 328 func (mr *MockStaticValueMockRecorder) StringValue() *gomock.Call { 329 mr.mock.ctrl.T.Helper() 330 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StringValue", reflect.TypeOf((*MockStaticValue)(nil).StringValue)) 331 } 332 333 // Template mocks base method. 334 func (m *MockStaticValue) Template() string { 335 m.ctrl.T.Helper() 336 ret := m.ctrl.Call(m, "Template") 337 ret0, _ := ret[0].(string) 338 return ret0 339 } 340 341 // Template indicates an expected call of Template. 342 func (mr *MockStaticValueMockRecorder) Template() *gomock.Call { 343 mr.mock.ctrl.T.Helper() 344 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Template", reflect.TypeOf((*MockStaticValue)(nil).Template)) 345 } 346 347 // Type mocks base method. 348 func (m *MockStaticValue) Type() Type { 349 m.ctrl.T.Helper() 350 ret := m.ctrl.Call(m, "Type") 351 ret0, _ := ret[0].(Type) 352 return ret0 353 } 354 355 // Type indicates an expected call of Type. 356 func (mr *MockStaticValueMockRecorder) Type() *gomock.Call { 357 mr.mock.ctrl.T.Helper() 358 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*MockStaticValue)(nil).Type)) 359 } 360 361 // Value mocks base method. 362 func (m *MockStaticValue) Value() interface{} { 363 m.ctrl.T.Helper() 364 ret := m.ctrl.Call(m, "Value") 365 ret0, _ := ret[0].(interface{}) 366 return ret0 367 } 368 369 // Value indicates an expected call of Value. 370 func (mr *MockStaticValueMockRecorder) Value() *gomock.Call { 371 mr.mock.ctrl.T.Helper() 372 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Value", reflect.TypeOf((*MockStaticValue)(nil).Value)) 373 }