github.com/true-sqn/fabric@v2.1.1+incompatible/core/ledger/mock/query_executor.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package mock 3 4 import ( 5 "sync" 6 7 ledgera "github.com/hyperledger/fabric/common/ledger" 8 "github.com/hyperledger/fabric/core/ledger" 9 ) 10 11 type QueryExecutor struct { 12 DoneStub func() 13 doneMutex sync.RWMutex 14 doneArgsForCall []struct { 15 } 16 ExecuteQueryStub func(string, string) (ledgera.ResultsIterator, error) 17 executeQueryMutex sync.RWMutex 18 executeQueryArgsForCall []struct { 19 arg1 string 20 arg2 string 21 } 22 executeQueryReturns struct { 23 result1 ledgera.ResultsIterator 24 result2 error 25 } 26 executeQueryReturnsOnCall map[int]struct { 27 result1 ledgera.ResultsIterator 28 result2 error 29 } 30 ExecuteQueryOnPrivateDataStub func(string, string, string) (ledgera.ResultsIterator, error) 31 executeQueryOnPrivateDataMutex sync.RWMutex 32 executeQueryOnPrivateDataArgsForCall []struct { 33 arg1 string 34 arg2 string 35 arg3 string 36 } 37 executeQueryOnPrivateDataReturns struct { 38 result1 ledgera.ResultsIterator 39 result2 error 40 } 41 executeQueryOnPrivateDataReturnsOnCall map[int]struct { 42 result1 ledgera.ResultsIterator 43 result2 error 44 } 45 ExecuteQueryWithMetadataStub func(string, string, map[string]interface{}) (ledger.QueryResultsIterator, error) 46 executeQueryWithMetadataMutex sync.RWMutex 47 executeQueryWithMetadataArgsForCall []struct { 48 arg1 string 49 arg2 string 50 arg3 map[string]interface{} 51 } 52 executeQueryWithMetadataReturns struct { 53 result1 ledger.QueryResultsIterator 54 result2 error 55 } 56 executeQueryWithMetadataReturnsOnCall map[int]struct { 57 result1 ledger.QueryResultsIterator 58 result2 error 59 } 60 GetPrivateDataStub func(string, string, string) ([]byte, error) 61 getPrivateDataMutex sync.RWMutex 62 getPrivateDataArgsForCall []struct { 63 arg1 string 64 arg2 string 65 arg3 string 66 } 67 getPrivateDataReturns struct { 68 result1 []byte 69 result2 error 70 } 71 getPrivateDataReturnsOnCall map[int]struct { 72 result1 []byte 73 result2 error 74 } 75 GetPrivateDataHashStub func(string, string, string) ([]byte, error) 76 getPrivateDataHashMutex sync.RWMutex 77 getPrivateDataHashArgsForCall []struct { 78 arg1 string 79 arg2 string 80 arg3 string 81 } 82 getPrivateDataHashReturns struct { 83 result1 []byte 84 result2 error 85 } 86 getPrivateDataHashReturnsOnCall map[int]struct { 87 result1 []byte 88 result2 error 89 } 90 GetPrivateDataMetadataStub func(string, string, string) (map[string][]byte, error) 91 getPrivateDataMetadataMutex sync.RWMutex 92 getPrivateDataMetadataArgsForCall []struct { 93 arg1 string 94 arg2 string 95 arg3 string 96 } 97 getPrivateDataMetadataReturns struct { 98 result1 map[string][]byte 99 result2 error 100 } 101 getPrivateDataMetadataReturnsOnCall map[int]struct { 102 result1 map[string][]byte 103 result2 error 104 } 105 GetPrivateDataMetadataByHashStub func(string, string, []byte) (map[string][]byte, error) 106 getPrivateDataMetadataByHashMutex sync.RWMutex 107 getPrivateDataMetadataByHashArgsForCall []struct { 108 arg1 string 109 arg2 string 110 arg3 []byte 111 } 112 getPrivateDataMetadataByHashReturns struct { 113 result1 map[string][]byte 114 result2 error 115 } 116 getPrivateDataMetadataByHashReturnsOnCall map[int]struct { 117 result1 map[string][]byte 118 result2 error 119 } 120 GetPrivateDataMultipleKeysStub func(string, string, []string) ([][]byte, error) 121 getPrivateDataMultipleKeysMutex sync.RWMutex 122 getPrivateDataMultipleKeysArgsForCall []struct { 123 arg1 string 124 arg2 string 125 arg3 []string 126 } 127 getPrivateDataMultipleKeysReturns struct { 128 result1 [][]byte 129 result2 error 130 } 131 getPrivateDataMultipleKeysReturnsOnCall map[int]struct { 132 result1 [][]byte 133 result2 error 134 } 135 GetPrivateDataRangeScanIteratorStub func(string, string, string, string) (ledgera.ResultsIterator, error) 136 getPrivateDataRangeScanIteratorMutex sync.RWMutex 137 getPrivateDataRangeScanIteratorArgsForCall []struct { 138 arg1 string 139 arg2 string 140 arg3 string 141 arg4 string 142 } 143 getPrivateDataRangeScanIteratorReturns struct { 144 result1 ledgera.ResultsIterator 145 result2 error 146 } 147 getPrivateDataRangeScanIteratorReturnsOnCall map[int]struct { 148 result1 ledgera.ResultsIterator 149 result2 error 150 } 151 GetStateStub func(string, string) ([]byte, error) 152 getStateMutex sync.RWMutex 153 getStateArgsForCall []struct { 154 arg1 string 155 arg2 string 156 } 157 getStateReturns struct { 158 result1 []byte 159 result2 error 160 } 161 getStateReturnsOnCall map[int]struct { 162 result1 []byte 163 result2 error 164 } 165 GetStateMetadataStub func(string, string) (map[string][]byte, error) 166 getStateMetadataMutex sync.RWMutex 167 getStateMetadataArgsForCall []struct { 168 arg1 string 169 arg2 string 170 } 171 getStateMetadataReturns struct { 172 result1 map[string][]byte 173 result2 error 174 } 175 getStateMetadataReturnsOnCall map[int]struct { 176 result1 map[string][]byte 177 result2 error 178 } 179 GetStateMultipleKeysStub func(string, []string) ([][]byte, error) 180 getStateMultipleKeysMutex sync.RWMutex 181 getStateMultipleKeysArgsForCall []struct { 182 arg1 string 183 arg2 []string 184 } 185 getStateMultipleKeysReturns struct { 186 result1 [][]byte 187 result2 error 188 } 189 getStateMultipleKeysReturnsOnCall map[int]struct { 190 result1 [][]byte 191 result2 error 192 } 193 GetStateRangeScanIteratorStub func(string, string, string) (ledgera.ResultsIterator, error) 194 getStateRangeScanIteratorMutex sync.RWMutex 195 getStateRangeScanIteratorArgsForCall []struct { 196 arg1 string 197 arg2 string 198 arg3 string 199 } 200 getStateRangeScanIteratorReturns struct { 201 result1 ledgera.ResultsIterator 202 result2 error 203 } 204 getStateRangeScanIteratorReturnsOnCall map[int]struct { 205 result1 ledgera.ResultsIterator 206 result2 error 207 } 208 GetStateRangeScanIteratorWithMetadataStub func(string, string, string, map[string]interface{}) (ledger.QueryResultsIterator, error) 209 getStateRangeScanIteratorWithMetadataMutex sync.RWMutex 210 getStateRangeScanIteratorWithMetadataArgsForCall []struct { 211 arg1 string 212 arg2 string 213 arg3 string 214 arg4 map[string]interface{} 215 } 216 getStateRangeScanIteratorWithMetadataReturns struct { 217 result1 ledger.QueryResultsIterator 218 result2 error 219 } 220 getStateRangeScanIteratorWithMetadataReturnsOnCall map[int]struct { 221 result1 ledger.QueryResultsIterator 222 result2 error 223 } 224 invocations map[string][][]interface{} 225 invocationsMutex sync.RWMutex 226 } 227 228 func (fake *QueryExecutor) Done() { 229 fake.doneMutex.Lock() 230 fake.doneArgsForCall = append(fake.doneArgsForCall, struct { 231 }{}) 232 fake.recordInvocation("Done", []interface{}{}) 233 fake.doneMutex.Unlock() 234 if fake.DoneStub != nil { 235 fake.DoneStub() 236 } 237 } 238 239 func (fake *QueryExecutor) DoneCallCount() int { 240 fake.doneMutex.RLock() 241 defer fake.doneMutex.RUnlock() 242 return len(fake.doneArgsForCall) 243 } 244 245 func (fake *QueryExecutor) DoneCalls(stub func()) { 246 fake.doneMutex.Lock() 247 defer fake.doneMutex.Unlock() 248 fake.DoneStub = stub 249 } 250 251 func (fake *QueryExecutor) ExecuteQuery(arg1 string, arg2 string) (ledgera.ResultsIterator, error) { 252 fake.executeQueryMutex.Lock() 253 ret, specificReturn := fake.executeQueryReturnsOnCall[len(fake.executeQueryArgsForCall)] 254 fake.executeQueryArgsForCall = append(fake.executeQueryArgsForCall, struct { 255 arg1 string 256 arg2 string 257 }{arg1, arg2}) 258 fake.recordInvocation("ExecuteQuery", []interface{}{arg1, arg2}) 259 fake.executeQueryMutex.Unlock() 260 if fake.ExecuteQueryStub != nil { 261 return fake.ExecuteQueryStub(arg1, arg2) 262 } 263 if specificReturn { 264 return ret.result1, ret.result2 265 } 266 fakeReturns := fake.executeQueryReturns 267 return fakeReturns.result1, fakeReturns.result2 268 } 269 270 func (fake *QueryExecutor) ExecuteQueryCallCount() int { 271 fake.executeQueryMutex.RLock() 272 defer fake.executeQueryMutex.RUnlock() 273 return len(fake.executeQueryArgsForCall) 274 } 275 276 func (fake *QueryExecutor) ExecuteQueryCalls(stub func(string, string) (ledgera.ResultsIterator, error)) { 277 fake.executeQueryMutex.Lock() 278 defer fake.executeQueryMutex.Unlock() 279 fake.ExecuteQueryStub = stub 280 } 281 282 func (fake *QueryExecutor) ExecuteQueryArgsForCall(i int) (string, string) { 283 fake.executeQueryMutex.RLock() 284 defer fake.executeQueryMutex.RUnlock() 285 argsForCall := fake.executeQueryArgsForCall[i] 286 return argsForCall.arg1, argsForCall.arg2 287 } 288 289 func (fake *QueryExecutor) ExecuteQueryReturns(result1 ledgera.ResultsIterator, result2 error) { 290 fake.executeQueryMutex.Lock() 291 defer fake.executeQueryMutex.Unlock() 292 fake.ExecuteQueryStub = nil 293 fake.executeQueryReturns = struct { 294 result1 ledgera.ResultsIterator 295 result2 error 296 }{result1, result2} 297 } 298 299 func (fake *QueryExecutor) ExecuteQueryReturnsOnCall(i int, result1 ledgera.ResultsIterator, result2 error) { 300 fake.executeQueryMutex.Lock() 301 defer fake.executeQueryMutex.Unlock() 302 fake.ExecuteQueryStub = nil 303 if fake.executeQueryReturnsOnCall == nil { 304 fake.executeQueryReturnsOnCall = make(map[int]struct { 305 result1 ledgera.ResultsIterator 306 result2 error 307 }) 308 } 309 fake.executeQueryReturnsOnCall[i] = struct { 310 result1 ledgera.ResultsIterator 311 result2 error 312 }{result1, result2} 313 } 314 315 func (fake *QueryExecutor) ExecuteQueryOnPrivateData(arg1 string, arg2 string, arg3 string) (ledgera.ResultsIterator, error) { 316 fake.executeQueryOnPrivateDataMutex.Lock() 317 ret, specificReturn := fake.executeQueryOnPrivateDataReturnsOnCall[len(fake.executeQueryOnPrivateDataArgsForCall)] 318 fake.executeQueryOnPrivateDataArgsForCall = append(fake.executeQueryOnPrivateDataArgsForCall, struct { 319 arg1 string 320 arg2 string 321 arg3 string 322 }{arg1, arg2, arg3}) 323 fake.recordInvocation("ExecuteQueryOnPrivateData", []interface{}{arg1, arg2, arg3}) 324 fake.executeQueryOnPrivateDataMutex.Unlock() 325 if fake.ExecuteQueryOnPrivateDataStub != nil { 326 return fake.ExecuteQueryOnPrivateDataStub(arg1, arg2, arg3) 327 } 328 if specificReturn { 329 return ret.result1, ret.result2 330 } 331 fakeReturns := fake.executeQueryOnPrivateDataReturns 332 return fakeReturns.result1, fakeReturns.result2 333 } 334 335 func (fake *QueryExecutor) ExecuteQueryOnPrivateDataCallCount() int { 336 fake.executeQueryOnPrivateDataMutex.RLock() 337 defer fake.executeQueryOnPrivateDataMutex.RUnlock() 338 return len(fake.executeQueryOnPrivateDataArgsForCall) 339 } 340 341 func (fake *QueryExecutor) ExecuteQueryOnPrivateDataCalls(stub func(string, string, string) (ledgera.ResultsIterator, error)) { 342 fake.executeQueryOnPrivateDataMutex.Lock() 343 defer fake.executeQueryOnPrivateDataMutex.Unlock() 344 fake.ExecuteQueryOnPrivateDataStub = stub 345 } 346 347 func (fake *QueryExecutor) ExecuteQueryOnPrivateDataArgsForCall(i int) (string, string, string) { 348 fake.executeQueryOnPrivateDataMutex.RLock() 349 defer fake.executeQueryOnPrivateDataMutex.RUnlock() 350 argsForCall := fake.executeQueryOnPrivateDataArgsForCall[i] 351 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 352 } 353 354 func (fake *QueryExecutor) ExecuteQueryOnPrivateDataReturns(result1 ledgera.ResultsIterator, result2 error) { 355 fake.executeQueryOnPrivateDataMutex.Lock() 356 defer fake.executeQueryOnPrivateDataMutex.Unlock() 357 fake.ExecuteQueryOnPrivateDataStub = nil 358 fake.executeQueryOnPrivateDataReturns = struct { 359 result1 ledgera.ResultsIterator 360 result2 error 361 }{result1, result2} 362 } 363 364 func (fake *QueryExecutor) ExecuteQueryOnPrivateDataReturnsOnCall(i int, result1 ledgera.ResultsIterator, result2 error) { 365 fake.executeQueryOnPrivateDataMutex.Lock() 366 defer fake.executeQueryOnPrivateDataMutex.Unlock() 367 fake.ExecuteQueryOnPrivateDataStub = nil 368 if fake.executeQueryOnPrivateDataReturnsOnCall == nil { 369 fake.executeQueryOnPrivateDataReturnsOnCall = make(map[int]struct { 370 result1 ledgera.ResultsIterator 371 result2 error 372 }) 373 } 374 fake.executeQueryOnPrivateDataReturnsOnCall[i] = struct { 375 result1 ledgera.ResultsIterator 376 result2 error 377 }{result1, result2} 378 } 379 380 func (fake *QueryExecutor) ExecuteQueryWithMetadata(arg1 string, arg2 string, arg3 map[string]interface{}) (ledger.QueryResultsIterator, error) { 381 fake.executeQueryWithMetadataMutex.Lock() 382 ret, specificReturn := fake.executeQueryWithMetadataReturnsOnCall[len(fake.executeQueryWithMetadataArgsForCall)] 383 fake.executeQueryWithMetadataArgsForCall = append(fake.executeQueryWithMetadataArgsForCall, struct { 384 arg1 string 385 arg2 string 386 arg3 map[string]interface{} 387 }{arg1, arg2, arg3}) 388 fake.recordInvocation("ExecuteQueryWithMetadata", []interface{}{arg1, arg2, arg3}) 389 fake.executeQueryWithMetadataMutex.Unlock() 390 if fake.ExecuteQueryWithMetadataStub != nil { 391 return fake.ExecuteQueryWithMetadataStub(arg1, arg2, arg3) 392 } 393 if specificReturn { 394 return ret.result1, ret.result2 395 } 396 fakeReturns := fake.executeQueryWithMetadataReturns 397 return fakeReturns.result1, fakeReturns.result2 398 } 399 400 func (fake *QueryExecutor) ExecuteQueryWithMetadataCallCount() int { 401 fake.executeQueryWithMetadataMutex.RLock() 402 defer fake.executeQueryWithMetadataMutex.RUnlock() 403 return len(fake.executeQueryWithMetadataArgsForCall) 404 } 405 406 func (fake *QueryExecutor) ExecuteQueryWithMetadataCalls(stub func(string, string, map[string]interface{}) (ledger.QueryResultsIterator, error)) { 407 fake.executeQueryWithMetadataMutex.Lock() 408 defer fake.executeQueryWithMetadataMutex.Unlock() 409 fake.ExecuteQueryWithMetadataStub = stub 410 } 411 412 func (fake *QueryExecutor) ExecuteQueryWithMetadataArgsForCall(i int) (string, string, map[string]interface{}) { 413 fake.executeQueryWithMetadataMutex.RLock() 414 defer fake.executeQueryWithMetadataMutex.RUnlock() 415 argsForCall := fake.executeQueryWithMetadataArgsForCall[i] 416 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 417 } 418 419 func (fake *QueryExecutor) ExecuteQueryWithMetadataReturns(result1 ledger.QueryResultsIterator, result2 error) { 420 fake.executeQueryWithMetadataMutex.Lock() 421 defer fake.executeQueryWithMetadataMutex.Unlock() 422 fake.ExecuteQueryWithMetadataStub = nil 423 fake.executeQueryWithMetadataReturns = struct { 424 result1 ledger.QueryResultsIterator 425 result2 error 426 }{result1, result2} 427 } 428 429 func (fake *QueryExecutor) ExecuteQueryWithMetadataReturnsOnCall(i int, result1 ledger.QueryResultsIterator, result2 error) { 430 fake.executeQueryWithMetadataMutex.Lock() 431 defer fake.executeQueryWithMetadataMutex.Unlock() 432 fake.ExecuteQueryWithMetadataStub = nil 433 if fake.executeQueryWithMetadataReturnsOnCall == nil { 434 fake.executeQueryWithMetadataReturnsOnCall = make(map[int]struct { 435 result1 ledger.QueryResultsIterator 436 result2 error 437 }) 438 } 439 fake.executeQueryWithMetadataReturnsOnCall[i] = struct { 440 result1 ledger.QueryResultsIterator 441 result2 error 442 }{result1, result2} 443 } 444 445 func (fake *QueryExecutor) GetPrivateData(arg1 string, arg2 string, arg3 string) ([]byte, error) { 446 fake.getPrivateDataMutex.Lock() 447 ret, specificReturn := fake.getPrivateDataReturnsOnCall[len(fake.getPrivateDataArgsForCall)] 448 fake.getPrivateDataArgsForCall = append(fake.getPrivateDataArgsForCall, struct { 449 arg1 string 450 arg2 string 451 arg3 string 452 }{arg1, arg2, arg3}) 453 fake.recordInvocation("GetPrivateData", []interface{}{arg1, arg2, arg3}) 454 fake.getPrivateDataMutex.Unlock() 455 if fake.GetPrivateDataStub != nil { 456 return fake.GetPrivateDataStub(arg1, arg2, arg3) 457 } 458 if specificReturn { 459 return ret.result1, ret.result2 460 } 461 fakeReturns := fake.getPrivateDataReturns 462 return fakeReturns.result1, fakeReturns.result2 463 } 464 465 func (fake *QueryExecutor) GetPrivateDataCallCount() int { 466 fake.getPrivateDataMutex.RLock() 467 defer fake.getPrivateDataMutex.RUnlock() 468 return len(fake.getPrivateDataArgsForCall) 469 } 470 471 func (fake *QueryExecutor) GetPrivateDataCalls(stub func(string, string, string) ([]byte, error)) { 472 fake.getPrivateDataMutex.Lock() 473 defer fake.getPrivateDataMutex.Unlock() 474 fake.GetPrivateDataStub = stub 475 } 476 477 func (fake *QueryExecutor) GetPrivateDataArgsForCall(i int) (string, string, string) { 478 fake.getPrivateDataMutex.RLock() 479 defer fake.getPrivateDataMutex.RUnlock() 480 argsForCall := fake.getPrivateDataArgsForCall[i] 481 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 482 } 483 484 func (fake *QueryExecutor) GetPrivateDataReturns(result1 []byte, result2 error) { 485 fake.getPrivateDataMutex.Lock() 486 defer fake.getPrivateDataMutex.Unlock() 487 fake.GetPrivateDataStub = nil 488 fake.getPrivateDataReturns = struct { 489 result1 []byte 490 result2 error 491 }{result1, result2} 492 } 493 494 func (fake *QueryExecutor) GetPrivateDataReturnsOnCall(i int, result1 []byte, result2 error) { 495 fake.getPrivateDataMutex.Lock() 496 defer fake.getPrivateDataMutex.Unlock() 497 fake.GetPrivateDataStub = nil 498 if fake.getPrivateDataReturnsOnCall == nil { 499 fake.getPrivateDataReturnsOnCall = make(map[int]struct { 500 result1 []byte 501 result2 error 502 }) 503 } 504 fake.getPrivateDataReturnsOnCall[i] = struct { 505 result1 []byte 506 result2 error 507 }{result1, result2} 508 } 509 510 func (fake *QueryExecutor) GetPrivateDataHash(arg1 string, arg2 string, arg3 string) ([]byte, error) { 511 fake.getPrivateDataHashMutex.Lock() 512 ret, specificReturn := fake.getPrivateDataHashReturnsOnCall[len(fake.getPrivateDataHashArgsForCall)] 513 fake.getPrivateDataHashArgsForCall = append(fake.getPrivateDataHashArgsForCall, struct { 514 arg1 string 515 arg2 string 516 arg3 string 517 }{arg1, arg2, arg3}) 518 fake.recordInvocation("GetPrivateDataHash", []interface{}{arg1, arg2, arg3}) 519 fake.getPrivateDataHashMutex.Unlock() 520 if fake.GetPrivateDataHashStub != nil { 521 return fake.GetPrivateDataHashStub(arg1, arg2, arg3) 522 } 523 if specificReturn { 524 return ret.result1, ret.result2 525 } 526 fakeReturns := fake.getPrivateDataHashReturns 527 return fakeReturns.result1, fakeReturns.result2 528 } 529 530 func (fake *QueryExecutor) GetPrivateDataHashCallCount() int { 531 fake.getPrivateDataHashMutex.RLock() 532 defer fake.getPrivateDataHashMutex.RUnlock() 533 return len(fake.getPrivateDataHashArgsForCall) 534 } 535 536 func (fake *QueryExecutor) GetPrivateDataHashCalls(stub func(string, string, string) ([]byte, error)) { 537 fake.getPrivateDataHashMutex.Lock() 538 defer fake.getPrivateDataHashMutex.Unlock() 539 fake.GetPrivateDataHashStub = stub 540 } 541 542 func (fake *QueryExecutor) GetPrivateDataHashArgsForCall(i int) (string, string, string) { 543 fake.getPrivateDataHashMutex.RLock() 544 defer fake.getPrivateDataHashMutex.RUnlock() 545 argsForCall := fake.getPrivateDataHashArgsForCall[i] 546 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 547 } 548 549 func (fake *QueryExecutor) GetPrivateDataHashReturns(result1 []byte, result2 error) { 550 fake.getPrivateDataHashMutex.Lock() 551 defer fake.getPrivateDataHashMutex.Unlock() 552 fake.GetPrivateDataHashStub = nil 553 fake.getPrivateDataHashReturns = struct { 554 result1 []byte 555 result2 error 556 }{result1, result2} 557 } 558 559 func (fake *QueryExecutor) GetPrivateDataHashReturnsOnCall(i int, result1 []byte, result2 error) { 560 fake.getPrivateDataHashMutex.Lock() 561 defer fake.getPrivateDataHashMutex.Unlock() 562 fake.GetPrivateDataHashStub = nil 563 if fake.getPrivateDataHashReturnsOnCall == nil { 564 fake.getPrivateDataHashReturnsOnCall = make(map[int]struct { 565 result1 []byte 566 result2 error 567 }) 568 } 569 fake.getPrivateDataHashReturnsOnCall[i] = struct { 570 result1 []byte 571 result2 error 572 }{result1, result2} 573 } 574 575 func (fake *QueryExecutor) GetPrivateDataMetadata(arg1 string, arg2 string, arg3 string) (map[string][]byte, error) { 576 fake.getPrivateDataMetadataMutex.Lock() 577 ret, specificReturn := fake.getPrivateDataMetadataReturnsOnCall[len(fake.getPrivateDataMetadataArgsForCall)] 578 fake.getPrivateDataMetadataArgsForCall = append(fake.getPrivateDataMetadataArgsForCall, struct { 579 arg1 string 580 arg2 string 581 arg3 string 582 }{arg1, arg2, arg3}) 583 fake.recordInvocation("GetPrivateDataMetadata", []interface{}{arg1, arg2, arg3}) 584 fake.getPrivateDataMetadataMutex.Unlock() 585 if fake.GetPrivateDataMetadataStub != nil { 586 return fake.GetPrivateDataMetadataStub(arg1, arg2, arg3) 587 } 588 if specificReturn { 589 return ret.result1, ret.result2 590 } 591 fakeReturns := fake.getPrivateDataMetadataReturns 592 return fakeReturns.result1, fakeReturns.result2 593 } 594 595 func (fake *QueryExecutor) GetPrivateDataMetadataCallCount() int { 596 fake.getPrivateDataMetadataMutex.RLock() 597 defer fake.getPrivateDataMetadataMutex.RUnlock() 598 return len(fake.getPrivateDataMetadataArgsForCall) 599 } 600 601 func (fake *QueryExecutor) GetPrivateDataMetadataCalls(stub func(string, string, string) (map[string][]byte, error)) { 602 fake.getPrivateDataMetadataMutex.Lock() 603 defer fake.getPrivateDataMetadataMutex.Unlock() 604 fake.GetPrivateDataMetadataStub = stub 605 } 606 607 func (fake *QueryExecutor) GetPrivateDataMetadataArgsForCall(i int) (string, string, string) { 608 fake.getPrivateDataMetadataMutex.RLock() 609 defer fake.getPrivateDataMetadataMutex.RUnlock() 610 argsForCall := fake.getPrivateDataMetadataArgsForCall[i] 611 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 612 } 613 614 func (fake *QueryExecutor) GetPrivateDataMetadataReturns(result1 map[string][]byte, result2 error) { 615 fake.getPrivateDataMetadataMutex.Lock() 616 defer fake.getPrivateDataMetadataMutex.Unlock() 617 fake.GetPrivateDataMetadataStub = nil 618 fake.getPrivateDataMetadataReturns = struct { 619 result1 map[string][]byte 620 result2 error 621 }{result1, result2} 622 } 623 624 func (fake *QueryExecutor) GetPrivateDataMetadataReturnsOnCall(i int, result1 map[string][]byte, result2 error) { 625 fake.getPrivateDataMetadataMutex.Lock() 626 defer fake.getPrivateDataMetadataMutex.Unlock() 627 fake.GetPrivateDataMetadataStub = nil 628 if fake.getPrivateDataMetadataReturnsOnCall == nil { 629 fake.getPrivateDataMetadataReturnsOnCall = make(map[int]struct { 630 result1 map[string][]byte 631 result2 error 632 }) 633 } 634 fake.getPrivateDataMetadataReturnsOnCall[i] = struct { 635 result1 map[string][]byte 636 result2 error 637 }{result1, result2} 638 } 639 640 func (fake *QueryExecutor) GetPrivateDataMetadataByHash(arg1 string, arg2 string, arg3 []byte) (map[string][]byte, error) { 641 var arg3Copy []byte 642 if arg3 != nil { 643 arg3Copy = make([]byte, len(arg3)) 644 copy(arg3Copy, arg3) 645 } 646 fake.getPrivateDataMetadataByHashMutex.Lock() 647 ret, specificReturn := fake.getPrivateDataMetadataByHashReturnsOnCall[len(fake.getPrivateDataMetadataByHashArgsForCall)] 648 fake.getPrivateDataMetadataByHashArgsForCall = append(fake.getPrivateDataMetadataByHashArgsForCall, struct { 649 arg1 string 650 arg2 string 651 arg3 []byte 652 }{arg1, arg2, arg3Copy}) 653 fake.recordInvocation("GetPrivateDataMetadataByHash", []interface{}{arg1, arg2, arg3Copy}) 654 fake.getPrivateDataMetadataByHashMutex.Unlock() 655 if fake.GetPrivateDataMetadataByHashStub != nil { 656 return fake.GetPrivateDataMetadataByHashStub(arg1, arg2, arg3) 657 } 658 if specificReturn { 659 return ret.result1, ret.result2 660 } 661 fakeReturns := fake.getPrivateDataMetadataByHashReturns 662 return fakeReturns.result1, fakeReturns.result2 663 } 664 665 func (fake *QueryExecutor) GetPrivateDataMetadataByHashCallCount() int { 666 fake.getPrivateDataMetadataByHashMutex.RLock() 667 defer fake.getPrivateDataMetadataByHashMutex.RUnlock() 668 return len(fake.getPrivateDataMetadataByHashArgsForCall) 669 } 670 671 func (fake *QueryExecutor) GetPrivateDataMetadataByHashCalls(stub func(string, string, []byte) (map[string][]byte, error)) { 672 fake.getPrivateDataMetadataByHashMutex.Lock() 673 defer fake.getPrivateDataMetadataByHashMutex.Unlock() 674 fake.GetPrivateDataMetadataByHashStub = stub 675 } 676 677 func (fake *QueryExecutor) GetPrivateDataMetadataByHashArgsForCall(i int) (string, string, []byte) { 678 fake.getPrivateDataMetadataByHashMutex.RLock() 679 defer fake.getPrivateDataMetadataByHashMutex.RUnlock() 680 argsForCall := fake.getPrivateDataMetadataByHashArgsForCall[i] 681 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 682 } 683 684 func (fake *QueryExecutor) GetPrivateDataMetadataByHashReturns(result1 map[string][]byte, result2 error) { 685 fake.getPrivateDataMetadataByHashMutex.Lock() 686 defer fake.getPrivateDataMetadataByHashMutex.Unlock() 687 fake.GetPrivateDataMetadataByHashStub = nil 688 fake.getPrivateDataMetadataByHashReturns = struct { 689 result1 map[string][]byte 690 result2 error 691 }{result1, result2} 692 } 693 694 func (fake *QueryExecutor) GetPrivateDataMetadataByHashReturnsOnCall(i int, result1 map[string][]byte, result2 error) { 695 fake.getPrivateDataMetadataByHashMutex.Lock() 696 defer fake.getPrivateDataMetadataByHashMutex.Unlock() 697 fake.GetPrivateDataMetadataByHashStub = nil 698 if fake.getPrivateDataMetadataByHashReturnsOnCall == nil { 699 fake.getPrivateDataMetadataByHashReturnsOnCall = make(map[int]struct { 700 result1 map[string][]byte 701 result2 error 702 }) 703 } 704 fake.getPrivateDataMetadataByHashReturnsOnCall[i] = struct { 705 result1 map[string][]byte 706 result2 error 707 }{result1, result2} 708 } 709 710 func (fake *QueryExecutor) GetPrivateDataMultipleKeys(arg1 string, arg2 string, arg3 []string) ([][]byte, error) { 711 var arg3Copy []string 712 if arg3 != nil { 713 arg3Copy = make([]string, len(arg3)) 714 copy(arg3Copy, arg3) 715 } 716 fake.getPrivateDataMultipleKeysMutex.Lock() 717 ret, specificReturn := fake.getPrivateDataMultipleKeysReturnsOnCall[len(fake.getPrivateDataMultipleKeysArgsForCall)] 718 fake.getPrivateDataMultipleKeysArgsForCall = append(fake.getPrivateDataMultipleKeysArgsForCall, struct { 719 arg1 string 720 arg2 string 721 arg3 []string 722 }{arg1, arg2, arg3Copy}) 723 fake.recordInvocation("GetPrivateDataMultipleKeys", []interface{}{arg1, arg2, arg3Copy}) 724 fake.getPrivateDataMultipleKeysMutex.Unlock() 725 if fake.GetPrivateDataMultipleKeysStub != nil { 726 return fake.GetPrivateDataMultipleKeysStub(arg1, arg2, arg3) 727 } 728 if specificReturn { 729 return ret.result1, ret.result2 730 } 731 fakeReturns := fake.getPrivateDataMultipleKeysReturns 732 return fakeReturns.result1, fakeReturns.result2 733 } 734 735 func (fake *QueryExecutor) GetPrivateDataMultipleKeysCallCount() int { 736 fake.getPrivateDataMultipleKeysMutex.RLock() 737 defer fake.getPrivateDataMultipleKeysMutex.RUnlock() 738 return len(fake.getPrivateDataMultipleKeysArgsForCall) 739 } 740 741 func (fake *QueryExecutor) GetPrivateDataMultipleKeysCalls(stub func(string, string, []string) ([][]byte, error)) { 742 fake.getPrivateDataMultipleKeysMutex.Lock() 743 defer fake.getPrivateDataMultipleKeysMutex.Unlock() 744 fake.GetPrivateDataMultipleKeysStub = stub 745 } 746 747 func (fake *QueryExecutor) GetPrivateDataMultipleKeysArgsForCall(i int) (string, string, []string) { 748 fake.getPrivateDataMultipleKeysMutex.RLock() 749 defer fake.getPrivateDataMultipleKeysMutex.RUnlock() 750 argsForCall := fake.getPrivateDataMultipleKeysArgsForCall[i] 751 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 752 } 753 754 func (fake *QueryExecutor) GetPrivateDataMultipleKeysReturns(result1 [][]byte, result2 error) { 755 fake.getPrivateDataMultipleKeysMutex.Lock() 756 defer fake.getPrivateDataMultipleKeysMutex.Unlock() 757 fake.GetPrivateDataMultipleKeysStub = nil 758 fake.getPrivateDataMultipleKeysReturns = struct { 759 result1 [][]byte 760 result2 error 761 }{result1, result2} 762 } 763 764 func (fake *QueryExecutor) GetPrivateDataMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error) { 765 fake.getPrivateDataMultipleKeysMutex.Lock() 766 defer fake.getPrivateDataMultipleKeysMutex.Unlock() 767 fake.GetPrivateDataMultipleKeysStub = nil 768 if fake.getPrivateDataMultipleKeysReturnsOnCall == nil { 769 fake.getPrivateDataMultipleKeysReturnsOnCall = make(map[int]struct { 770 result1 [][]byte 771 result2 error 772 }) 773 } 774 fake.getPrivateDataMultipleKeysReturnsOnCall[i] = struct { 775 result1 [][]byte 776 result2 error 777 }{result1, result2} 778 } 779 780 func (fake *QueryExecutor) GetPrivateDataRangeScanIterator(arg1 string, arg2 string, arg3 string, arg4 string) (ledgera.ResultsIterator, error) { 781 fake.getPrivateDataRangeScanIteratorMutex.Lock() 782 ret, specificReturn := fake.getPrivateDataRangeScanIteratorReturnsOnCall[len(fake.getPrivateDataRangeScanIteratorArgsForCall)] 783 fake.getPrivateDataRangeScanIteratorArgsForCall = append(fake.getPrivateDataRangeScanIteratorArgsForCall, struct { 784 arg1 string 785 arg2 string 786 arg3 string 787 arg4 string 788 }{arg1, arg2, arg3, arg4}) 789 fake.recordInvocation("GetPrivateDataRangeScanIterator", []interface{}{arg1, arg2, arg3, arg4}) 790 fake.getPrivateDataRangeScanIteratorMutex.Unlock() 791 if fake.GetPrivateDataRangeScanIteratorStub != nil { 792 return fake.GetPrivateDataRangeScanIteratorStub(arg1, arg2, arg3, arg4) 793 } 794 if specificReturn { 795 return ret.result1, ret.result2 796 } 797 fakeReturns := fake.getPrivateDataRangeScanIteratorReturns 798 return fakeReturns.result1, fakeReturns.result2 799 } 800 801 func (fake *QueryExecutor) GetPrivateDataRangeScanIteratorCallCount() int { 802 fake.getPrivateDataRangeScanIteratorMutex.RLock() 803 defer fake.getPrivateDataRangeScanIteratorMutex.RUnlock() 804 return len(fake.getPrivateDataRangeScanIteratorArgsForCall) 805 } 806 807 func (fake *QueryExecutor) GetPrivateDataRangeScanIteratorCalls(stub func(string, string, string, string) (ledgera.ResultsIterator, error)) { 808 fake.getPrivateDataRangeScanIteratorMutex.Lock() 809 defer fake.getPrivateDataRangeScanIteratorMutex.Unlock() 810 fake.GetPrivateDataRangeScanIteratorStub = stub 811 } 812 813 func (fake *QueryExecutor) GetPrivateDataRangeScanIteratorArgsForCall(i int) (string, string, string, string) { 814 fake.getPrivateDataRangeScanIteratorMutex.RLock() 815 defer fake.getPrivateDataRangeScanIteratorMutex.RUnlock() 816 argsForCall := fake.getPrivateDataRangeScanIteratorArgsForCall[i] 817 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 818 } 819 820 func (fake *QueryExecutor) GetPrivateDataRangeScanIteratorReturns(result1 ledgera.ResultsIterator, result2 error) { 821 fake.getPrivateDataRangeScanIteratorMutex.Lock() 822 defer fake.getPrivateDataRangeScanIteratorMutex.Unlock() 823 fake.GetPrivateDataRangeScanIteratorStub = nil 824 fake.getPrivateDataRangeScanIteratorReturns = struct { 825 result1 ledgera.ResultsIterator 826 result2 error 827 }{result1, result2} 828 } 829 830 func (fake *QueryExecutor) GetPrivateDataRangeScanIteratorReturnsOnCall(i int, result1 ledgera.ResultsIterator, result2 error) { 831 fake.getPrivateDataRangeScanIteratorMutex.Lock() 832 defer fake.getPrivateDataRangeScanIteratorMutex.Unlock() 833 fake.GetPrivateDataRangeScanIteratorStub = nil 834 if fake.getPrivateDataRangeScanIteratorReturnsOnCall == nil { 835 fake.getPrivateDataRangeScanIteratorReturnsOnCall = make(map[int]struct { 836 result1 ledgera.ResultsIterator 837 result2 error 838 }) 839 } 840 fake.getPrivateDataRangeScanIteratorReturnsOnCall[i] = struct { 841 result1 ledgera.ResultsIterator 842 result2 error 843 }{result1, result2} 844 } 845 846 func (fake *QueryExecutor) GetState(arg1 string, arg2 string) ([]byte, error) { 847 fake.getStateMutex.Lock() 848 ret, specificReturn := fake.getStateReturnsOnCall[len(fake.getStateArgsForCall)] 849 fake.getStateArgsForCall = append(fake.getStateArgsForCall, struct { 850 arg1 string 851 arg2 string 852 }{arg1, arg2}) 853 fake.recordInvocation("GetState", []interface{}{arg1, arg2}) 854 fake.getStateMutex.Unlock() 855 if fake.GetStateStub != nil { 856 return fake.GetStateStub(arg1, arg2) 857 } 858 if specificReturn { 859 return ret.result1, ret.result2 860 } 861 fakeReturns := fake.getStateReturns 862 return fakeReturns.result1, fakeReturns.result2 863 } 864 865 func (fake *QueryExecutor) GetStateCallCount() int { 866 fake.getStateMutex.RLock() 867 defer fake.getStateMutex.RUnlock() 868 return len(fake.getStateArgsForCall) 869 } 870 871 func (fake *QueryExecutor) GetStateCalls(stub func(string, string) ([]byte, error)) { 872 fake.getStateMutex.Lock() 873 defer fake.getStateMutex.Unlock() 874 fake.GetStateStub = stub 875 } 876 877 func (fake *QueryExecutor) GetStateArgsForCall(i int) (string, string) { 878 fake.getStateMutex.RLock() 879 defer fake.getStateMutex.RUnlock() 880 argsForCall := fake.getStateArgsForCall[i] 881 return argsForCall.arg1, argsForCall.arg2 882 } 883 884 func (fake *QueryExecutor) GetStateReturns(result1 []byte, result2 error) { 885 fake.getStateMutex.Lock() 886 defer fake.getStateMutex.Unlock() 887 fake.GetStateStub = nil 888 fake.getStateReturns = struct { 889 result1 []byte 890 result2 error 891 }{result1, result2} 892 } 893 894 func (fake *QueryExecutor) GetStateReturnsOnCall(i int, result1 []byte, result2 error) { 895 fake.getStateMutex.Lock() 896 defer fake.getStateMutex.Unlock() 897 fake.GetStateStub = nil 898 if fake.getStateReturnsOnCall == nil { 899 fake.getStateReturnsOnCall = make(map[int]struct { 900 result1 []byte 901 result2 error 902 }) 903 } 904 fake.getStateReturnsOnCall[i] = struct { 905 result1 []byte 906 result2 error 907 }{result1, result2} 908 } 909 910 func (fake *QueryExecutor) GetStateMetadata(arg1 string, arg2 string) (map[string][]byte, error) { 911 fake.getStateMetadataMutex.Lock() 912 ret, specificReturn := fake.getStateMetadataReturnsOnCall[len(fake.getStateMetadataArgsForCall)] 913 fake.getStateMetadataArgsForCall = append(fake.getStateMetadataArgsForCall, struct { 914 arg1 string 915 arg2 string 916 }{arg1, arg2}) 917 fake.recordInvocation("GetStateMetadata", []interface{}{arg1, arg2}) 918 fake.getStateMetadataMutex.Unlock() 919 if fake.GetStateMetadataStub != nil { 920 return fake.GetStateMetadataStub(arg1, arg2) 921 } 922 if specificReturn { 923 return ret.result1, ret.result2 924 } 925 fakeReturns := fake.getStateMetadataReturns 926 return fakeReturns.result1, fakeReturns.result2 927 } 928 929 func (fake *QueryExecutor) GetStateMetadataCallCount() int { 930 fake.getStateMetadataMutex.RLock() 931 defer fake.getStateMetadataMutex.RUnlock() 932 return len(fake.getStateMetadataArgsForCall) 933 } 934 935 func (fake *QueryExecutor) GetStateMetadataCalls(stub func(string, string) (map[string][]byte, error)) { 936 fake.getStateMetadataMutex.Lock() 937 defer fake.getStateMetadataMutex.Unlock() 938 fake.GetStateMetadataStub = stub 939 } 940 941 func (fake *QueryExecutor) GetStateMetadataArgsForCall(i int) (string, string) { 942 fake.getStateMetadataMutex.RLock() 943 defer fake.getStateMetadataMutex.RUnlock() 944 argsForCall := fake.getStateMetadataArgsForCall[i] 945 return argsForCall.arg1, argsForCall.arg2 946 } 947 948 func (fake *QueryExecutor) GetStateMetadataReturns(result1 map[string][]byte, result2 error) { 949 fake.getStateMetadataMutex.Lock() 950 defer fake.getStateMetadataMutex.Unlock() 951 fake.GetStateMetadataStub = nil 952 fake.getStateMetadataReturns = struct { 953 result1 map[string][]byte 954 result2 error 955 }{result1, result2} 956 } 957 958 func (fake *QueryExecutor) GetStateMetadataReturnsOnCall(i int, result1 map[string][]byte, result2 error) { 959 fake.getStateMetadataMutex.Lock() 960 defer fake.getStateMetadataMutex.Unlock() 961 fake.GetStateMetadataStub = nil 962 if fake.getStateMetadataReturnsOnCall == nil { 963 fake.getStateMetadataReturnsOnCall = make(map[int]struct { 964 result1 map[string][]byte 965 result2 error 966 }) 967 } 968 fake.getStateMetadataReturnsOnCall[i] = struct { 969 result1 map[string][]byte 970 result2 error 971 }{result1, result2} 972 } 973 974 func (fake *QueryExecutor) GetStateMultipleKeys(arg1 string, arg2 []string) ([][]byte, error) { 975 var arg2Copy []string 976 if arg2 != nil { 977 arg2Copy = make([]string, len(arg2)) 978 copy(arg2Copy, arg2) 979 } 980 fake.getStateMultipleKeysMutex.Lock() 981 ret, specificReturn := fake.getStateMultipleKeysReturnsOnCall[len(fake.getStateMultipleKeysArgsForCall)] 982 fake.getStateMultipleKeysArgsForCall = append(fake.getStateMultipleKeysArgsForCall, struct { 983 arg1 string 984 arg2 []string 985 }{arg1, arg2Copy}) 986 fake.recordInvocation("GetStateMultipleKeys", []interface{}{arg1, arg2Copy}) 987 fake.getStateMultipleKeysMutex.Unlock() 988 if fake.GetStateMultipleKeysStub != nil { 989 return fake.GetStateMultipleKeysStub(arg1, arg2) 990 } 991 if specificReturn { 992 return ret.result1, ret.result2 993 } 994 fakeReturns := fake.getStateMultipleKeysReturns 995 return fakeReturns.result1, fakeReturns.result2 996 } 997 998 func (fake *QueryExecutor) GetStateMultipleKeysCallCount() int { 999 fake.getStateMultipleKeysMutex.RLock() 1000 defer fake.getStateMultipleKeysMutex.RUnlock() 1001 return len(fake.getStateMultipleKeysArgsForCall) 1002 } 1003 1004 func (fake *QueryExecutor) GetStateMultipleKeysCalls(stub func(string, []string) ([][]byte, error)) { 1005 fake.getStateMultipleKeysMutex.Lock() 1006 defer fake.getStateMultipleKeysMutex.Unlock() 1007 fake.GetStateMultipleKeysStub = stub 1008 } 1009 1010 func (fake *QueryExecutor) GetStateMultipleKeysArgsForCall(i int) (string, []string) { 1011 fake.getStateMultipleKeysMutex.RLock() 1012 defer fake.getStateMultipleKeysMutex.RUnlock() 1013 argsForCall := fake.getStateMultipleKeysArgsForCall[i] 1014 return argsForCall.arg1, argsForCall.arg2 1015 } 1016 1017 func (fake *QueryExecutor) GetStateMultipleKeysReturns(result1 [][]byte, result2 error) { 1018 fake.getStateMultipleKeysMutex.Lock() 1019 defer fake.getStateMultipleKeysMutex.Unlock() 1020 fake.GetStateMultipleKeysStub = nil 1021 fake.getStateMultipleKeysReturns = struct { 1022 result1 [][]byte 1023 result2 error 1024 }{result1, result2} 1025 } 1026 1027 func (fake *QueryExecutor) GetStateMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error) { 1028 fake.getStateMultipleKeysMutex.Lock() 1029 defer fake.getStateMultipleKeysMutex.Unlock() 1030 fake.GetStateMultipleKeysStub = nil 1031 if fake.getStateMultipleKeysReturnsOnCall == nil { 1032 fake.getStateMultipleKeysReturnsOnCall = make(map[int]struct { 1033 result1 [][]byte 1034 result2 error 1035 }) 1036 } 1037 fake.getStateMultipleKeysReturnsOnCall[i] = struct { 1038 result1 [][]byte 1039 result2 error 1040 }{result1, result2} 1041 } 1042 1043 func (fake *QueryExecutor) GetStateRangeScanIterator(arg1 string, arg2 string, arg3 string) (ledgera.ResultsIterator, error) { 1044 fake.getStateRangeScanIteratorMutex.Lock() 1045 ret, specificReturn := fake.getStateRangeScanIteratorReturnsOnCall[len(fake.getStateRangeScanIteratorArgsForCall)] 1046 fake.getStateRangeScanIteratorArgsForCall = append(fake.getStateRangeScanIteratorArgsForCall, struct { 1047 arg1 string 1048 arg2 string 1049 arg3 string 1050 }{arg1, arg2, arg3}) 1051 fake.recordInvocation("GetStateRangeScanIterator", []interface{}{arg1, arg2, arg3}) 1052 fake.getStateRangeScanIteratorMutex.Unlock() 1053 if fake.GetStateRangeScanIteratorStub != nil { 1054 return fake.GetStateRangeScanIteratorStub(arg1, arg2, arg3) 1055 } 1056 if specificReturn { 1057 return ret.result1, ret.result2 1058 } 1059 fakeReturns := fake.getStateRangeScanIteratorReturns 1060 return fakeReturns.result1, fakeReturns.result2 1061 } 1062 1063 func (fake *QueryExecutor) GetStateRangeScanIteratorCallCount() int { 1064 fake.getStateRangeScanIteratorMutex.RLock() 1065 defer fake.getStateRangeScanIteratorMutex.RUnlock() 1066 return len(fake.getStateRangeScanIteratorArgsForCall) 1067 } 1068 1069 func (fake *QueryExecutor) GetStateRangeScanIteratorCalls(stub func(string, string, string) (ledgera.ResultsIterator, error)) { 1070 fake.getStateRangeScanIteratorMutex.Lock() 1071 defer fake.getStateRangeScanIteratorMutex.Unlock() 1072 fake.GetStateRangeScanIteratorStub = stub 1073 } 1074 1075 func (fake *QueryExecutor) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string) { 1076 fake.getStateRangeScanIteratorMutex.RLock() 1077 defer fake.getStateRangeScanIteratorMutex.RUnlock() 1078 argsForCall := fake.getStateRangeScanIteratorArgsForCall[i] 1079 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 1080 } 1081 1082 func (fake *QueryExecutor) GetStateRangeScanIteratorReturns(result1 ledgera.ResultsIterator, result2 error) { 1083 fake.getStateRangeScanIteratorMutex.Lock() 1084 defer fake.getStateRangeScanIteratorMutex.Unlock() 1085 fake.GetStateRangeScanIteratorStub = nil 1086 fake.getStateRangeScanIteratorReturns = struct { 1087 result1 ledgera.ResultsIterator 1088 result2 error 1089 }{result1, result2} 1090 } 1091 1092 func (fake *QueryExecutor) GetStateRangeScanIteratorReturnsOnCall(i int, result1 ledgera.ResultsIterator, result2 error) { 1093 fake.getStateRangeScanIteratorMutex.Lock() 1094 defer fake.getStateRangeScanIteratorMutex.Unlock() 1095 fake.GetStateRangeScanIteratorStub = nil 1096 if fake.getStateRangeScanIteratorReturnsOnCall == nil { 1097 fake.getStateRangeScanIteratorReturnsOnCall = make(map[int]struct { 1098 result1 ledgera.ResultsIterator 1099 result2 error 1100 }) 1101 } 1102 fake.getStateRangeScanIteratorReturnsOnCall[i] = struct { 1103 result1 ledgera.ResultsIterator 1104 result2 error 1105 }{result1, result2} 1106 } 1107 1108 func (fake *QueryExecutor) GetStateRangeScanIteratorWithMetadata(arg1 string, arg2 string, arg3 string, arg4 map[string]interface{}) (ledger.QueryResultsIterator, error) { 1109 fake.getStateRangeScanIteratorWithMetadataMutex.Lock() 1110 ret, specificReturn := fake.getStateRangeScanIteratorWithMetadataReturnsOnCall[len(fake.getStateRangeScanIteratorWithMetadataArgsForCall)] 1111 fake.getStateRangeScanIteratorWithMetadataArgsForCall = append(fake.getStateRangeScanIteratorWithMetadataArgsForCall, struct { 1112 arg1 string 1113 arg2 string 1114 arg3 string 1115 arg4 map[string]interface{} 1116 }{arg1, arg2, arg3, arg4}) 1117 fake.recordInvocation("GetStateRangeScanIteratorWithMetadata", []interface{}{arg1, arg2, arg3, arg4}) 1118 fake.getStateRangeScanIteratorWithMetadataMutex.Unlock() 1119 if fake.GetStateRangeScanIteratorWithMetadataStub != nil { 1120 return fake.GetStateRangeScanIteratorWithMetadataStub(arg1, arg2, arg3, arg4) 1121 } 1122 if specificReturn { 1123 return ret.result1, ret.result2 1124 } 1125 fakeReturns := fake.getStateRangeScanIteratorWithMetadataReturns 1126 return fakeReturns.result1, fakeReturns.result2 1127 } 1128 1129 func (fake *QueryExecutor) GetStateRangeScanIteratorWithMetadataCallCount() int { 1130 fake.getStateRangeScanIteratorWithMetadataMutex.RLock() 1131 defer fake.getStateRangeScanIteratorWithMetadataMutex.RUnlock() 1132 return len(fake.getStateRangeScanIteratorWithMetadataArgsForCall) 1133 } 1134 1135 func (fake *QueryExecutor) GetStateRangeScanIteratorWithMetadataCalls(stub func(string, string, string, map[string]interface{}) (ledger.QueryResultsIterator, error)) { 1136 fake.getStateRangeScanIteratorWithMetadataMutex.Lock() 1137 defer fake.getStateRangeScanIteratorWithMetadataMutex.Unlock() 1138 fake.GetStateRangeScanIteratorWithMetadataStub = stub 1139 } 1140 1141 func (fake *QueryExecutor) GetStateRangeScanIteratorWithMetadataArgsForCall(i int) (string, string, string, map[string]interface{}) { 1142 fake.getStateRangeScanIteratorWithMetadataMutex.RLock() 1143 defer fake.getStateRangeScanIteratorWithMetadataMutex.RUnlock() 1144 argsForCall := fake.getStateRangeScanIteratorWithMetadataArgsForCall[i] 1145 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 1146 } 1147 1148 func (fake *QueryExecutor) GetStateRangeScanIteratorWithMetadataReturns(result1 ledger.QueryResultsIterator, result2 error) { 1149 fake.getStateRangeScanIteratorWithMetadataMutex.Lock() 1150 defer fake.getStateRangeScanIteratorWithMetadataMutex.Unlock() 1151 fake.GetStateRangeScanIteratorWithMetadataStub = nil 1152 fake.getStateRangeScanIteratorWithMetadataReturns = struct { 1153 result1 ledger.QueryResultsIterator 1154 result2 error 1155 }{result1, result2} 1156 } 1157 1158 func (fake *QueryExecutor) GetStateRangeScanIteratorWithMetadataReturnsOnCall(i int, result1 ledger.QueryResultsIterator, result2 error) { 1159 fake.getStateRangeScanIteratorWithMetadataMutex.Lock() 1160 defer fake.getStateRangeScanIteratorWithMetadataMutex.Unlock() 1161 fake.GetStateRangeScanIteratorWithMetadataStub = nil 1162 if fake.getStateRangeScanIteratorWithMetadataReturnsOnCall == nil { 1163 fake.getStateRangeScanIteratorWithMetadataReturnsOnCall = make(map[int]struct { 1164 result1 ledger.QueryResultsIterator 1165 result2 error 1166 }) 1167 } 1168 fake.getStateRangeScanIteratorWithMetadataReturnsOnCall[i] = struct { 1169 result1 ledger.QueryResultsIterator 1170 result2 error 1171 }{result1, result2} 1172 } 1173 1174 func (fake *QueryExecutor) Invocations() map[string][][]interface{} { 1175 fake.invocationsMutex.RLock() 1176 defer fake.invocationsMutex.RUnlock() 1177 fake.doneMutex.RLock() 1178 defer fake.doneMutex.RUnlock() 1179 fake.executeQueryMutex.RLock() 1180 defer fake.executeQueryMutex.RUnlock() 1181 fake.executeQueryOnPrivateDataMutex.RLock() 1182 defer fake.executeQueryOnPrivateDataMutex.RUnlock() 1183 fake.executeQueryWithMetadataMutex.RLock() 1184 defer fake.executeQueryWithMetadataMutex.RUnlock() 1185 fake.getPrivateDataMutex.RLock() 1186 defer fake.getPrivateDataMutex.RUnlock() 1187 fake.getPrivateDataHashMutex.RLock() 1188 defer fake.getPrivateDataHashMutex.RUnlock() 1189 fake.getPrivateDataMetadataMutex.RLock() 1190 defer fake.getPrivateDataMetadataMutex.RUnlock() 1191 fake.getPrivateDataMetadataByHashMutex.RLock() 1192 defer fake.getPrivateDataMetadataByHashMutex.RUnlock() 1193 fake.getPrivateDataMultipleKeysMutex.RLock() 1194 defer fake.getPrivateDataMultipleKeysMutex.RUnlock() 1195 fake.getPrivateDataRangeScanIteratorMutex.RLock() 1196 defer fake.getPrivateDataRangeScanIteratorMutex.RUnlock() 1197 fake.getStateMutex.RLock() 1198 defer fake.getStateMutex.RUnlock() 1199 fake.getStateMetadataMutex.RLock() 1200 defer fake.getStateMetadataMutex.RUnlock() 1201 fake.getStateMultipleKeysMutex.RLock() 1202 defer fake.getStateMultipleKeysMutex.RUnlock() 1203 fake.getStateRangeScanIteratorMutex.RLock() 1204 defer fake.getStateRangeScanIteratorMutex.RUnlock() 1205 fake.getStateRangeScanIteratorWithMetadataMutex.RLock() 1206 defer fake.getStateRangeScanIteratorWithMetadataMutex.RUnlock() 1207 copiedInvocations := map[string][][]interface{}{} 1208 for key, value := range fake.invocations { 1209 copiedInvocations[key] = value 1210 } 1211 return copiedInvocations 1212 } 1213 1214 func (fake *QueryExecutor) recordInvocation(key string, args []interface{}) { 1215 fake.invocationsMutex.Lock() 1216 defer fake.invocationsMutex.Unlock() 1217 if fake.invocations == nil { 1218 fake.invocations = map[string][][]interface{}{} 1219 } 1220 if fake.invocations[key] == nil { 1221 fake.invocations[key] = [][]interface{}{} 1222 } 1223 fake.invocations[key] = append(fake.invocations[key], args) 1224 } 1225 1226 var _ ledger.QueryExecutor = new(QueryExecutor)