github.com/yacovm/fabric@v2.0.0-alpha.0.20191128145320-c5d4087dc723+incompatible/core/scc/lscc/mock/chaincode_stub.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package mock 3 4 import ( 5 "sync" 6 7 "github.com/golang/protobuf/ptypes/timestamp" 8 "github.com/hyperledger/fabric-chaincode-go/shim" 9 "github.com/hyperledger/fabric-protos-go/peer" 10 ) 11 12 type ChaincodeStub struct { 13 CreateCompositeKeyStub func(string, []string) (string, error) 14 createCompositeKeyMutex sync.RWMutex 15 createCompositeKeyArgsForCall []struct { 16 arg1 string 17 arg2 []string 18 } 19 createCompositeKeyReturns struct { 20 result1 string 21 result2 error 22 } 23 createCompositeKeyReturnsOnCall map[int]struct { 24 result1 string 25 result2 error 26 } 27 DelPrivateDataStub func(string, string) error 28 delPrivateDataMutex sync.RWMutex 29 delPrivateDataArgsForCall []struct { 30 arg1 string 31 arg2 string 32 } 33 delPrivateDataReturns struct { 34 result1 error 35 } 36 delPrivateDataReturnsOnCall map[int]struct { 37 result1 error 38 } 39 DelStateStub func(string) error 40 delStateMutex sync.RWMutex 41 delStateArgsForCall []struct { 42 arg1 string 43 } 44 delStateReturns struct { 45 result1 error 46 } 47 delStateReturnsOnCall map[int]struct { 48 result1 error 49 } 50 GetArgsStub func() [][]byte 51 getArgsMutex sync.RWMutex 52 getArgsArgsForCall []struct { 53 } 54 getArgsReturns struct { 55 result1 [][]byte 56 } 57 getArgsReturnsOnCall map[int]struct { 58 result1 [][]byte 59 } 60 GetArgsSliceStub func() ([]byte, error) 61 getArgsSliceMutex sync.RWMutex 62 getArgsSliceArgsForCall []struct { 63 } 64 getArgsSliceReturns struct { 65 result1 []byte 66 result2 error 67 } 68 getArgsSliceReturnsOnCall map[int]struct { 69 result1 []byte 70 result2 error 71 } 72 GetBindingStub func() ([]byte, error) 73 getBindingMutex sync.RWMutex 74 getBindingArgsForCall []struct { 75 } 76 getBindingReturns struct { 77 result1 []byte 78 result2 error 79 } 80 getBindingReturnsOnCall map[int]struct { 81 result1 []byte 82 result2 error 83 } 84 GetChannelIDStub func() string 85 getChannelIDMutex sync.RWMutex 86 getChannelIDArgsForCall []struct { 87 } 88 getChannelIDReturns struct { 89 result1 string 90 } 91 getChannelIDReturnsOnCall map[int]struct { 92 result1 string 93 } 94 GetCreatorStub func() ([]byte, error) 95 getCreatorMutex sync.RWMutex 96 getCreatorArgsForCall []struct { 97 } 98 getCreatorReturns struct { 99 result1 []byte 100 result2 error 101 } 102 getCreatorReturnsOnCall map[int]struct { 103 result1 []byte 104 result2 error 105 } 106 GetDecorationsStub func() map[string][]byte 107 getDecorationsMutex sync.RWMutex 108 getDecorationsArgsForCall []struct { 109 } 110 getDecorationsReturns struct { 111 result1 map[string][]byte 112 } 113 getDecorationsReturnsOnCall map[int]struct { 114 result1 map[string][]byte 115 } 116 GetFunctionAndParametersStub func() (string, []string) 117 getFunctionAndParametersMutex sync.RWMutex 118 getFunctionAndParametersArgsForCall []struct { 119 } 120 getFunctionAndParametersReturns struct { 121 result1 string 122 result2 []string 123 } 124 getFunctionAndParametersReturnsOnCall map[int]struct { 125 result1 string 126 result2 []string 127 } 128 GetHistoryForKeyStub func(string) (shim.HistoryQueryIteratorInterface, error) 129 getHistoryForKeyMutex sync.RWMutex 130 getHistoryForKeyArgsForCall []struct { 131 arg1 string 132 } 133 getHistoryForKeyReturns struct { 134 result1 shim.HistoryQueryIteratorInterface 135 result2 error 136 } 137 getHistoryForKeyReturnsOnCall map[int]struct { 138 result1 shim.HistoryQueryIteratorInterface 139 result2 error 140 } 141 GetPrivateDataStub func(string, string) ([]byte, error) 142 getPrivateDataMutex sync.RWMutex 143 getPrivateDataArgsForCall []struct { 144 arg1 string 145 arg2 string 146 } 147 getPrivateDataReturns struct { 148 result1 []byte 149 result2 error 150 } 151 getPrivateDataReturnsOnCall map[int]struct { 152 result1 []byte 153 result2 error 154 } 155 GetPrivateDataByPartialCompositeKeyStub func(string, string, []string) (shim.StateQueryIteratorInterface, error) 156 getPrivateDataByPartialCompositeKeyMutex sync.RWMutex 157 getPrivateDataByPartialCompositeKeyArgsForCall []struct { 158 arg1 string 159 arg2 string 160 arg3 []string 161 } 162 getPrivateDataByPartialCompositeKeyReturns struct { 163 result1 shim.StateQueryIteratorInterface 164 result2 error 165 } 166 getPrivateDataByPartialCompositeKeyReturnsOnCall map[int]struct { 167 result1 shim.StateQueryIteratorInterface 168 result2 error 169 } 170 GetPrivateDataByRangeStub func(string, string, string) (shim.StateQueryIteratorInterface, error) 171 getPrivateDataByRangeMutex sync.RWMutex 172 getPrivateDataByRangeArgsForCall []struct { 173 arg1 string 174 arg2 string 175 arg3 string 176 } 177 getPrivateDataByRangeReturns struct { 178 result1 shim.StateQueryIteratorInterface 179 result2 error 180 } 181 getPrivateDataByRangeReturnsOnCall map[int]struct { 182 result1 shim.StateQueryIteratorInterface 183 result2 error 184 } 185 GetPrivateDataHashStub func(string, string) ([]byte, error) 186 getPrivateDataHashMutex sync.RWMutex 187 getPrivateDataHashArgsForCall []struct { 188 arg1 string 189 arg2 string 190 } 191 getPrivateDataHashReturns struct { 192 result1 []byte 193 result2 error 194 } 195 getPrivateDataHashReturnsOnCall map[int]struct { 196 result1 []byte 197 result2 error 198 } 199 GetPrivateDataQueryResultStub func(string, string) (shim.StateQueryIteratorInterface, error) 200 getPrivateDataQueryResultMutex sync.RWMutex 201 getPrivateDataQueryResultArgsForCall []struct { 202 arg1 string 203 arg2 string 204 } 205 getPrivateDataQueryResultReturns struct { 206 result1 shim.StateQueryIteratorInterface 207 result2 error 208 } 209 getPrivateDataQueryResultReturnsOnCall map[int]struct { 210 result1 shim.StateQueryIteratorInterface 211 result2 error 212 } 213 GetPrivateDataValidationParameterStub func(string, string) ([]byte, error) 214 getPrivateDataValidationParameterMutex sync.RWMutex 215 getPrivateDataValidationParameterArgsForCall []struct { 216 arg1 string 217 arg2 string 218 } 219 getPrivateDataValidationParameterReturns struct { 220 result1 []byte 221 result2 error 222 } 223 getPrivateDataValidationParameterReturnsOnCall map[int]struct { 224 result1 []byte 225 result2 error 226 } 227 GetQueryResultStub func(string) (shim.StateQueryIteratorInterface, error) 228 getQueryResultMutex sync.RWMutex 229 getQueryResultArgsForCall []struct { 230 arg1 string 231 } 232 getQueryResultReturns struct { 233 result1 shim.StateQueryIteratorInterface 234 result2 error 235 } 236 getQueryResultReturnsOnCall map[int]struct { 237 result1 shim.StateQueryIteratorInterface 238 result2 error 239 } 240 GetQueryResultWithPaginationStub func(string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error) 241 getQueryResultWithPaginationMutex sync.RWMutex 242 getQueryResultWithPaginationArgsForCall []struct { 243 arg1 string 244 arg2 int32 245 arg3 string 246 } 247 getQueryResultWithPaginationReturns struct { 248 result1 shim.StateQueryIteratorInterface 249 result2 *peer.QueryResponseMetadata 250 result3 error 251 } 252 getQueryResultWithPaginationReturnsOnCall map[int]struct { 253 result1 shim.StateQueryIteratorInterface 254 result2 *peer.QueryResponseMetadata 255 result3 error 256 } 257 GetSignedProposalStub func() (*peer.SignedProposal, error) 258 getSignedProposalMutex sync.RWMutex 259 getSignedProposalArgsForCall []struct { 260 } 261 getSignedProposalReturns struct { 262 result1 *peer.SignedProposal 263 result2 error 264 } 265 getSignedProposalReturnsOnCall map[int]struct { 266 result1 *peer.SignedProposal 267 result2 error 268 } 269 GetStateStub func(string) ([]byte, error) 270 getStateMutex sync.RWMutex 271 getStateArgsForCall []struct { 272 arg1 string 273 } 274 getStateReturns struct { 275 result1 []byte 276 result2 error 277 } 278 getStateReturnsOnCall map[int]struct { 279 result1 []byte 280 result2 error 281 } 282 GetStateByPartialCompositeKeyStub func(string, []string) (shim.StateQueryIteratorInterface, error) 283 getStateByPartialCompositeKeyMutex sync.RWMutex 284 getStateByPartialCompositeKeyArgsForCall []struct { 285 arg1 string 286 arg2 []string 287 } 288 getStateByPartialCompositeKeyReturns struct { 289 result1 shim.StateQueryIteratorInterface 290 result2 error 291 } 292 getStateByPartialCompositeKeyReturnsOnCall map[int]struct { 293 result1 shim.StateQueryIteratorInterface 294 result2 error 295 } 296 GetStateByPartialCompositeKeyWithPaginationStub func(string, []string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error) 297 getStateByPartialCompositeKeyWithPaginationMutex sync.RWMutex 298 getStateByPartialCompositeKeyWithPaginationArgsForCall []struct { 299 arg1 string 300 arg2 []string 301 arg3 int32 302 arg4 string 303 } 304 getStateByPartialCompositeKeyWithPaginationReturns struct { 305 result1 shim.StateQueryIteratorInterface 306 result2 *peer.QueryResponseMetadata 307 result3 error 308 } 309 getStateByPartialCompositeKeyWithPaginationReturnsOnCall map[int]struct { 310 result1 shim.StateQueryIteratorInterface 311 result2 *peer.QueryResponseMetadata 312 result3 error 313 } 314 GetStateByRangeStub func(string, string) (shim.StateQueryIteratorInterface, error) 315 getStateByRangeMutex sync.RWMutex 316 getStateByRangeArgsForCall []struct { 317 arg1 string 318 arg2 string 319 } 320 getStateByRangeReturns struct { 321 result1 shim.StateQueryIteratorInterface 322 result2 error 323 } 324 getStateByRangeReturnsOnCall map[int]struct { 325 result1 shim.StateQueryIteratorInterface 326 result2 error 327 } 328 GetStateByRangeWithPaginationStub func(string, string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error) 329 getStateByRangeWithPaginationMutex sync.RWMutex 330 getStateByRangeWithPaginationArgsForCall []struct { 331 arg1 string 332 arg2 string 333 arg3 int32 334 arg4 string 335 } 336 getStateByRangeWithPaginationReturns struct { 337 result1 shim.StateQueryIteratorInterface 338 result2 *peer.QueryResponseMetadata 339 result3 error 340 } 341 getStateByRangeWithPaginationReturnsOnCall map[int]struct { 342 result1 shim.StateQueryIteratorInterface 343 result2 *peer.QueryResponseMetadata 344 result3 error 345 } 346 GetStateValidationParameterStub func(string) ([]byte, error) 347 getStateValidationParameterMutex sync.RWMutex 348 getStateValidationParameterArgsForCall []struct { 349 arg1 string 350 } 351 getStateValidationParameterReturns struct { 352 result1 []byte 353 result2 error 354 } 355 getStateValidationParameterReturnsOnCall map[int]struct { 356 result1 []byte 357 result2 error 358 } 359 GetStringArgsStub func() []string 360 getStringArgsMutex sync.RWMutex 361 getStringArgsArgsForCall []struct { 362 } 363 getStringArgsReturns struct { 364 result1 []string 365 } 366 getStringArgsReturnsOnCall map[int]struct { 367 result1 []string 368 } 369 GetTransientStub func() (map[string][]byte, error) 370 getTransientMutex sync.RWMutex 371 getTransientArgsForCall []struct { 372 } 373 getTransientReturns struct { 374 result1 map[string][]byte 375 result2 error 376 } 377 getTransientReturnsOnCall map[int]struct { 378 result1 map[string][]byte 379 result2 error 380 } 381 GetTxIDStub func() string 382 getTxIDMutex sync.RWMutex 383 getTxIDArgsForCall []struct { 384 } 385 getTxIDReturns struct { 386 result1 string 387 } 388 getTxIDReturnsOnCall map[int]struct { 389 result1 string 390 } 391 GetTxTimestampStub func() (*timestamp.Timestamp, error) 392 getTxTimestampMutex sync.RWMutex 393 getTxTimestampArgsForCall []struct { 394 } 395 getTxTimestampReturns struct { 396 result1 *timestamp.Timestamp 397 result2 error 398 } 399 getTxTimestampReturnsOnCall map[int]struct { 400 result1 *timestamp.Timestamp 401 result2 error 402 } 403 InvokeChaincodeStub func(string, [][]byte, string) peer.Response 404 invokeChaincodeMutex sync.RWMutex 405 invokeChaincodeArgsForCall []struct { 406 arg1 string 407 arg2 [][]byte 408 arg3 string 409 } 410 invokeChaincodeReturns struct { 411 result1 peer.Response 412 } 413 invokeChaincodeReturnsOnCall map[int]struct { 414 result1 peer.Response 415 } 416 PutPrivateDataStub func(string, string, []byte) error 417 putPrivateDataMutex sync.RWMutex 418 putPrivateDataArgsForCall []struct { 419 arg1 string 420 arg2 string 421 arg3 []byte 422 } 423 putPrivateDataReturns struct { 424 result1 error 425 } 426 putPrivateDataReturnsOnCall map[int]struct { 427 result1 error 428 } 429 PutStateStub func(string, []byte) error 430 putStateMutex sync.RWMutex 431 putStateArgsForCall []struct { 432 arg1 string 433 arg2 []byte 434 } 435 putStateReturns struct { 436 result1 error 437 } 438 putStateReturnsOnCall map[int]struct { 439 result1 error 440 } 441 SetEventStub func(string, []byte) error 442 setEventMutex sync.RWMutex 443 setEventArgsForCall []struct { 444 arg1 string 445 arg2 []byte 446 } 447 setEventReturns struct { 448 result1 error 449 } 450 setEventReturnsOnCall map[int]struct { 451 result1 error 452 } 453 SetPrivateDataValidationParameterStub func(string, string, []byte) error 454 setPrivateDataValidationParameterMutex sync.RWMutex 455 setPrivateDataValidationParameterArgsForCall []struct { 456 arg1 string 457 arg2 string 458 arg3 []byte 459 } 460 setPrivateDataValidationParameterReturns struct { 461 result1 error 462 } 463 setPrivateDataValidationParameterReturnsOnCall map[int]struct { 464 result1 error 465 } 466 SetStateValidationParameterStub func(string, []byte) error 467 setStateValidationParameterMutex sync.RWMutex 468 setStateValidationParameterArgsForCall []struct { 469 arg1 string 470 arg2 []byte 471 } 472 setStateValidationParameterReturns struct { 473 result1 error 474 } 475 setStateValidationParameterReturnsOnCall map[int]struct { 476 result1 error 477 } 478 SplitCompositeKeyStub func(string) (string, []string, error) 479 splitCompositeKeyMutex sync.RWMutex 480 splitCompositeKeyArgsForCall []struct { 481 arg1 string 482 } 483 splitCompositeKeyReturns struct { 484 result1 string 485 result2 []string 486 result3 error 487 } 488 splitCompositeKeyReturnsOnCall map[int]struct { 489 result1 string 490 result2 []string 491 result3 error 492 } 493 invocations map[string][][]interface{} 494 invocationsMutex sync.RWMutex 495 } 496 497 func (fake *ChaincodeStub) CreateCompositeKey(arg1 string, arg2 []string) (string, error) { 498 var arg2Copy []string 499 if arg2 != nil { 500 arg2Copy = make([]string, len(arg2)) 501 copy(arg2Copy, arg2) 502 } 503 fake.createCompositeKeyMutex.Lock() 504 ret, specificReturn := fake.createCompositeKeyReturnsOnCall[len(fake.createCompositeKeyArgsForCall)] 505 fake.createCompositeKeyArgsForCall = append(fake.createCompositeKeyArgsForCall, struct { 506 arg1 string 507 arg2 []string 508 }{arg1, arg2Copy}) 509 fake.recordInvocation("CreateCompositeKey", []interface{}{arg1, arg2Copy}) 510 fake.createCompositeKeyMutex.Unlock() 511 if fake.CreateCompositeKeyStub != nil { 512 return fake.CreateCompositeKeyStub(arg1, arg2) 513 } 514 if specificReturn { 515 return ret.result1, ret.result2 516 } 517 fakeReturns := fake.createCompositeKeyReturns 518 return fakeReturns.result1, fakeReturns.result2 519 } 520 521 func (fake *ChaincodeStub) CreateCompositeKeyCallCount() int { 522 fake.createCompositeKeyMutex.RLock() 523 defer fake.createCompositeKeyMutex.RUnlock() 524 return len(fake.createCompositeKeyArgsForCall) 525 } 526 527 func (fake *ChaincodeStub) CreateCompositeKeyCalls(stub func(string, []string) (string, error)) { 528 fake.createCompositeKeyMutex.Lock() 529 defer fake.createCompositeKeyMutex.Unlock() 530 fake.CreateCompositeKeyStub = stub 531 } 532 533 func (fake *ChaincodeStub) CreateCompositeKeyArgsForCall(i int) (string, []string) { 534 fake.createCompositeKeyMutex.RLock() 535 defer fake.createCompositeKeyMutex.RUnlock() 536 argsForCall := fake.createCompositeKeyArgsForCall[i] 537 return argsForCall.arg1, argsForCall.arg2 538 } 539 540 func (fake *ChaincodeStub) CreateCompositeKeyReturns(result1 string, result2 error) { 541 fake.createCompositeKeyMutex.Lock() 542 defer fake.createCompositeKeyMutex.Unlock() 543 fake.CreateCompositeKeyStub = nil 544 fake.createCompositeKeyReturns = struct { 545 result1 string 546 result2 error 547 }{result1, result2} 548 } 549 550 func (fake *ChaincodeStub) CreateCompositeKeyReturnsOnCall(i int, result1 string, result2 error) { 551 fake.createCompositeKeyMutex.Lock() 552 defer fake.createCompositeKeyMutex.Unlock() 553 fake.CreateCompositeKeyStub = nil 554 if fake.createCompositeKeyReturnsOnCall == nil { 555 fake.createCompositeKeyReturnsOnCall = make(map[int]struct { 556 result1 string 557 result2 error 558 }) 559 } 560 fake.createCompositeKeyReturnsOnCall[i] = struct { 561 result1 string 562 result2 error 563 }{result1, result2} 564 } 565 566 func (fake *ChaincodeStub) DelPrivateData(arg1 string, arg2 string) error { 567 fake.delPrivateDataMutex.Lock() 568 ret, specificReturn := fake.delPrivateDataReturnsOnCall[len(fake.delPrivateDataArgsForCall)] 569 fake.delPrivateDataArgsForCall = append(fake.delPrivateDataArgsForCall, struct { 570 arg1 string 571 arg2 string 572 }{arg1, arg2}) 573 fake.recordInvocation("DelPrivateData", []interface{}{arg1, arg2}) 574 fake.delPrivateDataMutex.Unlock() 575 if fake.DelPrivateDataStub != nil { 576 return fake.DelPrivateDataStub(arg1, arg2) 577 } 578 if specificReturn { 579 return ret.result1 580 } 581 fakeReturns := fake.delPrivateDataReturns 582 return fakeReturns.result1 583 } 584 585 func (fake *ChaincodeStub) DelPrivateDataCallCount() int { 586 fake.delPrivateDataMutex.RLock() 587 defer fake.delPrivateDataMutex.RUnlock() 588 return len(fake.delPrivateDataArgsForCall) 589 } 590 591 func (fake *ChaincodeStub) DelPrivateDataCalls(stub func(string, string) error) { 592 fake.delPrivateDataMutex.Lock() 593 defer fake.delPrivateDataMutex.Unlock() 594 fake.DelPrivateDataStub = stub 595 } 596 597 func (fake *ChaincodeStub) DelPrivateDataArgsForCall(i int) (string, string) { 598 fake.delPrivateDataMutex.RLock() 599 defer fake.delPrivateDataMutex.RUnlock() 600 argsForCall := fake.delPrivateDataArgsForCall[i] 601 return argsForCall.arg1, argsForCall.arg2 602 } 603 604 func (fake *ChaincodeStub) DelPrivateDataReturns(result1 error) { 605 fake.delPrivateDataMutex.Lock() 606 defer fake.delPrivateDataMutex.Unlock() 607 fake.DelPrivateDataStub = nil 608 fake.delPrivateDataReturns = struct { 609 result1 error 610 }{result1} 611 } 612 613 func (fake *ChaincodeStub) DelPrivateDataReturnsOnCall(i int, result1 error) { 614 fake.delPrivateDataMutex.Lock() 615 defer fake.delPrivateDataMutex.Unlock() 616 fake.DelPrivateDataStub = nil 617 if fake.delPrivateDataReturnsOnCall == nil { 618 fake.delPrivateDataReturnsOnCall = make(map[int]struct { 619 result1 error 620 }) 621 } 622 fake.delPrivateDataReturnsOnCall[i] = struct { 623 result1 error 624 }{result1} 625 } 626 627 func (fake *ChaincodeStub) DelState(arg1 string) error { 628 fake.delStateMutex.Lock() 629 ret, specificReturn := fake.delStateReturnsOnCall[len(fake.delStateArgsForCall)] 630 fake.delStateArgsForCall = append(fake.delStateArgsForCall, struct { 631 arg1 string 632 }{arg1}) 633 fake.recordInvocation("DelState", []interface{}{arg1}) 634 fake.delStateMutex.Unlock() 635 if fake.DelStateStub != nil { 636 return fake.DelStateStub(arg1) 637 } 638 if specificReturn { 639 return ret.result1 640 } 641 fakeReturns := fake.delStateReturns 642 return fakeReturns.result1 643 } 644 645 func (fake *ChaincodeStub) DelStateCallCount() int { 646 fake.delStateMutex.RLock() 647 defer fake.delStateMutex.RUnlock() 648 return len(fake.delStateArgsForCall) 649 } 650 651 func (fake *ChaincodeStub) DelStateCalls(stub func(string) error) { 652 fake.delStateMutex.Lock() 653 defer fake.delStateMutex.Unlock() 654 fake.DelStateStub = stub 655 } 656 657 func (fake *ChaincodeStub) DelStateArgsForCall(i int) string { 658 fake.delStateMutex.RLock() 659 defer fake.delStateMutex.RUnlock() 660 argsForCall := fake.delStateArgsForCall[i] 661 return argsForCall.arg1 662 } 663 664 func (fake *ChaincodeStub) DelStateReturns(result1 error) { 665 fake.delStateMutex.Lock() 666 defer fake.delStateMutex.Unlock() 667 fake.DelStateStub = nil 668 fake.delStateReturns = struct { 669 result1 error 670 }{result1} 671 } 672 673 func (fake *ChaincodeStub) DelStateReturnsOnCall(i int, result1 error) { 674 fake.delStateMutex.Lock() 675 defer fake.delStateMutex.Unlock() 676 fake.DelStateStub = nil 677 if fake.delStateReturnsOnCall == nil { 678 fake.delStateReturnsOnCall = make(map[int]struct { 679 result1 error 680 }) 681 } 682 fake.delStateReturnsOnCall[i] = struct { 683 result1 error 684 }{result1} 685 } 686 687 func (fake *ChaincodeStub) GetArgs() [][]byte { 688 fake.getArgsMutex.Lock() 689 ret, specificReturn := fake.getArgsReturnsOnCall[len(fake.getArgsArgsForCall)] 690 fake.getArgsArgsForCall = append(fake.getArgsArgsForCall, struct { 691 }{}) 692 fake.recordInvocation("GetArgs", []interface{}{}) 693 fake.getArgsMutex.Unlock() 694 if fake.GetArgsStub != nil { 695 return fake.GetArgsStub() 696 } 697 if specificReturn { 698 return ret.result1 699 } 700 fakeReturns := fake.getArgsReturns 701 return fakeReturns.result1 702 } 703 704 func (fake *ChaincodeStub) GetArgsCallCount() int { 705 fake.getArgsMutex.RLock() 706 defer fake.getArgsMutex.RUnlock() 707 return len(fake.getArgsArgsForCall) 708 } 709 710 func (fake *ChaincodeStub) GetArgsCalls(stub func() [][]byte) { 711 fake.getArgsMutex.Lock() 712 defer fake.getArgsMutex.Unlock() 713 fake.GetArgsStub = stub 714 } 715 716 func (fake *ChaincodeStub) GetArgsReturns(result1 [][]byte) { 717 fake.getArgsMutex.Lock() 718 defer fake.getArgsMutex.Unlock() 719 fake.GetArgsStub = nil 720 fake.getArgsReturns = struct { 721 result1 [][]byte 722 }{result1} 723 } 724 725 func (fake *ChaincodeStub) GetArgsReturnsOnCall(i int, result1 [][]byte) { 726 fake.getArgsMutex.Lock() 727 defer fake.getArgsMutex.Unlock() 728 fake.GetArgsStub = nil 729 if fake.getArgsReturnsOnCall == nil { 730 fake.getArgsReturnsOnCall = make(map[int]struct { 731 result1 [][]byte 732 }) 733 } 734 fake.getArgsReturnsOnCall[i] = struct { 735 result1 [][]byte 736 }{result1} 737 } 738 739 func (fake *ChaincodeStub) GetArgsSlice() ([]byte, error) { 740 fake.getArgsSliceMutex.Lock() 741 ret, specificReturn := fake.getArgsSliceReturnsOnCall[len(fake.getArgsSliceArgsForCall)] 742 fake.getArgsSliceArgsForCall = append(fake.getArgsSliceArgsForCall, struct { 743 }{}) 744 fake.recordInvocation("GetArgsSlice", []interface{}{}) 745 fake.getArgsSliceMutex.Unlock() 746 if fake.GetArgsSliceStub != nil { 747 return fake.GetArgsSliceStub() 748 } 749 if specificReturn { 750 return ret.result1, ret.result2 751 } 752 fakeReturns := fake.getArgsSliceReturns 753 return fakeReturns.result1, fakeReturns.result2 754 } 755 756 func (fake *ChaincodeStub) GetArgsSliceCallCount() int { 757 fake.getArgsSliceMutex.RLock() 758 defer fake.getArgsSliceMutex.RUnlock() 759 return len(fake.getArgsSliceArgsForCall) 760 } 761 762 func (fake *ChaincodeStub) GetArgsSliceCalls(stub func() ([]byte, error)) { 763 fake.getArgsSliceMutex.Lock() 764 defer fake.getArgsSliceMutex.Unlock() 765 fake.GetArgsSliceStub = stub 766 } 767 768 func (fake *ChaincodeStub) GetArgsSliceReturns(result1 []byte, result2 error) { 769 fake.getArgsSliceMutex.Lock() 770 defer fake.getArgsSliceMutex.Unlock() 771 fake.GetArgsSliceStub = nil 772 fake.getArgsSliceReturns = struct { 773 result1 []byte 774 result2 error 775 }{result1, result2} 776 } 777 778 func (fake *ChaincodeStub) GetArgsSliceReturnsOnCall(i int, result1 []byte, result2 error) { 779 fake.getArgsSliceMutex.Lock() 780 defer fake.getArgsSliceMutex.Unlock() 781 fake.GetArgsSliceStub = nil 782 if fake.getArgsSliceReturnsOnCall == nil { 783 fake.getArgsSliceReturnsOnCall = make(map[int]struct { 784 result1 []byte 785 result2 error 786 }) 787 } 788 fake.getArgsSliceReturnsOnCall[i] = struct { 789 result1 []byte 790 result2 error 791 }{result1, result2} 792 } 793 794 func (fake *ChaincodeStub) GetBinding() ([]byte, error) { 795 fake.getBindingMutex.Lock() 796 ret, specificReturn := fake.getBindingReturnsOnCall[len(fake.getBindingArgsForCall)] 797 fake.getBindingArgsForCall = append(fake.getBindingArgsForCall, struct { 798 }{}) 799 fake.recordInvocation("GetBinding", []interface{}{}) 800 fake.getBindingMutex.Unlock() 801 if fake.GetBindingStub != nil { 802 return fake.GetBindingStub() 803 } 804 if specificReturn { 805 return ret.result1, ret.result2 806 } 807 fakeReturns := fake.getBindingReturns 808 return fakeReturns.result1, fakeReturns.result2 809 } 810 811 func (fake *ChaincodeStub) GetBindingCallCount() int { 812 fake.getBindingMutex.RLock() 813 defer fake.getBindingMutex.RUnlock() 814 return len(fake.getBindingArgsForCall) 815 } 816 817 func (fake *ChaincodeStub) GetBindingCalls(stub func() ([]byte, error)) { 818 fake.getBindingMutex.Lock() 819 defer fake.getBindingMutex.Unlock() 820 fake.GetBindingStub = stub 821 } 822 823 func (fake *ChaincodeStub) GetBindingReturns(result1 []byte, result2 error) { 824 fake.getBindingMutex.Lock() 825 defer fake.getBindingMutex.Unlock() 826 fake.GetBindingStub = nil 827 fake.getBindingReturns = struct { 828 result1 []byte 829 result2 error 830 }{result1, result2} 831 } 832 833 func (fake *ChaincodeStub) GetBindingReturnsOnCall(i int, result1 []byte, result2 error) { 834 fake.getBindingMutex.Lock() 835 defer fake.getBindingMutex.Unlock() 836 fake.GetBindingStub = nil 837 if fake.getBindingReturnsOnCall == nil { 838 fake.getBindingReturnsOnCall = make(map[int]struct { 839 result1 []byte 840 result2 error 841 }) 842 } 843 fake.getBindingReturnsOnCall[i] = struct { 844 result1 []byte 845 result2 error 846 }{result1, result2} 847 } 848 849 func (fake *ChaincodeStub) GetChannelID() string { 850 fake.getChannelIDMutex.Lock() 851 ret, specificReturn := fake.getChannelIDReturnsOnCall[len(fake.getChannelIDArgsForCall)] 852 fake.getChannelIDArgsForCall = append(fake.getChannelIDArgsForCall, struct { 853 }{}) 854 fake.recordInvocation("GetChannelID", []interface{}{}) 855 fake.getChannelIDMutex.Unlock() 856 if fake.GetChannelIDStub != nil { 857 return fake.GetChannelIDStub() 858 } 859 if specificReturn { 860 return ret.result1 861 } 862 fakeReturns := fake.getChannelIDReturns 863 return fakeReturns.result1 864 } 865 866 func (fake *ChaincodeStub) GetChannelIDCallCount() int { 867 fake.getChannelIDMutex.RLock() 868 defer fake.getChannelIDMutex.RUnlock() 869 return len(fake.getChannelIDArgsForCall) 870 } 871 872 func (fake *ChaincodeStub) GetChannelIDCalls(stub func() string) { 873 fake.getChannelIDMutex.Lock() 874 defer fake.getChannelIDMutex.Unlock() 875 fake.GetChannelIDStub = stub 876 } 877 878 func (fake *ChaincodeStub) GetChannelIDReturns(result1 string) { 879 fake.getChannelIDMutex.Lock() 880 defer fake.getChannelIDMutex.Unlock() 881 fake.GetChannelIDStub = nil 882 fake.getChannelIDReturns = struct { 883 result1 string 884 }{result1} 885 } 886 887 func (fake *ChaincodeStub) GetChannelIDReturnsOnCall(i int, result1 string) { 888 fake.getChannelIDMutex.Lock() 889 defer fake.getChannelIDMutex.Unlock() 890 fake.GetChannelIDStub = nil 891 if fake.getChannelIDReturnsOnCall == nil { 892 fake.getChannelIDReturnsOnCall = make(map[int]struct { 893 result1 string 894 }) 895 } 896 fake.getChannelIDReturnsOnCall[i] = struct { 897 result1 string 898 }{result1} 899 } 900 901 func (fake *ChaincodeStub) GetCreator() ([]byte, error) { 902 fake.getCreatorMutex.Lock() 903 ret, specificReturn := fake.getCreatorReturnsOnCall[len(fake.getCreatorArgsForCall)] 904 fake.getCreatorArgsForCall = append(fake.getCreatorArgsForCall, struct { 905 }{}) 906 fake.recordInvocation("GetCreator", []interface{}{}) 907 fake.getCreatorMutex.Unlock() 908 if fake.GetCreatorStub != nil { 909 return fake.GetCreatorStub() 910 } 911 if specificReturn { 912 return ret.result1, ret.result2 913 } 914 fakeReturns := fake.getCreatorReturns 915 return fakeReturns.result1, fakeReturns.result2 916 } 917 918 func (fake *ChaincodeStub) GetCreatorCallCount() int { 919 fake.getCreatorMutex.RLock() 920 defer fake.getCreatorMutex.RUnlock() 921 return len(fake.getCreatorArgsForCall) 922 } 923 924 func (fake *ChaincodeStub) GetCreatorCalls(stub func() ([]byte, error)) { 925 fake.getCreatorMutex.Lock() 926 defer fake.getCreatorMutex.Unlock() 927 fake.GetCreatorStub = stub 928 } 929 930 func (fake *ChaincodeStub) GetCreatorReturns(result1 []byte, result2 error) { 931 fake.getCreatorMutex.Lock() 932 defer fake.getCreatorMutex.Unlock() 933 fake.GetCreatorStub = nil 934 fake.getCreatorReturns = struct { 935 result1 []byte 936 result2 error 937 }{result1, result2} 938 } 939 940 func (fake *ChaincodeStub) GetCreatorReturnsOnCall(i int, result1 []byte, result2 error) { 941 fake.getCreatorMutex.Lock() 942 defer fake.getCreatorMutex.Unlock() 943 fake.GetCreatorStub = nil 944 if fake.getCreatorReturnsOnCall == nil { 945 fake.getCreatorReturnsOnCall = make(map[int]struct { 946 result1 []byte 947 result2 error 948 }) 949 } 950 fake.getCreatorReturnsOnCall[i] = struct { 951 result1 []byte 952 result2 error 953 }{result1, result2} 954 } 955 956 func (fake *ChaincodeStub) GetDecorations() map[string][]byte { 957 fake.getDecorationsMutex.Lock() 958 ret, specificReturn := fake.getDecorationsReturnsOnCall[len(fake.getDecorationsArgsForCall)] 959 fake.getDecorationsArgsForCall = append(fake.getDecorationsArgsForCall, struct { 960 }{}) 961 fake.recordInvocation("GetDecorations", []interface{}{}) 962 fake.getDecorationsMutex.Unlock() 963 if fake.GetDecorationsStub != nil { 964 return fake.GetDecorationsStub() 965 } 966 if specificReturn { 967 return ret.result1 968 } 969 fakeReturns := fake.getDecorationsReturns 970 return fakeReturns.result1 971 } 972 973 func (fake *ChaincodeStub) GetDecorationsCallCount() int { 974 fake.getDecorationsMutex.RLock() 975 defer fake.getDecorationsMutex.RUnlock() 976 return len(fake.getDecorationsArgsForCall) 977 } 978 979 func (fake *ChaincodeStub) GetDecorationsCalls(stub func() map[string][]byte) { 980 fake.getDecorationsMutex.Lock() 981 defer fake.getDecorationsMutex.Unlock() 982 fake.GetDecorationsStub = stub 983 } 984 985 func (fake *ChaincodeStub) GetDecorationsReturns(result1 map[string][]byte) { 986 fake.getDecorationsMutex.Lock() 987 defer fake.getDecorationsMutex.Unlock() 988 fake.GetDecorationsStub = nil 989 fake.getDecorationsReturns = struct { 990 result1 map[string][]byte 991 }{result1} 992 } 993 994 func (fake *ChaincodeStub) GetDecorationsReturnsOnCall(i int, result1 map[string][]byte) { 995 fake.getDecorationsMutex.Lock() 996 defer fake.getDecorationsMutex.Unlock() 997 fake.GetDecorationsStub = nil 998 if fake.getDecorationsReturnsOnCall == nil { 999 fake.getDecorationsReturnsOnCall = make(map[int]struct { 1000 result1 map[string][]byte 1001 }) 1002 } 1003 fake.getDecorationsReturnsOnCall[i] = struct { 1004 result1 map[string][]byte 1005 }{result1} 1006 } 1007 1008 func (fake *ChaincodeStub) GetFunctionAndParameters() (string, []string) { 1009 fake.getFunctionAndParametersMutex.Lock() 1010 ret, specificReturn := fake.getFunctionAndParametersReturnsOnCall[len(fake.getFunctionAndParametersArgsForCall)] 1011 fake.getFunctionAndParametersArgsForCall = append(fake.getFunctionAndParametersArgsForCall, struct { 1012 }{}) 1013 fake.recordInvocation("GetFunctionAndParameters", []interface{}{}) 1014 fake.getFunctionAndParametersMutex.Unlock() 1015 if fake.GetFunctionAndParametersStub != nil { 1016 return fake.GetFunctionAndParametersStub() 1017 } 1018 if specificReturn { 1019 return ret.result1, ret.result2 1020 } 1021 fakeReturns := fake.getFunctionAndParametersReturns 1022 return fakeReturns.result1, fakeReturns.result2 1023 } 1024 1025 func (fake *ChaincodeStub) GetFunctionAndParametersCallCount() int { 1026 fake.getFunctionAndParametersMutex.RLock() 1027 defer fake.getFunctionAndParametersMutex.RUnlock() 1028 return len(fake.getFunctionAndParametersArgsForCall) 1029 } 1030 1031 func (fake *ChaincodeStub) GetFunctionAndParametersCalls(stub func() (string, []string)) { 1032 fake.getFunctionAndParametersMutex.Lock() 1033 defer fake.getFunctionAndParametersMutex.Unlock() 1034 fake.GetFunctionAndParametersStub = stub 1035 } 1036 1037 func (fake *ChaincodeStub) GetFunctionAndParametersReturns(result1 string, result2 []string) { 1038 fake.getFunctionAndParametersMutex.Lock() 1039 defer fake.getFunctionAndParametersMutex.Unlock() 1040 fake.GetFunctionAndParametersStub = nil 1041 fake.getFunctionAndParametersReturns = struct { 1042 result1 string 1043 result2 []string 1044 }{result1, result2} 1045 } 1046 1047 func (fake *ChaincodeStub) GetFunctionAndParametersReturnsOnCall(i int, result1 string, result2 []string) { 1048 fake.getFunctionAndParametersMutex.Lock() 1049 defer fake.getFunctionAndParametersMutex.Unlock() 1050 fake.GetFunctionAndParametersStub = nil 1051 if fake.getFunctionAndParametersReturnsOnCall == nil { 1052 fake.getFunctionAndParametersReturnsOnCall = make(map[int]struct { 1053 result1 string 1054 result2 []string 1055 }) 1056 } 1057 fake.getFunctionAndParametersReturnsOnCall[i] = struct { 1058 result1 string 1059 result2 []string 1060 }{result1, result2} 1061 } 1062 1063 func (fake *ChaincodeStub) GetHistoryForKey(arg1 string) (shim.HistoryQueryIteratorInterface, error) { 1064 fake.getHistoryForKeyMutex.Lock() 1065 ret, specificReturn := fake.getHistoryForKeyReturnsOnCall[len(fake.getHistoryForKeyArgsForCall)] 1066 fake.getHistoryForKeyArgsForCall = append(fake.getHistoryForKeyArgsForCall, struct { 1067 arg1 string 1068 }{arg1}) 1069 fake.recordInvocation("GetHistoryForKey", []interface{}{arg1}) 1070 fake.getHistoryForKeyMutex.Unlock() 1071 if fake.GetHistoryForKeyStub != nil { 1072 return fake.GetHistoryForKeyStub(arg1) 1073 } 1074 if specificReturn { 1075 return ret.result1, ret.result2 1076 } 1077 fakeReturns := fake.getHistoryForKeyReturns 1078 return fakeReturns.result1, fakeReturns.result2 1079 } 1080 1081 func (fake *ChaincodeStub) GetHistoryForKeyCallCount() int { 1082 fake.getHistoryForKeyMutex.RLock() 1083 defer fake.getHistoryForKeyMutex.RUnlock() 1084 return len(fake.getHistoryForKeyArgsForCall) 1085 } 1086 1087 func (fake *ChaincodeStub) GetHistoryForKeyCalls(stub func(string) (shim.HistoryQueryIteratorInterface, error)) { 1088 fake.getHistoryForKeyMutex.Lock() 1089 defer fake.getHistoryForKeyMutex.Unlock() 1090 fake.GetHistoryForKeyStub = stub 1091 } 1092 1093 func (fake *ChaincodeStub) GetHistoryForKeyArgsForCall(i int) string { 1094 fake.getHistoryForKeyMutex.RLock() 1095 defer fake.getHistoryForKeyMutex.RUnlock() 1096 argsForCall := fake.getHistoryForKeyArgsForCall[i] 1097 return argsForCall.arg1 1098 } 1099 1100 func (fake *ChaincodeStub) GetHistoryForKeyReturns(result1 shim.HistoryQueryIteratorInterface, result2 error) { 1101 fake.getHistoryForKeyMutex.Lock() 1102 defer fake.getHistoryForKeyMutex.Unlock() 1103 fake.GetHistoryForKeyStub = nil 1104 fake.getHistoryForKeyReturns = struct { 1105 result1 shim.HistoryQueryIteratorInterface 1106 result2 error 1107 }{result1, result2} 1108 } 1109 1110 func (fake *ChaincodeStub) GetHistoryForKeyReturnsOnCall(i int, result1 shim.HistoryQueryIteratorInterface, result2 error) { 1111 fake.getHistoryForKeyMutex.Lock() 1112 defer fake.getHistoryForKeyMutex.Unlock() 1113 fake.GetHistoryForKeyStub = nil 1114 if fake.getHistoryForKeyReturnsOnCall == nil { 1115 fake.getHistoryForKeyReturnsOnCall = make(map[int]struct { 1116 result1 shim.HistoryQueryIteratorInterface 1117 result2 error 1118 }) 1119 } 1120 fake.getHistoryForKeyReturnsOnCall[i] = struct { 1121 result1 shim.HistoryQueryIteratorInterface 1122 result2 error 1123 }{result1, result2} 1124 } 1125 1126 func (fake *ChaincodeStub) GetPrivateData(arg1 string, arg2 string) ([]byte, error) { 1127 fake.getPrivateDataMutex.Lock() 1128 ret, specificReturn := fake.getPrivateDataReturnsOnCall[len(fake.getPrivateDataArgsForCall)] 1129 fake.getPrivateDataArgsForCall = append(fake.getPrivateDataArgsForCall, struct { 1130 arg1 string 1131 arg2 string 1132 }{arg1, arg2}) 1133 fake.recordInvocation("GetPrivateData", []interface{}{arg1, arg2}) 1134 fake.getPrivateDataMutex.Unlock() 1135 if fake.GetPrivateDataStub != nil { 1136 return fake.GetPrivateDataStub(arg1, arg2) 1137 } 1138 if specificReturn { 1139 return ret.result1, ret.result2 1140 } 1141 fakeReturns := fake.getPrivateDataReturns 1142 return fakeReturns.result1, fakeReturns.result2 1143 } 1144 1145 func (fake *ChaincodeStub) GetPrivateDataCallCount() int { 1146 fake.getPrivateDataMutex.RLock() 1147 defer fake.getPrivateDataMutex.RUnlock() 1148 return len(fake.getPrivateDataArgsForCall) 1149 } 1150 1151 func (fake *ChaincodeStub) GetPrivateDataCalls(stub func(string, string) ([]byte, error)) { 1152 fake.getPrivateDataMutex.Lock() 1153 defer fake.getPrivateDataMutex.Unlock() 1154 fake.GetPrivateDataStub = stub 1155 } 1156 1157 func (fake *ChaincodeStub) GetPrivateDataArgsForCall(i int) (string, string) { 1158 fake.getPrivateDataMutex.RLock() 1159 defer fake.getPrivateDataMutex.RUnlock() 1160 argsForCall := fake.getPrivateDataArgsForCall[i] 1161 return argsForCall.arg1, argsForCall.arg2 1162 } 1163 1164 func (fake *ChaincodeStub) GetPrivateDataReturns(result1 []byte, result2 error) { 1165 fake.getPrivateDataMutex.Lock() 1166 defer fake.getPrivateDataMutex.Unlock() 1167 fake.GetPrivateDataStub = nil 1168 fake.getPrivateDataReturns = struct { 1169 result1 []byte 1170 result2 error 1171 }{result1, result2} 1172 } 1173 1174 func (fake *ChaincodeStub) GetPrivateDataReturnsOnCall(i int, result1 []byte, result2 error) { 1175 fake.getPrivateDataMutex.Lock() 1176 defer fake.getPrivateDataMutex.Unlock() 1177 fake.GetPrivateDataStub = nil 1178 if fake.getPrivateDataReturnsOnCall == nil { 1179 fake.getPrivateDataReturnsOnCall = make(map[int]struct { 1180 result1 []byte 1181 result2 error 1182 }) 1183 } 1184 fake.getPrivateDataReturnsOnCall[i] = struct { 1185 result1 []byte 1186 result2 error 1187 }{result1, result2} 1188 } 1189 1190 func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKey(arg1 string, arg2 string, arg3 []string) (shim.StateQueryIteratorInterface, error) { 1191 var arg3Copy []string 1192 if arg3 != nil { 1193 arg3Copy = make([]string, len(arg3)) 1194 copy(arg3Copy, arg3) 1195 } 1196 fake.getPrivateDataByPartialCompositeKeyMutex.Lock() 1197 ret, specificReturn := fake.getPrivateDataByPartialCompositeKeyReturnsOnCall[len(fake.getPrivateDataByPartialCompositeKeyArgsForCall)] 1198 fake.getPrivateDataByPartialCompositeKeyArgsForCall = append(fake.getPrivateDataByPartialCompositeKeyArgsForCall, struct { 1199 arg1 string 1200 arg2 string 1201 arg3 []string 1202 }{arg1, arg2, arg3Copy}) 1203 fake.recordInvocation("GetPrivateDataByPartialCompositeKey", []interface{}{arg1, arg2, arg3Copy}) 1204 fake.getPrivateDataByPartialCompositeKeyMutex.Unlock() 1205 if fake.GetPrivateDataByPartialCompositeKeyStub != nil { 1206 return fake.GetPrivateDataByPartialCompositeKeyStub(arg1, arg2, arg3) 1207 } 1208 if specificReturn { 1209 return ret.result1, ret.result2 1210 } 1211 fakeReturns := fake.getPrivateDataByPartialCompositeKeyReturns 1212 return fakeReturns.result1, fakeReturns.result2 1213 } 1214 1215 func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyCallCount() int { 1216 fake.getPrivateDataByPartialCompositeKeyMutex.RLock() 1217 defer fake.getPrivateDataByPartialCompositeKeyMutex.RUnlock() 1218 return len(fake.getPrivateDataByPartialCompositeKeyArgsForCall) 1219 } 1220 1221 func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyCalls(stub func(string, string, []string) (shim.StateQueryIteratorInterface, error)) { 1222 fake.getPrivateDataByPartialCompositeKeyMutex.Lock() 1223 defer fake.getPrivateDataByPartialCompositeKeyMutex.Unlock() 1224 fake.GetPrivateDataByPartialCompositeKeyStub = stub 1225 } 1226 1227 func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyArgsForCall(i int) (string, string, []string) { 1228 fake.getPrivateDataByPartialCompositeKeyMutex.RLock() 1229 defer fake.getPrivateDataByPartialCompositeKeyMutex.RUnlock() 1230 argsForCall := fake.getPrivateDataByPartialCompositeKeyArgsForCall[i] 1231 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 1232 } 1233 1234 func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyReturns(result1 shim.StateQueryIteratorInterface, result2 error) { 1235 fake.getPrivateDataByPartialCompositeKeyMutex.Lock() 1236 defer fake.getPrivateDataByPartialCompositeKeyMutex.Unlock() 1237 fake.GetPrivateDataByPartialCompositeKeyStub = nil 1238 fake.getPrivateDataByPartialCompositeKeyReturns = struct { 1239 result1 shim.StateQueryIteratorInterface 1240 result2 error 1241 }{result1, result2} 1242 } 1243 1244 func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) { 1245 fake.getPrivateDataByPartialCompositeKeyMutex.Lock() 1246 defer fake.getPrivateDataByPartialCompositeKeyMutex.Unlock() 1247 fake.GetPrivateDataByPartialCompositeKeyStub = nil 1248 if fake.getPrivateDataByPartialCompositeKeyReturnsOnCall == nil { 1249 fake.getPrivateDataByPartialCompositeKeyReturnsOnCall = make(map[int]struct { 1250 result1 shim.StateQueryIteratorInterface 1251 result2 error 1252 }) 1253 } 1254 fake.getPrivateDataByPartialCompositeKeyReturnsOnCall[i] = struct { 1255 result1 shim.StateQueryIteratorInterface 1256 result2 error 1257 }{result1, result2} 1258 } 1259 1260 func (fake *ChaincodeStub) GetPrivateDataByRange(arg1 string, arg2 string, arg3 string) (shim.StateQueryIteratorInterface, error) { 1261 fake.getPrivateDataByRangeMutex.Lock() 1262 ret, specificReturn := fake.getPrivateDataByRangeReturnsOnCall[len(fake.getPrivateDataByRangeArgsForCall)] 1263 fake.getPrivateDataByRangeArgsForCall = append(fake.getPrivateDataByRangeArgsForCall, struct { 1264 arg1 string 1265 arg2 string 1266 arg3 string 1267 }{arg1, arg2, arg3}) 1268 fake.recordInvocation("GetPrivateDataByRange", []interface{}{arg1, arg2, arg3}) 1269 fake.getPrivateDataByRangeMutex.Unlock() 1270 if fake.GetPrivateDataByRangeStub != nil { 1271 return fake.GetPrivateDataByRangeStub(arg1, arg2, arg3) 1272 } 1273 if specificReturn { 1274 return ret.result1, ret.result2 1275 } 1276 fakeReturns := fake.getPrivateDataByRangeReturns 1277 return fakeReturns.result1, fakeReturns.result2 1278 } 1279 1280 func (fake *ChaincodeStub) GetPrivateDataByRangeCallCount() int { 1281 fake.getPrivateDataByRangeMutex.RLock() 1282 defer fake.getPrivateDataByRangeMutex.RUnlock() 1283 return len(fake.getPrivateDataByRangeArgsForCall) 1284 } 1285 1286 func (fake *ChaincodeStub) GetPrivateDataByRangeCalls(stub func(string, string, string) (shim.StateQueryIteratorInterface, error)) { 1287 fake.getPrivateDataByRangeMutex.Lock() 1288 defer fake.getPrivateDataByRangeMutex.Unlock() 1289 fake.GetPrivateDataByRangeStub = stub 1290 } 1291 1292 func (fake *ChaincodeStub) GetPrivateDataByRangeArgsForCall(i int) (string, string, string) { 1293 fake.getPrivateDataByRangeMutex.RLock() 1294 defer fake.getPrivateDataByRangeMutex.RUnlock() 1295 argsForCall := fake.getPrivateDataByRangeArgsForCall[i] 1296 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 1297 } 1298 1299 func (fake *ChaincodeStub) GetPrivateDataByRangeReturns(result1 shim.StateQueryIteratorInterface, result2 error) { 1300 fake.getPrivateDataByRangeMutex.Lock() 1301 defer fake.getPrivateDataByRangeMutex.Unlock() 1302 fake.GetPrivateDataByRangeStub = nil 1303 fake.getPrivateDataByRangeReturns = struct { 1304 result1 shim.StateQueryIteratorInterface 1305 result2 error 1306 }{result1, result2} 1307 } 1308 1309 func (fake *ChaincodeStub) GetPrivateDataByRangeReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) { 1310 fake.getPrivateDataByRangeMutex.Lock() 1311 defer fake.getPrivateDataByRangeMutex.Unlock() 1312 fake.GetPrivateDataByRangeStub = nil 1313 if fake.getPrivateDataByRangeReturnsOnCall == nil { 1314 fake.getPrivateDataByRangeReturnsOnCall = make(map[int]struct { 1315 result1 shim.StateQueryIteratorInterface 1316 result2 error 1317 }) 1318 } 1319 fake.getPrivateDataByRangeReturnsOnCall[i] = struct { 1320 result1 shim.StateQueryIteratorInterface 1321 result2 error 1322 }{result1, result2} 1323 } 1324 1325 func (fake *ChaincodeStub) GetPrivateDataHash(arg1 string, arg2 string) ([]byte, error) { 1326 fake.getPrivateDataHashMutex.Lock() 1327 ret, specificReturn := fake.getPrivateDataHashReturnsOnCall[len(fake.getPrivateDataHashArgsForCall)] 1328 fake.getPrivateDataHashArgsForCall = append(fake.getPrivateDataHashArgsForCall, struct { 1329 arg1 string 1330 arg2 string 1331 }{arg1, arg2}) 1332 fake.recordInvocation("GetPrivateDataHash", []interface{}{arg1, arg2}) 1333 fake.getPrivateDataHashMutex.Unlock() 1334 if fake.GetPrivateDataHashStub != nil { 1335 return fake.GetPrivateDataHashStub(arg1, arg2) 1336 } 1337 if specificReturn { 1338 return ret.result1, ret.result2 1339 } 1340 fakeReturns := fake.getPrivateDataHashReturns 1341 return fakeReturns.result1, fakeReturns.result2 1342 } 1343 1344 func (fake *ChaincodeStub) GetPrivateDataHashCallCount() int { 1345 fake.getPrivateDataHashMutex.RLock() 1346 defer fake.getPrivateDataHashMutex.RUnlock() 1347 return len(fake.getPrivateDataHashArgsForCall) 1348 } 1349 1350 func (fake *ChaincodeStub) GetPrivateDataHashCalls(stub func(string, string) ([]byte, error)) { 1351 fake.getPrivateDataHashMutex.Lock() 1352 defer fake.getPrivateDataHashMutex.Unlock() 1353 fake.GetPrivateDataHashStub = stub 1354 } 1355 1356 func (fake *ChaincodeStub) GetPrivateDataHashArgsForCall(i int) (string, string) { 1357 fake.getPrivateDataHashMutex.RLock() 1358 defer fake.getPrivateDataHashMutex.RUnlock() 1359 argsForCall := fake.getPrivateDataHashArgsForCall[i] 1360 return argsForCall.arg1, argsForCall.arg2 1361 } 1362 1363 func (fake *ChaincodeStub) GetPrivateDataHashReturns(result1 []byte, result2 error) { 1364 fake.getPrivateDataHashMutex.Lock() 1365 defer fake.getPrivateDataHashMutex.Unlock() 1366 fake.GetPrivateDataHashStub = nil 1367 fake.getPrivateDataHashReturns = struct { 1368 result1 []byte 1369 result2 error 1370 }{result1, result2} 1371 } 1372 1373 func (fake *ChaincodeStub) GetPrivateDataHashReturnsOnCall(i int, result1 []byte, result2 error) { 1374 fake.getPrivateDataHashMutex.Lock() 1375 defer fake.getPrivateDataHashMutex.Unlock() 1376 fake.GetPrivateDataHashStub = nil 1377 if fake.getPrivateDataHashReturnsOnCall == nil { 1378 fake.getPrivateDataHashReturnsOnCall = make(map[int]struct { 1379 result1 []byte 1380 result2 error 1381 }) 1382 } 1383 fake.getPrivateDataHashReturnsOnCall[i] = struct { 1384 result1 []byte 1385 result2 error 1386 }{result1, result2} 1387 } 1388 1389 func (fake *ChaincodeStub) GetPrivateDataQueryResult(arg1 string, arg2 string) (shim.StateQueryIteratorInterface, error) { 1390 fake.getPrivateDataQueryResultMutex.Lock() 1391 ret, specificReturn := fake.getPrivateDataQueryResultReturnsOnCall[len(fake.getPrivateDataQueryResultArgsForCall)] 1392 fake.getPrivateDataQueryResultArgsForCall = append(fake.getPrivateDataQueryResultArgsForCall, struct { 1393 arg1 string 1394 arg2 string 1395 }{arg1, arg2}) 1396 fake.recordInvocation("GetPrivateDataQueryResult", []interface{}{arg1, arg2}) 1397 fake.getPrivateDataQueryResultMutex.Unlock() 1398 if fake.GetPrivateDataQueryResultStub != nil { 1399 return fake.GetPrivateDataQueryResultStub(arg1, arg2) 1400 } 1401 if specificReturn { 1402 return ret.result1, ret.result2 1403 } 1404 fakeReturns := fake.getPrivateDataQueryResultReturns 1405 return fakeReturns.result1, fakeReturns.result2 1406 } 1407 1408 func (fake *ChaincodeStub) GetPrivateDataQueryResultCallCount() int { 1409 fake.getPrivateDataQueryResultMutex.RLock() 1410 defer fake.getPrivateDataQueryResultMutex.RUnlock() 1411 return len(fake.getPrivateDataQueryResultArgsForCall) 1412 } 1413 1414 func (fake *ChaincodeStub) GetPrivateDataQueryResultCalls(stub func(string, string) (shim.StateQueryIteratorInterface, error)) { 1415 fake.getPrivateDataQueryResultMutex.Lock() 1416 defer fake.getPrivateDataQueryResultMutex.Unlock() 1417 fake.GetPrivateDataQueryResultStub = stub 1418 } 1419 1420 func (fake *ChaincodeStub) GetPrivateDataQueryResultArgsForCall(i int) (string, string) { 1421 fake.getPrivateDataQueryResultMutex.RLock() 1422 defer fake.getPrivateDataQueryResultMutex.RUnlock() 1423 argsForCall := fake.getPrivateDataQueryResultArgsForCall[i] 1424 return argsForCall.arg1, argsForCall.arg2 1425 } 1426 1427 func (fake *ChaincodeStub) GetPrivateDataQueryResultReturns(result1 shim.StateQueryIteratorInterface, result2 error) { 1428 fake.getPrivateDataQueryResultMutex.Lock() 1429 defer fake.getPrivateDataQueryResultMutex.Unlock() 1430 fake.GetPrivateDataQueryResultStub = nil 1431 fake.getPrivateDataQueryResultReturns = struct { 1432 result1 shim.StateQueryIteratorInterface 1433 result2 error 1434 }{result1, result2} 1435 } 1436 1437 func (fake *ChaincodeStub) GetPrivateDataQueryResultReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) { 1438 fake.getPrivateDataQueryResultMutex.Lock() 1439 defer fake.getPrivateDataQueryResultMutex.Unlock() 1440 fake.GetPrivateDataQueryResultStub = nil 1441 if fake.getPrivateDataQueryResultReturnsOnCall == nil { 1442 fake.getPrivateDataQueryResultReturnsOnCall = make(map[int]struct { 1443 result1 shim.StateQueryIteratorInterface 1444 result2 error 1445 }) 1446 } 1447 fake.getPrivateDataQueryResultReturnsOnCall[i] = struct { 1448 result1 shim.StateQueryIteratorInterface 1449 result2 error 1450 }{result1, result2} 1451 } 1452 1453 func (fake *ChaincodeStub) GetPrivateDataValidationParameter(arg1 string, arg2 string) ([]byte, error) { 1454 fake.getPrivateDataValidationParameterMutex.Lock() 1455 ret, specificReturn := fake.getPrivateDataValidationParameterReturnsOnCall[len(fake.getPrivateDataValidationParameterArgsForCall)] 1456 fake.getPrivateDataValidationParameterArgsForCall = append(fake.getPrivateDataValidationParameterArgsForCall, struct { 1457 arg1 string 1458 arg2 string 1459 }{arg1, arg2}) 1460 fake.recordInvocation("GetPrivateDataValidationParameter", []interface{}{arg1, arg2}) 1461 fake.getPrivateDataValidationParameterMutex.Unlock() 1462 if fake.GetPrivateDataValidationParameterStub != nil { 1463 return fake.GetPrivateDataValidationParameterStub(arg1, arg2) 1464 } 1465 if specificReturn { 1466 return ret.result1, ret.result2 1467 } 1468 fakeReturns := fake.getPrivateDataValidationParameterReturns 1469 return fakeReturns.result1, fakeReturns.result2 1470 } 1471 1472 func (fake *ChaincodeStub) GetPrivateDataValidationParameterCallCount() int { 1473 fake.getPrivateDataValidationParameterMutex.RLock() 1474 defer fake.getPrivateDataValidationParameterMutex.RUnlock() 1475 return len(fake.getPrivateDataValidationParameterArgsForCall) 1476 } 1477 1478 func (fake *ChaincodeStub) GetPrivateDataValidationParameterCalls(stub func(string, string) ([]byte, error)) { 1479 fake.getPrivateDataValidationParameterMutex.Lock() 1480 defer fake.getPrivateDataValidationParameterMutex.Unlock() 1481 fake.GetPrivateDataValidationParameterStub = stub 1482 } 1483 1484 func (fake *ChaincodeStub) GetPrivateDataValidationParameterArgsForCall(i int) (string, string) { 1485 fake.getPrivateDataValidationParameterMutex.RLock() 1486 defer fake.getPrivateDataValidationParameterMutex.RUnlock() 1487 argsForCall := fake.getPrivateDataValidationParameterArgsForCall[i] 1488 return argsForCall.arg1, argsForCall.arg2 1489 } 1490 1491 func (fake *ChaincodeStub) GetPrivateDataValidationParameterReturns(result1 []byte, result2 error) { 1492 fake.getPrivateDataValidationParameterMutex.Lock() 1493 defer fake.getPrivateDataValidationParameterMutex.Unlock() 1494 fake.GetPrivateDataValidationParameterStub = nil 1495 fake.getPrivateDataValidationParameterReturns = struct { 1496 result1 []byte 1497 result2 error 1498 }{result1, result2} 1499 } 1500 1501 func (fake *ChaincodeStub) GetPrivateDataValidationParameterReturnsOnCall(i int, result1 []byte, result2 error) { 1502 fake.getPrivateDataValidationParameterMutex.Lock() 1503 defer fake.getPrivateDataValidationParameterMutex.Unlock() 1504 fake.GetPrivateDataValidationParameterStub = nil 1505 if fake.getPrivateDataValidationParameterReturnsOnCall == nil { 1506 fake.getPrivateDataValidationParameterReturnsOnCall = make(map[int]struct { 1507 result1 []byte 1508 result2 error 1509 }) 1510 } 1511 fake.getPrivateDataValidationParameterReturnsOnCall[i] = struct { 1512 result1 []byte 1513 result2 error 1514 }{result1, result2} 1515 } 1516 1517 func (fake *ChaincodeStub) GetQueryResult(arg1 string) (shim.StateQueryIteratorInterface, error) { 1518 fake.getQueryResultMutex.Lock() 1519 ret, specificReturn := fake.getQueryResultReturnsOnCall[len(fake.getQueryResultArgsForCall)] 1520 fake.getQueryResultArgsForCall = append(fake.getQueryResultArgsForCall, struct { 1521 arg1 string 1522 }{arg1}) 1523 fake.recordInvocation("GetQueryResult", []interface{}{arg1}) 1524 fake.getQueryResultMutex.Unlock() 1525 if fake.GetQueryResultStub != nil { 1526 return fake.GetQueryResultStub(arg1) 1527 } 1528 if specificReturn { 1529 return ret.result1, ret.result2 1530 } 1531 fakeReturns := fake.getQueryResultReturns 1532 return fakeReturns.result1, fakeReturns.result2 1533 } 1534 1535 func (fake *ChaincodeStub) GetQueryResultCallCount() int { 1536 fake.getQueryResultMutex.RLock() 1537 defer fake.getQueryResultMutex.RUnlock() 1538 return len(fake.getQueryResultArgsForCall) 1539 } 1540 1541 func (fake *ChaincodeStub) GetQueryResultCalls(stub func(string) (shim.StateQueryIteratorInterface, error)) { 1542 fake.getQueryResultMutex.Lock() 1543 defer fake.getQueryResultMutex.Unlock() 1544 fake.GetQueryResultStub = stub 1545 } 1546 1547 func (fake *ChaincodeStub) GetQueryResultArgsForCall(i int) string { 1548 fake.getQueryResultMutex.RLock() 1549 defer fake.getQueryResultMutex.RUnlock() 1550 argsForCall := fake.getQueryResultArgsForCall[i] 1551 return argsForCall.arg1 1552 } 1553 1554 func (fake *ChaincodeStub) GetQueryResultReturns(result1 shim.StateQueryIteratorInterface, result2 error) { 1555 fake.getQueryResultMutex.Lock() 1556 defer fake.getQueryResultMutex.Unlock() 1557 fake.GetQueryResultStub = nil 1558 fake.getQueryResultReturns = struct { 1559 result1 shim.StateQueryIteratorInterface 1560 result2 error 1561 }{result1, result2} 1562 } 1563 1564 func (fake *ChaincodeStub) GetQueryResultReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) { 1565 fake.getQueryResultMutex.Lock() 1566 defer fake.getQueryResultMutex.Unlock() 1567 fake.GetQueryResultStub = nil 1568 if fake.getQueryResultReturnsOnCall == nil { 1569 fake.getQueryResultReturnsOnCall = make(map[int]struct { 1570 result1 shim.StateQueryIteratorInterface 1571 result2 error 1572 }) 1573 } 1574 fake.getQueryResultReturnsOnCall[i] = struct { 1575 result1 shim.StateQueryIteratorInterface 1576 result2 error 1577 }{result1, result2} 1578 } 1579 1580 func (fake *ChaincodeStub) GetQueryResultWithPagination(arg1 string, arg2 int32, arg3 string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error) { 1581 fake.getQueryResultWithPaginationMutex.Lock() 1582 ret, specificReturn := fake.getQueryResultWithPaginationReturnsOnCall[len(fake.getQueryResultWithPaginationArgsForCall)] 1583 fake.getQueryResultWithPaginationArgsForCall = append(fake.getQueryResultWithPaginationArgsForCall, struct { 1584 arg1 string 1585 arg2 int32 1586 arg3 string 1587 }{arg1, arg2, arg3}) 1588 fake.recordInvocation("GetQueryResultWithPagination", []interface{}{arg1, arg2, arg3}) 1589 fake.getQueryResultWithPaginationMutex.Unlock() 1590 if fake.GetQueryResultWithPaginationStub != nil { 1591 return fake.GetQueryResultWithPaginationStub(arg1, arg2, arg3) 1592 } 1593 if specificReturn { 1594 return ret.result1, ret.result2, ret.result3 1595 } 1596 fakeReturns := fake.getQueryResultWithPaginationReturns 1597 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1598 } 1599 1600 func (fake *ChaincodeStub) GetQueryResultWithPaginationCallCount() int { 1601 fake.getQueryResultWithPaginationMutex.RLock() 1602 defer fake.getQueryResultWithPaginationMutex.RUnlock() 1603 return len(fake.getQueryResultWithPaginationArgsForCall) 1604 } 1605 1606 func (fake *ChaincodeStub) GetQueryResultWithPaginationCalls(stub func(string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)) { 1607 fake.getQueryResultWithPaginationMutex.Lock() 1608 defer fake.getQueryResultWithPaginationMutex.Unlock() 1609 fake.GetQueryResultWithPaginationStub = stub 1610 } 1611 1612 func (fake *ChaincodeStub) GetQueryResultWithPaginationArgsForCall(i int) (string, int32, string) { 1613 fake.getQueryResultWithPaginationMutex.RLock() 1614 defer fake.getQueryResultWithPaginationMutex.RUnlock() 1615 argsForCall := fake.getQueryResultWithPaginationArgsForCall[i] 1616 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 1617 } 1618 1619 func (fake *ChaincodeStub) GetQueryResultWithPaginationReturns(result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) { 1620 fake.getQueryResultWithPaginationMutex.Lock() 1621 defer fake.getQueryResultWithPaginationMutex.Unlock() 1622 fake.GetQueryResultWithPaginationStub = nil 1623 fake.getQueryResultWithPaginationReturns = struct { 1624 result1 shim.StateQueryIteratorInterface 1625 result2 *peer.QueryResponseMetadata 1626 result3 error 1627 }{result1, result2, result3} 1628 } 1629 1630 func (fake *ChaincodeStub) GetQueryResultWithPaginationReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) { 1631 fake.getQueryResultWithPaginationMutex.Lock() 1632 defer fake.getQueryResultWithPaginationMutex.Unlock() 1633 fake.GetQueryResultWithPaginationStub = nil 1634 if fake.getQueryResultWithPaginationReturnsOnCall == nil { 1635 fake.getQueryResultWithPaginationReturnsOnCall = make(map[int]struct { 1636 result1 shim.StateQueryIteratorInterface 1637 result2 *peer.QueryResponseMetadata 1638 result3 error 1639 }) 1640 } 1641 fake.getQueryResultWithPaginationReturnsOnCall[i] = struct { 1642 result1 shim.StateQueryIteratorInterface 1643 result2 *peer.QueryResponseMetadata 1644 result3 error 1645 }{result1, result2, result3} 1646 } 1647 1648 func (fake *ChaincodeStub) GetSignedProposal() (*peer.SignedProposal, error) { 1649 fake.getSignedProposalMutex.Lock() 1650 ret, specificReturn := fake.getSignedProposalReturnsOnCall[len(fake.getSignedProposalArgsForCall)] 1651 fake.getSignedProposalArgsForCall = append(fake.getSignedProposalArgsForCall, struct { 1652 }{}) 1653 fake.recordInvocation("GetSignedProposal", []interface{}{}) 1654 fake.getSignedProposalMutex.Unlock() 1655 if fake.GetSignedProposalStub != nil { 1656 return fake.GetSignedProposalStub() 1657 } 1658 if specificReturn { 1659 return ret.result1, ret.result2 1660 } 1661 fakeReturns := fake.getSignedProposalReturns 1662 return fakeReturns.result1, fakeReturns.result2 1663 } 1664 1665 func (fake *ChaincodeStub) GetSignedProposalCallCount() int { 1666 fake.getSignedProposalMutex.RLock() 1667 defer fake.getSignedProposalMutex.RUnlock() 1668 return len(fake.getSignedProposalArgsForCall) 1669 } 1670 1671 func (fake *ChaincodeStub) GetSignedProposalCalls(stub func() (*peer.SignedProposal, error)) { 1672 fake.getSignedProposalMutex.Lock() 1673 defer fake.getSignedProposalMutex.Unlock() 1674 fake.GetSignedProposalStub = stub 1675 } 1676 1677 func (fake *ChaincodeStub) GetSignedProposalReturns(result1 *peer.SignedProposal, result2 error) { 1678 fake.getSignedProposalMutex.Lock() 1679 defer fake.getSignedProposalMutex.Unlock() 1680 fake.GetSignedProposalStub = nil 1681 fake.getSignedProposalReturns = struct { 1682 result1 *peer.SignedProposal 1683 result2 error 1684 }{result1, result2} 1685 } 1686 1687 func (fake *ChaincodeStub) GetSignedProposalReturnsOnCall(i int, result1 *peer.SignedProposal, result2 error) { 1688 fake.getSignedProposalMutex.Lock() 1689 defer fake.getSignedProposalMutex.Unlock() 1690 fake.GetSignedProposalStub = nil 1691 if fake.getSignedProposalReturnsOnCall == nil { 1692 fake.getSignedProposalReturnsOnCall = make(map[int]struct { 1693 result1 *peer.SignedProposal 1694 result2 error 1695 }) 1696 } 1697 fake.getSignedProposalReturnsOnCall[i] = struct { 1698 result1 *peer.SignedProposal 1699 result2 error 1700 }{result1, result2} 1701 } 1702 1703 func (fake *ChaincodeStub) GetState(arg1 string) ([]byte, error) { 1704 fake.getStateMutex.Lock() 1705 ret, specificReturn := fake.getStateReturnsOnCall[len(fake.getStateArgsForCall)] 1706 fake.getStateArgsForCall = append(fake.getStateArgsForCall, struct { 1707 arg1 string 1708 }{arg1}) 1709 fake.recordInvocation("GetState", []interface{}{arg1}) 1710 fake.getStateMutex.Unlock() 1711 if fake.GetStateStub != nil { 1712 return fake.GetStateStub(arg1) 1713 } 1714 if specificReturn { 1715 return ret.result1, ret.result2 1716 } 1717 fakeReturns := fake.getStateReturns 1718 return fakeReturns.result1, fakeReturns.result2 1719 } 1720 1721 func (fake *ChaincodeStub) GetStateCallCount() int { 1722 fake.getStateMutex.RLock() 1723 defer fake.getStateMutex.RUnlock() 1724 return len(fake.getStateArgsForCall) 1725 } 1726 1727 func (fake *ChaincodeStub) GetStateCalls(stub func(string) ([]byte, error)) { 1728 fake.getStateMutex.Lock() 1729 defer fake.getStateMutex.Unlock() 1730 fake.GetStateStub = stub 1731 } 1732 1733 func (fake *ChaincodeStub) GetStateArgsForCall(i int) string { 1734 fake.getStateMutex.RLock() 1735 defer fake.getStateMutex.RUnlock() 1736 argsForCall := fake.getStateArgsForCall[i] 1737 return argsForCall.arg1 1738 } 1739 1740 func (fake *ChaincodeStub) GetStateReturns(result1 []byte, result2 error) { 1741 fake.getStateMutex.Lock() 1742 defer fake.getStateMutex.Unlock() 1743 fake.GetStateStub = nil 1744 fake.getStateReturns = struct { 1745 result1 []byte 1746 result2 error 1747 }{result1, result2} 1748 } 1749 1750 func (fake *ChaincodeStub) GetStateReturnsOnCall(i int, result1 []byte, result2 error) { 1751 fake.getStateMutex.Lock() 1752 defer fake.getStateMutex.Unlock() 1753 fake.GetStateStub = nil 1754 if fake.getStateReturnsOnCall == nil { 1755 fake.getStateReturnsOnCall = make(map[int]struct { 1756 result1 []byte 1757 result2 error 1758 }) 1759 } 1760 fake.getStateReturnsOnCall[i] = struct { 1761 result1 []byte 1762 result2 error 1763 }{result1, result2} 1764 } 1765 1766 func (fake *ChaincodeStub) GetStateByPartialCompositeKey(arg1 string, arg2 []string) (shim.StateQueryIteratorInterface, error) { 1767 var arg2Copy []string 1768 if arg2 != nil { 1769 arg2Copy = make([]string, len(arg2)) 1770 copy(arg2Copy, arg2) 1771 } 1772 fake.getStateByPartialCompositeKeyMutex.Lock() 1773 ret, specificReturn := fake.getStateByPartialCompositeKeyReturnsOnCall[len(fake.getStateByPartialCompositeKeyArgsForCall)] 1774 fake.getStateByPartialCompositeKeyArgsForCall = append(fake.getStateByPartialCompositeKeyArgsForCall, struct { 1775 arg1 string 1776 arg2 []string 1777 }{arg1, arg2Copy}) 1778 fake.recordInvocation("GetStateByPartialCompositeKey", []interface{}{arg1, arg2Copy}) 1779 fake.getStateByPartialCompositeKeyMutex.Unlock() 1780 if fake.GetStateByPartialCompositeKeyStub != nil { 1781 return fake.GetStateByPartialCompositeKeyStub(arg1, arg2) 1782 } 1783 if specificReturn { 1784 return ret.result1, ret.result2 1785 } 1786 fakeReturns := fake.getStateByPartialCompositeKeyReturns 1787 return fakeReturns.result1, fakeReturns.result2 1788 } 1789 1790 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyCallCount() int { 1791 fake.getStateByPartialCompositeKeyMutex.RLock() 1792 defer fake.getStateByPartialCompositeKeyMutex.RUnlock() 1793 return len(fake.getStateByPartialCompositeKeyArgsForCall) 1794 } 1795 1796 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyCalls(stub func(string, []string) (shim.StateQueryIteratorInterface, error)) { 1797 fake.getStateByPartialCompositeKeyMutex.Lock() 1798 defer fake.getStateByPartialCompositeKeyMutex.Unlock() 1799 fake.GetStateByPartialCompositeKeyStub = stub 1800 } 1801 1802 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyArgsForCall(i int) (string, []string) { 1803 fake.getStateByPartialCompositeKeyMutex.RLock() 1804 defer fake.getStateByPartialCompositeKeyMutex.RUnlock() 1805 argsForCall := fake.getStateByPartialCompositeKeyArgsForCall[i] 1806 return argsForCall.arg1, argsForCall.arg2 1807 } 1808 1809 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyReturns(result1 shim.StateQueryIteratorInterface, result2 error) { 1810 fake.getStateByPartialCompositeKeyMutex.Lock() 1811 defer fake.getStateByPartialCompositeKeyMutex.Unlock() 1812 fake.GetStateByPartialCompositeKeyStub = nil 1813 fake.getStateByPartialCompositeKeyReturns = struct { 1814 result1 shim.StateQueryIteratorInterface 1815 result2 error 1816 }{result1, result2} 1817 } 1818 1819 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) { 1820 fake.getStateByPartialCompositeKeyMutex.Lock() 1821 defer fake.getStateByPartialCompositeKeyMutex.Unlock() 1822 fake.GetStateByPartialCompositeKeyStub = nil 1823 if fake.getStateByPartialCompositeKeyReturnsOnCall == nil { 1824 fake.getStateByPartialCompositeKeyReturnsOnCall = make(map[int]struct { 1825 result1 shim.StateQueryIteratorInterface 1826 result2 error 1827 }) 1828 } 1829 fake.getStateByPartialCompositeKeyReturnsOnCall[i] = struct { 1830 result1 shim.StateQueryIteratorInterface 1831 result2 error 1832 }{result1, result2} 1833 } 1834 1835 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPagination(arg1 string, arg2 []string, arg3 int32, arg4 string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error) { 1836 var arg2Copy []string 1837 if arg2 != nil { 1838 arg2Copy = make([]string, len(arg2)) 1839 copy(arg2Copy, arg2) 1840 } 1841 fake.getStateByPartialCompositeKeyWithPaginationMutex.Lock() 1842 ret, specificReturn := fake.getStateByPartialCompositeKeyWithPaginationReturnsOnCall[len(fake.getStateByPartialCompositeKeyWithPaginationArgsForCall)] 1843 fake.getStateByPartialCompositeKeyWithPaginationArgsForCall = append(fake.getStateByPartialCompositeKeyWithPaginationArgsForCall, struct { 1844 arg1 string 1845 arg2 []string 1846 arg3 int32 1847 arg4 string 1848 }{arg1, arg2Copy, arg3, arg4}) 1849 fake.recordInvocation("GetStateByPartialCompositeKeyWithPagination", []interface{}{arg1, arg2Copy, arg3, arg4}) 1850 fake.getStateByPartialCompositeKeyWithPaginationMutex.Unlock() 1851 if fake.GetStateByPartialCompositeKeyWithPaginationStub != nil { 1852 return fake.GetStateByPartialCompositeKeyWithPaginationStub(arg1, arg2, arg3, arg4) 1853 } 1854 if specificReturn { 1855 return ret.result1, ret.result2, ret.result3 1856 } 1857 fakeReturns := fake.getStateByPartialCompositeKeyWithPaginationReturns 1858 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1859 } 1860 1861 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationCallCount() int { 1862 fake.getStateByPartialCompositeKeyWithPaginationMutex.RLock() 1863 defer fake.getStateByPartialCompositeKeyWithPaginationMutex.RUnlock() 1864 return len(fake.getStateByPartialCompositeKeyWithPaginationArgsForCall) 1865 } 1866 1867 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationCalls(stub func(string, []string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)) { 1868 fake.getStateByPartialCompositeKeyWithPaginationMutex.Lock() 1869 defer fake.getStateByPartialCompositeKeyWithPaginationMutex.Unlock() 1870 fake.GetStateByPartialCompositeKeyWithPaginationStub = stub 1871 } 1872 1873 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationArgsForCall(i int) (string, []string, int32, string) { 1874 fake.getStateByPartialCompositeKeyWithPaginationMutex.RLock() 1875 defer fake.getStateByPartialCompositeKeyWithPaginationMutex.RUnlock() 1876 argsForCall := fake.getStateByPartialCompositeKeyWithPaginationArgsForCall[i] 1877 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 1878 } 1879 1880 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationReturns(result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) { 1881 fake.getStateByPartialCompositeKeyWithPaginationMutex.Lock() 1882 defer fake.getStateByPartialCompositeKeyWithPaginationMutex.Unlock() 1883 fake.GetStateByPartialCompositeKeyWithPaginationStub = nil 1884 fake.getStateByPartialCompositeKeyWithPaginationReturns = struct { 1885 result1 shim.StateQueryIteratorInterface 1886 result2 *peer.QueryResponseMetadata 1887 result3 error 1888 }{result1, result2, result3} 1889 } 1890 1891 func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) { 1892 fake.getStateByPartialCompositeKeyWithPaginationMutex.Lock() 1893 defer fake.getStateByPartialCompositeKeyWithPaginationMutex.Unlock() 1894 fake.GetStateByPartialCompositeKeyWithPaginationStub = nil 1895 if fake.getStateByPartialCompositeKeyWithPaginationReturnsOnCall == nil { 1896 fake.getStateByPartialCompositeKeyWithPaginationReturnsOnCall = make(map[int]struct { 1897 result1 shim.StateQueryIteratorInterface 1898 result2 *peer.QueryResponseMetadata 1899 result3 error 1900 }) 1901 } 1902 fake.getStateByPartialCompositeKeyWithPaginationReturnsOnCall[i] = struct { 1903 result1 shim.StateQueryIteratorInterface 1904 result2 *peer.QueryResponseMetadata 1905 result3 error 1906 }{result1, result2, result3} 1907 } 1908 1909 func (fake *ChaincodeStub) GetStateByRange(arg1 string, arg2 string) (shim.StateQueryIteratorInterface, error) { 1910 fake.getStateByRangeMutex.Lock() 1911 ret, specificReturn := fake.getStateByRangeReturnsOnCall[len(fake.getStateByRangeArgsForCall)] 1912 fake.getStateByRangeArgsForCall = append(fake.getStateByRangeArgsForCall, struct { 1913 arg1 string 1914 arg2 string 1915 }{arg1, arg2}) 1916 fake.recordInvocation("GetStateByRange", []interface{}{arg1, arg2}) 1917 fake.getStateByRangeMutex.Unlock() 1918 if fake.GetStateByRangeStub != nil { 1919 return fake.GetStateByRangeStub(arg1, arg2) 1920 } 1921 if specificReturn { 1922 return ret.result1, ret.result2 1923 } 1924 fakeReturns := fake.getStateByRangeReturns 1925 return fakeReturns.result1, fakeReturns.result2 1926 } 1927 1928 func (fake *ChaincodeStub) GetStateByRangeCallCount() int { 1929 fake.getStateByRangeMutex.RLock() 1930 defer fake.getStateByRangeMutex.RUnlock() 1931 return len(fake.getStateByRangeArgsForCall) 1932 } 1933 1934 func (fake *ChaincodeStub) GetStateByRangeCalls(stub func(string, string) (shim.StateQueryIteratorInterface, error)) { 1935 fake.getStateByRangeMutex.Lock() 1936 defer fake.getStateByRangeMutex.Unlock() 1937 fake.GetStateByRangeStub = stub 1938 } 1939 1940 func (fake *ChaincodeStub) GetStateByRangeArgsForCall(i int) (string, string) { 1941 fake.getStateByRangeMutex.RLock() 1942 defer fake.getStateByRangeMutex.RUnlock() 1943 argsForCall := fake.getStateByRangeArgsForCall[i] 1944 return argsForCall.arg1, argsForCall.arg2 1945 } 1946 1947 func (fake *ChaincodeStub) GetStateByRangeReturns(result1 shim.StateQueryIteratorInterface, result2 error) { 1948 fake.getStateByRangeMutex.Lock() 1949 defer fake.getStateByRangeMutex.Unlock() 1950 fake.GetStateByRangeStub = nil 1951 fake.getStateByRangeReturns = struct { 1952 result1 shim.StateQueryIteratorInterface 1953 result2 error 1954 }{result1, result2} 1955 } 1956 1957 func (fake *ChaincodeStub) GetStateByRangeReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) { 1958 fake.getStateByRangeMutex.Lock() 1959 defer fake.getStateByRangeMutex.Unlock() 1960 fake.GetStateByRangeStub = nil 1961 if fake.getStateByRangeReturnsOnCall == nil { 1962 fake.getStateByRangeReturnsOnCall = make(map[int]struct { 1963 result1 shim.StateQueryIteratorInterface 1964 result2 error 1965 }) 1966 } 1967 fake.getStateByRangeReturnsOnCall[i] = struct { 1968 result1 shim.StateQueryIteratorInterface 1969 result2 error 1970 }{result1, result2} 1971 } 1972 1973 func (fake *ChaincodeStub) GetStateByRangeWithPagination(arg1 string, arg2 string, arg3 int32, arg4 string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error) { 1974 fake.getStateByRangeWithPaginationMutex.Lock() 1975 ret, specificReturn := fake.getStateByRangeWithPaginationReturnsOnCall[len(fake.getStateByRangeWithPaginationArgsForCall)] 1976 fake.getStateByRangeWithPaginationArgsForCall = append(fake.getStateByRangeWithPaginationArgsForCall, struct { 1977 arg1 string 1978 arg2 string 1979 arg3 int32 1980 arg4 string 1981 }{arg1, arg2, arg3, arg4}) 1982 fake.recordInvocation("GetStateByRangeWithPagination", []interface{}{arg1, arg2, arg3, arg4}) 1983 fake.getStateByRangeWithPaginationMutex.Unlock() 1984 if fake.GetStateByRangeWithPaginationStub != nil { 1985 return fake.GetStateByRangeWithPaginationStub(arg1, arg2, arg3, arg4) 1986 } 1987 if specificReturn { 1988 return ret.result1, ret.result2, ret.result3 1989 } 1990 fakeReturns := fake.getStateByRangeWithPaginationReturns 1991 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 1992 } 1993 1994 func (fake *ChaincodeStub) GetStateByRangeWithPaginationCallCount() int { 1995 fake.getStateByRangeWithPaginationMutex.RLock() 1996 defer fake.getStateByRangeWithPaginationMutex.RUnlock() 1997 return len(fake.getStateByRangeWithPaginationArgsForCall) 1998 } 1999 2000 func (fake *ChaincodeStub) GetStateByRangeWithPaginationCalls(stub func(string, string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)) { 2001 fake.getStateByRangeWithPaginationMutex.Lock() 2002 defer fake.getStateByRangeWithPaginationMutex.Unlock() 2003 fake.GetStateByRangeWithPaginationStub = stub 2004 } 2005 2006 func (fake *ChaincodeStub) GetStateByRangeWithPaginationArgsForCall(i int) (string, string, int32, string) { 2007 fake.getStateByRangeWithPaginationMutex.RLock() 2008 defer fake.getStateByRangeWithPaginationMutex.RUnlock() 2009 argsForCall := fake.getStateByRangeWithPaginationArgsForCall[i] 2010 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 2011 } 2012 2013 func (fake *ChaincodeStub) GetStateByRangeWithPaginationReturns(result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) { 2014 fake.getStateByRangeWithPaginationMutex.Lock() 2015 defer fake.getStateByRangeWithPaginationMutex.Unlock() 2016 fake.GetStateByRangeWithPaginationStub = nil 2017 fake.getStateByRangeWithPaginationReturns = struct { 2018 result1 shim.StateQueryIteratorInterface 2019 result2 *peer.QueryResponseMetadata 2020 result3 error 2021 }{result1, result2, result3} 2022 } 2023 2024 func (fake *ChaincodeStub) GetStateByRangeWithPaginationReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) { 2025 fake.getStateByRangeWithPaginationMutex.Lock() 2026 defer fake.getStateByRangeWithPaginationMutex.Unlock() 2027 fake.GetStateByRangeWithPaginationStub = nil 2028 if fake.getStateByRangeWithPaginationReturnsOnCall == nil { 2029 fake.getStateByRangeWithPaginationReturnsOnCall = make(map[int]struct { 2030 result1 shim.StateQueryIteratorInterface 2031 result2 *peer.QueryResponseMetadata 2032 result3 error 2033 }) 2034 } 2035 fake.getStateByRangeWithPaginationReturnsOnCall[i] = struct { 2036 result1 shim.StateQueryIteratorInterface 2037 result2 *peer.QueryResponseMetadata 2038 result3 error 2039 }{result1, result2, result3} 2040 } 2041 2042 func (fake *ChaincodeStub) GetStateValidationParameter(arg1 string) ([]byte, error) { 2043 fake.getStateValidationParameterMutex.Lock() 2044 ret, specificReturn := fake.getStateValidationParameterReturnsOnCall[len(fake.getStateValidationParameterArgsForCall)] 2045 fake.getStateValidationParameterArgsForCall = append(fake.getStateValidationParameterArgsForCall, struct { 2046 arg1 string 2047 }{arg1}) 2048 fake.recordInvocation("GetStateValidationParameter", []interface{}{arg1}) 2049 fake.getStateValidationParameterMutex.Unlock() 2050 if fake.GetStateValidationParameterStub != nil { 2051 return fake.GetStateValidationParameterStub(arg1) 2052 } 2053 if specificReturn { 2054 return ret.result1, ret.result2 2055 } 2056 fakeReturns := fake.getStateValidationParameterReturns 2057 return fakeReturns.result1, fakeReturns.result2 2058 } 2059 2060 func (fake *ChaincodeStub) GetStateValidationParameterCallCount() int { 2061 fake.getStateValidationParameterMutex.RLock() 2062 defer fake.getStateValidationParameterMutex.RUnlock() 2063 return len(fake.getStateValidationParameterArgsForCall) 2064 } 2065 2066 func (fake *ChaincodeStub) GetStateValidationParameterCalls(stub func(string) ([]byte, error)) { 2067 fake.getStateValidationParameterMutex.Lock() 2068 defer fake.getStateValidationParameterMutex.Unlock() 2069 fake.GetStateValidationParameterStub = stub 2070 } 2071 2072 func (fake *ChaincodeStub) GetStateValidationParameterArgsForCall(i int) string { 2073 fake.getStateValidationParameterMutex.RLock() 2074 defer fake.getStateValidationParameterMutex.RUnlock() 2075 argsForCall := fake.getStateValidationParameterArgsForCall[i] 2076 return argsForCall.arg1 2077 } 2078 2079 func (fake *ChaincodeStub) GetStateValidationParameterReturns(result1 []byte, result2 error) { 2080 fake.getStateValidationParameterMutex.Lock() 2081 defer fake.getStateValidationParameterMutex.Unlock() 2082 fake.GetStateValidationParameterStub = nil 2083 fake.getStateValidationParameterReturns = struct { 2084 result1 []byte 2085 result2 error 2086 }{result1, result2} 2087 } 2088 2089 func (fake *ChaincodeStub) GetStateValidationParameterReturnsOnCall(i int, result1 []byte, result2 error) { 2090 fake.getStateValidationParameterMutex.Lock() 2091 defer fake.getStateValidationParameterMutex.Unlock() 2092 fake.GetStateValidationParameterStub = nil 2093 if fake.getStateValidationParameterReturnsOnCall == nil { 2094 fake.getStateValidationParameterReturnsOnCall = make(map[int]struct { 2095 result1 []byte 2096 result2 error 2097 }) 2098 } 2099 fake.getStateValidationParameterReturnsOnCall[i] = struct { 2100 result1 []byte 2101 result2 error 2102 }{result1, result2} 2103 } 2104 2105 func (fake *ChaincodeStub) GetStringArgs() []string { 2106 fake.getStringArgsMutex.Lock() 2107 ret, specificReturn := fake.getStringArgsReturnsOnCall[len(fake.getStringArgsArgsForCall)] 2108 fake.getStringArgsArgsForCall = append(fake.getStringArgsArgsForCall, struct { 2109 }{}) 2110 fake.recordInvocation("GetStringArgs", []interface{}{}) 2111 fake.getStringArgsMutex.Unlock() 2112 if fake.GetStringArgsStub != nil { 2113 return fake.GetStringArgsStub() 2114 } 2115 if specificReturn { 2116 return ret.result1 2117 } 2118 fakeReturns := fake.getStringArgsReturns 2119 return fakeReturns.result1 2120 } 2121 2122 func (fake *ChaincodeStub) GetStringArgsCallCount() int { 2123 fake.getStringArgsMutex.RLock() 2124 defer fake.getStringArgsMutex.RUnlock() 2125 return len(fake.getStringArgsArgsForCall) 2126 } 2127 2128 func (fake *ChaincodeStub) GetStringArgsCalls(stub func() []string) { 2129 fake.getStringArgsMutex.Lock() 2130 defer fake.getStringArgsMutex.Unlock() 2131 fake.GetStringArgsStub = stub 2132 } 2133 2134 func (fake *ChaincodeStub) GetStringArgsReturns(result1 []string) { 2135 fake.getStringArgsMutex.Lock() 2136 defer fake.getStringArgsMutex.Unlock() 2137 fake.GetStringArgsStub = nil 2138 fake.getStringArgsReturns = struct { 2139 result1 []string 2140 }{result1} 2141 } 2142 2143 func (fake *ChaincodeStub) GetStringArgsReturnsOnCall(i int, result1 []string) { 2144 fake.getStringArgsMutex.Lock() 2145 defer fake.getStringArgsMutex.Unlock() 2146 fake.GetStringArgsStub = nil 2147 if fake.getStringArgsReturnsOnCall == nil { 2148 fake.getStringArgsReturnsOnCall = make(map[int]struct { 2149 result1 []string 2150 }) 2151 } 2152 fake.getStringArgsReturnsOnCall[i] = struct { 2153 result1 []string 2154 }{result1} 2155 } 2156 2157 func (fake *ChaincodeStub) GetTransient() (map[string][]byte, error) { 2158 fake.getTransientMutex.Lock() 2159 ret, specificReturn := fake.getTransientReturnsOnCall[len(fake.getTransientArgsForCall)] 2160 fake.getTransientArgsForCall = append(fake.getTransientArgsForCall, struct { 2161 }{}) 2162 fake.recordInvocation("GetTransient", []interface{}{}) 2163 fake.getTransientMutex.Unlock() 2164 if fake.GetTransientStub != nil { 2165 return fake.GetTransientStub() 2166 } 2167 if specificReturn { 2168 return ret.result1, ret.result2 2169 } 2170 fakeReturns := fake.getTransientReturns 2171 return fakeReturns.result1, fakeReturns.result2 2172 } 2173 2174 func (fake *ChaincodeStub) GetTransientCallCount() int { 2175 fake.getTransientMutex.RLock() 2176 defer fake.getTransientMutex.RUnlock() 2177 return len(fake.getTransientArgsForCall) 2178 } 2179 2180 func (fake *ChaincodeStub) GetTransientCalls(stub func() (map[string][]byte, error)) { 2181 fake.getTransientMutex.Lock() 2182 defer fake.getTransientMutex.Unlock() 2183 fake.GetTransientStub = stub 2184 } 2185 2186 func (fake *ChaincodeStub) GetTransientReturns(result1 map[string][]byte, result2 error) { 2187 fake.getTransientMutex.Lock() 2188 defer fake.getTransientMutex.Unlock() 2189 fake.GetTransientStub = nil 2190 fake.getTransientReturns = struct { 2191 result1 map[string][]byte 2192 result2 error 2193 }{result1, result2} 2194 } 2195 2196 func (fake *ChaincodeStub) GetTransientReturnsOnCall(i int, result1 map[string][]byte, result2 error) { 2197 fake.getTransientMutex.Lock() 2198 defer fake.getTransientMutex.Unlock() 2199 fake.GetTransientStub = nil 2200 if fake.getTransientReturnsOnCall == nil { 2201 fake.getTransientReturnsOnCall = make(map[int]struct { 2202 result1 map[string][]byte 2203 result2 error 2204 }) 2205 } 2206 fake.getTransientReturnsOnCall[i] = struct { 2207 result1 map[string][]byte 2208 result2 error 2209 }{result1, result2} 2210 } 2211 2212 func (fake *ChaincodeStub) GetTxID() string { 2213 fake.getTxIDMutex.Lock() 2214 ret, specificReturn := fake.getTxIDReturnsOnCall[len(fake.getTxIDArgsForCall)] 2215 fake.getTxIDArgsForCall = append(fake.getTxIDArgsForCall, struct { 2216 }{}) 2217 fake.recordInvocation("GetTxID", []interface{}{}) 2218 fake.getTxIDMutex.Unlock() 2219 if fake.GetTxIDStub != nil { 2220 return fake.GetTxIDStub() 2221 } 2222 if specificReturn { 2223 return ret.result1 2224 } 2225 fakeReturns := fake.getTxIDReturns 2226 return fakeReturns.result1 2227 } 2228 2229 func (fake *ChaincodeStub) GetTxIDCallCount() int { 2230 fake.getTxIDMutex.RLock() 2231 defer fake.getTxIDMutex.RUnlock() 2232 return len(fake.getTxIDArgsForCall) 2233 } 2234 2235 func (fake *ChaincodeStub) GetTxIDCalls(stub func() string) { 2236 fake.getTxIDMutex.Lock() 2237 defer fake.getTxIDMutex.Unlock() 2238 fake.GetTxIDStub = stub 2239 } 2240 2241 func (fake *ChaincodeStub) GetTxIDReturns(result1 string) { 2242 fake.getTxIDMutex.Lock() 2243 defer fake.getTxIDMutex.Unlock() 2244 fake.GetTxIDStub = nil 2245 fake.getTxIDReturns = struct { 2246 result1 string 2247 }{result1} 2248 } 2249 2250 func (fake *ChaincodeStub) GetTxIDReturnsOnCall(i int, result1 string) { 2251 fake.getTxIDMutex.Lock() 2252 defer fake.getTxIDMutex.Unlock() 2253 fake.GetTxIDStub = nil 2254 if fake.getTxIDReturnsOnCall == nil { 2255 fake.getTxIDReturnsOnCall = make(map[int]struct { 2256 result1 string 2257 }) 2258 } 2259 fake.getTxIDReturnsOnCall[i] = struct { 2260 result1 string 2261 }{result1} 2262 } 2263 2264 func (fake *ChaincodeStub) GetTxTimestamp() (*timestamp.Timestamp, error) { 2265 fake.getTxTimestampMutex.Lock() 2266 ret, specificReturn := fake.getTxTimestampReturnsOnCall[len(fake.getTxTimestampArgsForCall)] 2267 fake.getTxTimestampArgsForCall = append(fake.getTxTimestampArgsForCall, struct { 2268 }{}) 2269 fake.recordInvocation("GetTxTimestamp", []interface{}{}) 2270 fake.getTxTimestampMutex.Unlock() 2271 if fake.GetTxTimestampStub != nil { 2272 return fake.GetTxTimestampStub() 2273 } 2274 if specificReturn { 2275 return ret.result1, ret.result2 2276 } 2277 fakeReturns := fake.getTxTimestampReturns 2278 return fakeReturns.result1, fakeReturns.result2 2279 } 2280 2281 func (fake *ChaincodeStub) GetTxTimestampCallCount() int { 2282 fake.getTxTimestampMutex.RLock() 2283 defer fake.getTxTimestampMutex.RUnlock() 2284 return len(fake.getTxTimestampArgsForCall) 2285 } 2286 2287 func (fake *ChaincodeStub) GetTxTimestampCalls(stub func() (*timestamp.Timestamp, error)) { 2288 fake.getTxTimestampMutex.Lock() 2289 defer fake.getTxTimestampMutex.Unlock() 2290 fake.GetTxTimestampStub = stub 2291 } 2292 2293 func (fake *ChaincodeStub) GetTxTimestampReturns(result1 *timestamp.Timestamp, result2 error) { 2294 fake.getTxTimestampMutex.Lock() 2295 defer fake.getTxTimestampMutex.Unlock() 2296 fake.GetTxTimestampStub = nil 2297 fake.getTxTimestampReturns = struct { 2298 result1 *timestamp.Timestamp 2299 result2 error 2300 }{result1, result2} 2301 } 2302 2303 func (fake *ChaincodeStub) GetTxTimestampReturnsOnCall(i int, result1 *timestamp.Timestamp, result2 error) { 2304 fake.getTxTimestampMutex.Lock() 2305 defer fake.getTxTimestampMutex.Unlock() 2306 fake.GetTxTimestampStub = nil 2307 if fake.getTxTimestampReturnsOnCall == nil { 2308 fake.getTxTimestampReturnsOnCall = make(map[int]struct { 2309 result1 *timestamp.Timestamp 2310 result2 error 2311 }) 2312 } 2313 fake.getTxTimestampReturnsOnCall[i] = struct { 2314 result1 *timestamp.Timestamp 2315 result2 error 2316 }{result1, result2} 2317 } 2318 2319 func (fake *ChaincodeStub) InvokeChaincode(arg1 string, arg2 [][]byte, arg3 string) peer.Response { 2320 var arg2Copy [][]byte 2321 if arg2 != nil { 2322 arg2Copy = make([][]byte, len(arg2)) 2323 copy(arg2Copy, arg2) 2324 } 2325 fake.invokeChaincodeMutex.Lock() 2326 ret, specificReturn := fake.invokeChaincodeReturnsOnCall[len(fake.invokeChaincodeArgsForCall)] 2327 fake.invokeChaincodeArgsForCall = append(fake.invokeChaincodeArgsForCall, struct { 2328 arg1 string 2329 arg2 [][]byte 2330 arg3 string 2331 }{arg1, arg2Copy, arg3}) 2332 fake.recordInvocation("InvokeChaincode", []interface{}{arg1, arg2Copy, arg3}) 2333 fake.invokeChaincodeMutex.Unlock() 2334 if fake.InvokeChaincodeStub != nil { 2335 return fake.InvokeChaincodeStub(arg1, arg2, arg3) 2336 } 2337 if specificReturn { 2338 return ret.result1 2339 } 2340 fakeReturns := fake.invokeChaincodeReturns 2341 return fakeReturns.result1 2342 } 2343 2344 func (fake *ChaincodeStub) InvokeChaincodeCallCount() int { 2345 fake.invokeChaincodeMutex.RLock() 2346 defer fake.invokeChaincodeMutex.RUnlock() 2347 return len(fake.invokeChaincodeArgsForCall) 2348 } 2349 2350 func (fake *ChaincodeStub) InvokeChaincodeCalls(stub func(string, [][]byte, string) peer.Response) { 2351 fake.invokeChaincodeMutex.Lock() 2352 defer fake.invokeChaincodeMutex.Unlock() 2353 fake.InvokeChaincodeStub = stub 2354 } 2355 2356 func (fake *ChaincodeStub) InvokeChaincodeArgsForCall(i int) (string, [][]byte, string) { 2357 fake.invokeChaincodeMutex.RLock() 2358 defer fake.invokeChaincodeMutex.RUnlock() 2359 argsForCall := fake.invokeChaincodeArgsForCall[i] 2360 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 2361 } 2362 2363 func (fake *ChaincodeStub) InvokeChaincodeReturns(result1 peer.Response) { 2364 fake.invokeChaincodeMutex.Lock() 2365 defer fake.invokeChaincodeMutex.Unlock() 2366 fake.InvokeChaincodeStub = nil 2367 fake.invokeChaincodeReturns = struct { 2368 result1 peer.Response 2369 }{result1} 2370 } 2371 2372 func (fake *ChaincodeStub) InvokeChaincodeReturnsOnCall(i int, result1 peer.Response) { 2373 fake.invokeChaincodeMutex.Lock() 2374 defer fake.invokeChaincodeMutex.Unlock() 2375 fake.InvokeChaincodeStub = nil 2376 if fake.invokeChaincodeReturnsOnCall == nil { 2377 fake.invokeChaincodeReturnsOnCall = make(map[int]struct { 2378 result1 peer.Response 2379 }) 2380 } 2381 fake.invokeChaincodeReturnsOnCall[i] = struct { 2382 result1 peer.Response 2383 }{result1} 2384 } 2385 2386 func (fake *ChaincodeStub) PutPrivateData(arg1 string, arg2 string, arg3 []byte) error { 2387 var arg3Copy []byte 2388 if arg3 != nil { 2389 arg3Copy = make([]byte, len(arg3)) 2390 copy(arg3Copy, arg3) 2391 } 2392 fake.putPrivateDataMutex.Lock() 2393 ret, specificReturn := fake.putPrivateDataReturnsOnCall[len(fake.putPrivateDataArgsForCall)] 2394 fake.putPrivateDataArgsForCall = append(fake.putPrivateDataArgsForCall, struct { 2395 arg1 string 2396 arg2 string 2397 arg3 []byte 2398 }{arg1, arg2, arg3Copy}) 2399 fake.recordInvocation("PutPrivateData", []interface{}{arg1, arg2, arg3Copy}) 2400 fake.putPrivateDataMutex.Unlock() 2401 if fake.PutPrivateDataStub != nil { 2402 return fake.PutPrivateDataStub(arg1, arg2, arg3) 2403 } 2404 if specificReturn { 2405 return ret.result1 2406 } 2407 fakeReturns := fake.putPrivateDataReturns 2408 return fakeReturns.result1 2409 } 2410 2411 func (fake *ChaincodeStub) PutPrivateDataCallCount() int { 2412 fake.putPrivateDataMutex.RLock() 2413 defer fake.putPrivateDataMutex.RUnlock() 2414 return len(fake.putPrivateDataArgsForCall) 2415 } 2416 2417 func (fake *ChaincodeStub) PutPrivateDataCalls(stub func(string, string, []byte) error) { 2418 fake.putPrivateDataMutex.Lock() 2419 defer fake.putPrivateDataMutex.Unlock() 2420 fake.PutPrivateDataStub = stub 2421 } 2422 2423 func (fake *ChaincodeStub) PutPrivateDataArgsForCall(i int) (string, string, []byte) { 2424 fake.putPrivateDataMutex.RLock() 2425 defer fake.putPrivateDataMutex.RUnlock() 2426 argsForCall := fake.putPrivateDataArgsForCall[i] 2427 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 2428 } 2429 2430 func (fake *ChaincodeStub) PutPrivateDataReturns(result1 error) { 2431 fake.putPrivateDataMutex.Lock() 2432 defer fake.putPrivateDataMutex.Unlock() 2433 fake.PutPrivateDataStub = nil 2434 fake.putPrivateDataReturns = struct { 2435 result1 error 2436 }{result1} 2437 } 2438 2439 func (fake *ChaincodeStub) PutPrivateDataReturnsOnCall(i int, result1 error) { 2440 fake.putPrivateDataMutex.Lock() 2441 defer fake.putPrivateDataMutex.Unlock() 2442 fake.PutPrivateDataStub = nil 2443 if fake.putPrivateDataReturnsOnCall == nil { 2444 fake.putPrivateDataReturnsOnCall = make(map[int]struct { 2445 result1 error 2446 }) 2447 } 2448 fake.putPrivateDataReturnsOnCall[i] = struct { 2449 result1 error 2450 }{result1} 2451 } 2452 2453 func (fake *ChaincodeStub) PutState(arg1 string, arg2 []byte) error { 2454 var arg2Copy []byte 2455 if arg2 != nil { 2456 arg2Copy = make([]byte, len(arg2)) 2457 copy(arg2Copy, arg2) 2458 } 2459 fake.putStateMutex.Lock() 2460 ret, specificReturn := fake.putStateReturnsOnCall[len(fake.putStateArgsForCall)] 2461 fake.putStateArgsForCall = append(fake.putStateArgsForCall, struct { 2462 arg1 string 2463 arg2 []byte 2464 }{arg1, arg2Copy}) 2465 fake.recordInvocation("PutState", []interface{}{arg1, arg2Copy}) 2466 fake.putStateMutex.Unlock() 2467 if fake.PutStateStub != nil { 2468 return fake.PutStateStub(arg1, arg2) 2469 } 2470 if specificReturn { 2471 return ret.result1 2472 } 2473 fakeReturns := fake.putStateReturns 2474 return fakeReturns.result1 2475 } 2476 2477 func (fake *ChaincodeStub) PutStateCallCount() int { 2478 fake.putStateMutex.RLock() 2479 defer fake.putStateMutex.RUnlock() 2480 return len(fake.putStateArgsForCall) 2481 } 2482 2483 func (fake *ChaincodeStub) PutStateCalls(stub func(string, []byte) error) { 2484 fake.putStateMutex.Lock() 2485 defer fake.putStateMutex.Unlock() 2486 fake.PutStateStub = stub 2487 } 2488 2489 func (fake *ChaincodeStub) PutStateArgsForCall(i int) (string, []byte) { 2490 fake.putStateMutex.RLock() 2491 defer fake.putStateMutex.RUnlock() 2492 argsForCall := fake.putStateArgsForCall[i] 2493 return argsForCall.arg1, argsForCall.arg2 2494 } 2495 2496 func (fake *ChaincodeStub) PutStateReturns(result1 error) { 2497 fake.putStateMutex.Lock() 2498 defer fake.putStateMutex.Unlock() 2499 fake.PutStateStub = nil 2500 fake.putStateReturns = struct { 2501 result1 error 2502 }{result1} 2503 } 2504 2505 func (fake *ChaincodeStub) PutStateReturnsOnCall(i int, result1 error) { 2506 fake.putStateMutex.Lock() 2507 defer fake.putStateMutex.Unlock() 2508 fake.PutStateStub = nil 2509 if fake.putStateReturnsOnCall == nil { 2510 fake.putStateReturnsOnCall = make(map[int]struct { 2511 result1 error 2512 }) 2513 } 2514 fake.putStateReturnsOnCall[i] = struct { 2515 result1 error 2516 }{result1} 2517 } 2518 2519 func (fake *ChaincodeStub) SetEvent(arg1 string, arg2 []byte) error { 2520 var arg2Copy []byte 2521 if arg2 != nil { 2522 arg2Copy = make([]byte, len(arg2)) 2523 copy(arg2Copy, arg2) 2524 } 2525 fake.setEventMutex.Lock() 2526 ret, specificReturn := fake.setEventReturnsOnCall[len(fake.setEventArgsForCall)] 2527 fake.setEventArgsForCall = append(fake.setEventArgsForCall, struct { 2528 arg1 string 2529 arg2 []byte 2530 }{arg1, arg2Copy}) 2531 fake.recordInvocation("SetEvent", []interface{}{arg1, arg2Copy}) 2532 fake.setEventMutex.Unlock() 2533 if fake.SetEventStub != nil { 2534 return fake.SetEventStub(arg1, arg2) 2535 } 2536 if specificReturn { 2537 return ret.result1 2538 } 2539 fakeReturns := fake.setEventReturns 2540 return fakeReturns.result1 2541 } 2542 2543 func (fake *ChaincodeStub) SetEventCallCount() int { 2544 fake.setEventMutex.RLock() 2545 defer fake.setEventMutex.RUnlock() 2546 return len(fake.setEventArgsForCall) 2547 } 2548 2549 func (fake *ChaincodeStub) SetEventCalls(stub func(string, []byte) error) { 2550 fake.setEventMutex.Lock() 2551 defer fake.setEventMutex.Unlock() 2552 fake.SetEventStub = stub 2553 } 2554 2555 func (fake *ChaincodeStub) SetEventArgsForCall(i int) (string, []byte) { 2556 fake.setEventMutex.RLock() 2557 defer fake.setEventMutex.RUnlock() 2558 argsForCall := fake.setEventArgsForCall[i] 2559 return argsForCall.arg1, argsForCall.arg2 2560 } 2561 2562 func (fake *ChaincodeStub) SetEventReturns(result1 error) { 2563 fake.setEventMutex.Lock() 2564 defer fake.setEventMutex.Unlock() 2565 fake.SetEventStub = nil 2566 fake.setEventReturns = struct { 2567 result1 error 2568 }{result1} 2569 } 2570 2571 func (fake *ChaincodeStub) SetEventReturnsOnCall(i int, result1 error) { 2572 fake.setEventMutex.Lock() 2573 defer fake.setEventMutex.Unlock() 2574 fake.SetEventStub = nil 2575 if fake.setEventReturnsOnCall == nil { 2576 fake.setEventReturnsOnCall = make(map[int]struct { 2577 result1 error 2578 }) 2579 } 2580 fake.setEventReturnsOnCall[i] = struct { 2581 result1 error 2582 }{result1} 2583 } 2584 2585 func (fake *ChaincodeStub) SetPrivateDataValidationParameter(arg1 string, arg2 string, arg3 []byte) error { 2586 var arg3Copy []byte 2587 if arg3 != nil { 2588 arg3Copy = make([]byte, len(arg3)) 2589 copy(arg3Copy, arg3) 2590 } 2591 fake.setPrivateDataValidationParameterMutex.Lock() 2592 ret, specificReturn := fake.setPrivateDataValidationParameterReturnsOnCall[len(fake.setPrivateDataValidationParameterArgsForCall)] 2593 fake.setPrivateDataValidationParameterArgsForCall = append(fake.setPrivateDataValidationParameterArgsForCall, struct { 2594 arg1 string 2595 arg2 string 2596 arg3 []byte 2597 }{arg1, arg2, arg3Copy}) 2598 fake.recordInvocation("SetPrivateDataValidationParameter", []interface{}{arg1, arg2, arg3Copy}) 2599 fake.setPrivateDataValidationParameterMutex.Unlock() 2600 if fake.SetPrivateDataValidationParameterStub != nil { 2601 return fake.SetPrivateDataValidationParameterStub(arg1, arg2, arg3) 2602 } 2603 if specificReturn { 2604 return ret.result1 2605 } 2606 fakeReturns := fake.setPrivateDataValidationParameterReturns 2607 return fakeReturns.result1 2608 } 2609 2610 func (fake *ChaincodeStub) SetPrivateDataValidationParameterCallCount() int { 2611 fake.setPrivateDataValidationParameterMutex.RLock() 2612 defer fake.setPrivateDataValidationParameterMutex.RUnlock() 2613 return len(fake.setPrivateDataValidationParameterArgsForCall) 2614 } 2615 2616 func (fake *ChaincodeStub) SetPrivateDataValidationParameterCalls(stub func(string, string, []byte) error) { 2617 fake.setPrivateDataValidationParameterMutex.Lock() 2618 defer fake.setPrivateDataValidationParameterMutex.Unlock() 2619 fake.SetPrivateDataValidationParameterStub = stub 2620 } 2621 2622 func (fake *ChaincodeStub) SetPrivateDataValidationParameterArgsForCall(i int) (string, string, []byte) { 2623 fake.setPrivateDataValidationParameterMutex.RLock() 2624 defer fake.setPrivateDataValidationParameterMutex.RUnlock() 2625 argsForCall := fake.setPrivateDataValidationParameterArgsForCall[i] 2626 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 2627 } 2628 2629 func (fake *ChaincodeStub) SetPrivateDataValidationParameterReturns(result1 error) { 2630 fake.setPrivateDataValidationParameterMutex.Lock() 2631 defer fake.setPrivateDataValidationParameterMutex.Unlock() 2632 fake.SetPrivateDataValidationParameterStub = nil 2633 fake.setPrivateDataValidationParameterReturns = struct { 2634 result1 error 2635 }{result1} 2636 } 2637 2638 func (fake *ChaincodeStub) SetPrivateDataValidationParameterReturnsOnCall(i int, result1 error) { 2639 fake.setPrivateDataValidationParameterMutex.Lock() 2640 defer fake.setPrivateDataValidationParameterMutex.Unlock() 2641 fake.SetPrivateDataValidationParameterStub = nil 2642 if fake.setPrivateDataValidationParameterReturnsOnCall == nil { 2643 fake.setPrivateDataValidationParameterReturnsOnCall = make(map[int]struct { 2644 result1 error 2645 }) 2646 } 2647 fake.setPrivateDataValidationParameterReturnsOnCall[i] = struct { 2648 result1 error 2649 }{result1} 2650 } 2651 2652 func (fake *ChaincodeStub) SetStateValidationParameter(arg1 string, arg2 []byte) error { 2653 var arg2Copy []byte 2654 if arg2 != nil { 2655 arg2Copy = make([]byte, len(arg2)) 2656 copy(arg2Copy, arg2) 2657 } 2658 fake.setStateValidationParameterMutex.Lock() 2659 ret, specificReturn := fake.setStateValidationParameterReturnsOnCall[len(fake.setStateValidationParameterArgsForCall)] 2660 fake.setStateValidationParameterArgsForCall = append(fake.setStateValidationParameterArgsForCall, struct { 2661 arg1 string 2662 arg2 []byte 2663 }{arg1, arg2Copy}) 2664 fake.recordInvocation("SetStateValidationParameter", []interface{}{arg1, arg2Copy}) 2665 fake.setStateValidationParameterMutex.Unlock() 2666 if fake.SetStateValidationParameterStub != nil { 2667 return fake.SetStateValidationParameterStub(arg1, arg2) 2668 } 2669 if specificReturn { 2670 return ret.result1 2671 } 2672 fakeReturns := fake.setStateValidationParameterReturns 2673 return fakeReturns.result1 2674 } 2675 2676 func (fake *ChaincodeStub) SetStateValidationParameterCallCount() int { 2677 fake.setStateValidationParameterMutex.RLock() 2678 defer fake.setStateValidationParameterMutex.RUnlock() 2679 return len(fake.setStateValidationParameterArgsForCall) 2680 } 2681 2682 func (fake *ChaincodeStub) SetStateValidationParameterCalls(stub func(string, []byte) error) { 2683 fake.setStateValidationParameterMutex.Lock() 2684 defer fake.setStateValidationParameterMutex.Unlock() 2685 fake.SetStateValidationParameterStub = stub 2686 } 2687 2688 func (fake *ChaincodeStub) SetStateValidationParameterArgsForCall(i int) (string, []byte) { 2689 fake.setStateValidationParameterMutex.RLock() 2690 defer fake.setStateValidationParameterMutex.RUnlock() 2691 argsForCall := fake.setStateValidationParameterArgsForCall[i] 2692 return argsForCall.arg1, argsForCall.arg2 2693 } 2694 2695 func (fake *ChaincodeStub) SetStateValidationParameterReturns(result1 error) { 2696 fake.setStateValidationParameterMutex.Lock() 2697 defer fake.setStateValidationParameterMutex.Unlock() 2698 fake.SetStateValidationParameterStub = nil 2699 fake.setStateValidationParameterReturns = struct { 2700 result1 error 2701 }{result1} 2702 } 2703 2704 func (fake *ChaincodeStub) SetStateValidationParameterReturnsOnCall(i int, result1 error) { 2705 fake.setStateValidationParameterMutex.Lock() 2706 defer fake.setStateValidationParameterMutex.Unlock() 2707 fake.SetStateValidationParameterStub = nil 2708 if fake.setStateValidationParameterReturnsOnCall == nil { 2709 fake.setStateValidationParameterReturnsOnCall = make(map[int]struct { 2710 result1 error 2711 }) 2712 } 2713 fake.setStateValidationParameterReturnsOnCall[i] = struct { 2714 result1 error 2715 }{result1} 2716 } 2717 2718 func (fake *ChaincodeStub) SplitCompositeKey(arg1 string) (string, []string, error) { 2719 fake.splitCompositeKeyMutex.Lock() 2720 ret, specificReturn := fake.splitCompositeKeyReturnsOnCall[len(fake.splitCompositeKeyArgsForCall)] 2721 fake.splitCompositeKeyArgsForCall = append(fake.splitCompositeKeyArgsForCall, struct { 2722 arg1 string 2723 }{arg1}) 2724 fake.recordInvocation("SplitCompositeKey", []interface{}{arg1}) 2725 fake.splitCompositeKeyMutex.Unlock() 2726 if fake.SplitCompositeKeyStub != nil { 2727 return fake.SplitCompositeKeyStub(arg1) 2728 } 2729 if specificReturn { 2730 return ret.result1, ret.result2, ret.result3 2731 } 2732 fakeReturns := fake.splitCompositeKeyReturns 2733 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 2734 } 2735 2736 func (fake *ChaincodeStub) SplitCompositeKeyCallCount() int { 2737 fake.splitCompositeKeyMutex.RLock() 2738 defer fake.splitCompositeKeyMutex.RUnlock() 2739 return len(fake.splitCompositeKeyArgsForCall) 2740 } 2741 2742 func (fake *ChaincodeStub) SplitCompositeKeyCalls(stub func(string) (string, []string, error)) { 2743 fake.splitCompositeKeyMutex.Lock() 2744 defer fake.splitCompositeKeyMutex.Unlock() 2745 fake.SplitCompositeKeyStub = stub 2746 } 2747 2748 func (fake *ChaincodeStub) SplitCompositeKeyArgsForCall(i int) string { 2749 fake.splitCompositeKeyMutex.RLock() 2750 defer fake.splitCompositeKeyMutex.RUnlock() 2751 argsForCall := fake.splitCompositeKeyArgsForCall[i] 2752 return argsForCall.arg1 2753 } 2754 2755 func (fake *ChaincodeStub) SplitCompositeKeyReturns(result1 string, result2 []string, result3 error) { 2756 fake.splitCompositeKeyMutex.Lock() 2757 defer fake.splitCompositeKeyMutex.Unlock() 2758 fake.SplitCompositeKeyStub = nil 2759 fake.splitCompositeKeyReturns = struct { 2760 result1 string 2761 result2 []string 2762 result3 error 2763 }{result1, result2, result3} 2764 } 2765 2766 func (fake *ChaincodeStub) SplitCompositeKeyReturnsOnCall(i int, result1 string, result2 []string, result3 error) { 2767 fake.splitCompositeKeyMutex.Lock() 2768 defer fake.splitCompositeKeyMutex.Unlock() 2769 fake.SplitCompositeKeyStub = nil 2770 if fake.splitCompositeKeyReturnsOnCall == nil { 2771 fake.splitCompositeKeyReturnsOnCall = make(map[int]struct { 2772 result1 string 2773 result2 []string 2774 result3 error 2775 }) 2776 } 2777 fake.splitCompositeKeyReturnsOnCall[i] = struct { 2778 result1 string 2779 result2 []string 2780 result3 error 2781 }{result1, result2, result3} 2782 } 2783 2784 func (fake *ChaincodeStub) Invocations() map[string][][]interface{} { 2785 fake.invocationsMutex.RLock() 2786 defer fake.invocationsMutex.RUnlock() 2787 fake.createCompositeKeyMutex.RLock() 2788 defer fake.createCompositeKeyMutex.RUnlock() 2789 fake.delPrivateDataMutex.RLock() 2790 defer fake.delPrivateDataMutex.RUnlock() 2791 fake.delStateMutex.RLock() 2792 defer fake.delStateMutex.RUnlock() 2793 fake.getArgsMutex.RLock() 2794 defer fake.getArgsMutex.RUnlock() 2795 fake.getArgsSliceMutex.RLock() 2796 defer fake.getArgsSliceMutex.RUnlock() 2797 fake.getBindingMutex.RLock() 2798 defer fake.getBindingMutex.RUnlock() 2799 fake.getChannelIDMutex.RLock() 2800 defer fake.getChannelIDMutex.RUnlock() 2801 fake.getCreatorMutex.RLock() 2802 defer fake.getCreatorMutex.RUnlock() 2803 fake.getDecorationsMutex.RLock() 2804 defer fake.getDecorationsMutex.RUnlock() 2805 fake.getFunctionAndParametersMutex.RLock() 2806 defer fake.getFunctionAndParametersMutex.RUnlock() 2807 fake.getHistoryForKeyMutex.RLock() 2808 defer fake.getHistoryForKeyMutex.RUnlock() 2809 fake.getPrivateDataMutex.RLock() 2810 defer fake.getPrivateDataMutex.RUnlock() 2811 fake.getPrivateDataByPartialCompositeKeyMutex.RLock() 2812 defer fake.getPrivateDataByPartialCompositeKeyMutex.RUnlock() 2813 fake.getPrivateDataByRangeMutex.RLock() 2814 defer fake.getPrivateDataByRangeMutex.RUnlock() 2815 fake.getPrivateDataHashMutex.RLock() 2816 defer fake.getPrivateDataHashMutex.RUnlock() 2817 fake.getPrivateDataQueryResultMutex.RLock() 2818 defer fake.getPrivateDataQueryResultMutex.RUnlock() 2819 fake.getPrivateDataValidationParameterMutex.RLock() 2820 defer fake.getPrivateDataValidationParameterMutex.RUnlock() 2821 fake.getQueryResultMutex.RLock() 2822 defer fake.getQueryResultMutex.RUnlock() 2823 fake.getQueryResultWithPaginationMutex.RLock() 2824 defer fake.getQueryResultWithPaginationMutex.RUnlock() 2825 fake.getSignedProposalMutex.RLock() 2826 defer fake.getSignedProposalMutex.RUnlock() 2827 fake.getStateMutex.RLock() 2828 defer fake.getStateMutex.RUnlock() 2829 fake.getStateByPartialCompositeKeyMutex.RLock() 2830 defer fake.getStateByPartialCompositeKeyMutex.RUnlock() 2831 fake.getStateByPartialCompositeKeyWithPaginationMutex.RLock() 2832 defer fake.getStateByPartialCompositeKeyWithPaginationMutex.RUnlock() 2833 fake.getStateByRangeMutex.RLock() 2834 defer fake.getStateByRangeMutex.RUnlock() 2835 fake.getStateByRangeWithPaginationMutex.RLock() 2836 defer fake.getStateByRangeWithPaginationMutex.RUnlock() 2837 fake.getStateValidationParameterMutex.RLock() 2838 defer fake.getStateValidationParameterMutex.RUnlock() 2839 fake.getStringArgsMutex.RLock() 2840 defer fake.getStringArgsMutex.RUnlock() 2841 fake.getTransientMutex.RLock() 2842 defer fake.getTransientMutex.RUnlock() 2843 fake.getTxIDMutex.RLock() 2844 defer fake.getTxIDMutex.RUnlock() 2845 fake.getTxTimestampMutex.RLock() 2846 defer fake.getTxTimestampMutex.RUnlock() 2847 fake.invokeChaincodeMutex.RLock() 2848 defer fake.invokeChaincodeMutex.RUnlock() 2849 fake.putPrivateDataMutex.RLock() 2850 defer fake.putPrivateDataMutex.RUnlock() 2851 fake.putStateMutex.RLock() 2852 defer fake.putStateMutex.RUnlock() 2853 fake.setEventMutex.RLock() 2854 defer fake.setEventMutex.RUnlock() 2855 fake.setPrivateDataValidationParameterMutex.RLock() 2856 defer fake.setPrivateDataValidationParameterMutex.RUnlock() 2857 fake.setStateValidationParameterMutex.RLock() 2858 defer fake.setStateValidationParameterMutex.RUnlock() 2859 fake.splitCompositeKeyMutex.RLock() 2860 defer fake.splitCompositeKeyMutex.RUnlock() 2861 copiedInvocations := map[string][][]interface{}{} 2862 for key, value := range fake.invocations { 2863 copiedInvocations[key] = value 2864 } 2865 return copiedInvocations 2866 } 2867 2868 func (fake *ChaincodeStub) recordInvocation(key string, args []interface{}) { 2869 fake.invocationsMutex.Lock() 2870 defer fake.invocationsMutex.Unlock() 2871 if fake.invocations == nil { 2872 fake.invocations = map[string][][]interface{}{} 2873 } 2874 if fake.invocations[key] == nil { 2875 fake.invocations[key] = [][]interface{}{} 2876 } 2877 fake.invocations[key] = append(fake.invocations[key], args) 2878 }