1 Star 0 Fork 0

妥協/fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
chaincode_stub.go 92.25 KB
一键复制 编辑 原始数据 按行查看 历史
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798
// Code generated by counterfeiter. DO NOT EDIT.
package mock
import (
sync "sync"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
shim "github.com/hyperledger/fabric/core/chaincode/shim"
peer "github.com/hyperledger/fabric/protos/peer"
)
type ChaincodeStub struct {
CreateCompositeKeyStub func(string, []string) (string, error)
createCompositeKeyMutex sync.RWMutex
createCompositeKeyArgsForCall []struct {
arg1 string
arg2 []string
}
createCompositeKeyReturns struct {
result1 string
result2 error
}
createCompositeKeyReturnsOnCall map[int]struct {
result1 string
result2 error
}
DelPrivateDataStub func(string, string) error
delPrivateDataMutex sync.RWMutex
delPrivateDataArgsForCall []struct {
arg1 string
arg2 string
}
delPrivateDataReturns struct {
result1 error
}
delPrivateDataReturnsOnCall map[int]struct {
result1 error
}
DelStateStub func(string) error
delStateMutex sync.RWMutex
delStateArgsForCall []struct {
arg1 string
}
delStateReturns struct {
result1 error
}
delStateReturnsOnCall map[int]struct {
result1 error
}
GetArgsStub func() [][]byte
getArgsMutex sync.RWMutex
getArgsArgsForCall []struct {
}
getArgsReturns struct {
result1 [][]byte
}
getArgsReturnsOnCall map[int]struct {
result1 [][]byte
}
GetArgsSliceStub func() ([]byte, error)
getArgsSliceMutex sync.RWMutex
getArgsSliceArgsForCall []struct {
}
getArgsSliceReturns struct {
result1 []byte
result2 error
}
getArgsSliceReturnsOnCall map[int]struct {
result1 []byte
result2 error
}
GetBindingStub func() ([]byte, error)
getBindingMutex sync.RWMutex
getBindingArgsForCall []struct {
}
getBindingReturns struct {
result1 []byte
result2 error
}
getBindingReturnsOnCall map[int]struct {
result1 []byte
result2 error
}
GetChannelIDStub func() string
getChannelIDMutex sync.RWMutex
getChannelIDArgsForCall []struct {
}
getChannelIDReturns struct {
result1 string
}
getChannelIDReturnsOnCall map[int]struct {
result1 string
}
GetCreatorStub func() ([]byte, error)
getCreatorMutex sync.RWMutex
getCreatorArgsForCall []struct {
}
getCreatorReturns struct {
result1 []byte
result2 error
}
getCreatorReturnsOnCall map[int]struct {
result1 []byte
result2 error
}
GetDecorationsStub func() map[string][]byte
getDecorationsMutex sync.RWMutex
getDecorationsArgsForCall []struct {
}
getDecorationsReturns struct {
result1 map[string][]byte
}
getDecorationsReturnsOnCall map[int]struct {
result1 map[string][]byte
}
GetFunctionAndParametersStub func() (string, []string)
getFunctionAndParametersMutex sync.RWMutex
getFunctionAndParametersArgsForCall []struct {
}
getFunctionAndParametersReturns struct {
result1 string
result2 []string
}
getFunctionAndParametersReturnsOnCall map[int]struct {
result1 string
result2 []string
}
GetHistoryForKeyStub func(string) (shim.HistoryQueryIteratorInterface, error)
getHistoryForKeyMutex sync.RWMutex
getHistoryForKeyArgsForCall []struct {
arg1 string
}
getHistoryForKeyReturns struct {
result1 shim.HistoryQueryIteratorInterface
result2 error
}
getHistoryForKeyReturnsOnCall map[int]struct {
result1 shim.HistoryQueryIteratorInterface
result2 error
}
GetPrivateDataStub func(string, string) ([]byte, error)
getPrivateDataMutex sync.RWMutex
getPrivateDataArgsForCall []struct {
arg1 string
arg2 string
}
getPrivateDataReturns struct {
result1 []byte
result2 error
}
getPrivateDataReturnsOnCall map[int]struct {
result1 []byte
result2 error
}
GetPrivateDataByPartialCompositeKeyStub func(string, string, []string) (shim.StateQueryIteratorInterface, error)
getPrivateDataByPartialCompositeKeyMutex sync.RWMutex
getPrivateDataByPartialCompositeKeyArgsForCall []struct {
arg1 string
arg2 string
arg3 []string
}
getPrivateDataByPartialCompositeKeyReturns struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
getPrivateDataByPartialCompositeKeyReturnsOnCall map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
GetPrivateDataByRangeStub func(string, string, string) (shim.StateQueryIteratorInterface, error)
getPrivateDataByRangeMutex sync.RWMutex
getPrivateDataByRangeArgsForCall []struct {
arg1 string
arg2 string
arg3 string
}
getPrivateDataByRangeReturns struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
getPrivateDataByRangeReturnsOnCall map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
GetPrivateDataQueryResultStub func(string, string) (shim.StateQueryIteratorInterface, error)
getPrivateDataQueryResultMutex sync.RWMutex
getPrivateDataQueryResultArgsForCall []struct {
arg1 string
arg2 string
}
getPrivateDataQueryResultReturns struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
getPrivateDataQueryResultReturnsOnCall map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
GetPrivateDataValidationParameterStub func(string, string) ([]byte, error)
getPrivateDataValidationParameterMutex sync.RWMutex
getPrivateDataValidationParameterArgsForCall []struct {
arg1 string
arg2 string
}
getPrivateDataValidationParameterReturns struct {
result1 []byte
result2 error
}
getPrivateDataValidationParameterReturnsOnCall map[int]struct {
result1 []byte
result2 error
}
GetQueryResultStub func(string) (shim.StateQueryIteratorInterface, error)
getQueryResultMutex sync.RWMutex
getQueryResultArgsForCall []struct {
arg1 string
}
getQueryResultReturns struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
getQueryResultReturnsOnCall map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
GetQueryResultWithPaginationStub func(string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)
getQueryResultWithPaginationMutex sync.RWMutex
getQueryResultWithPaginationArgsForCall []struct {
arg1 string
arg2 int32
arg3 string
}
getQueryResultWithPaginationReturns struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}
getQueryResultWithPaginationReturnsOnCall map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}
GetSignedProposalStub func() (*peer.SignedProposal, error)
getSignedProposalMutex sync.RWMutex
getSignedProposalArgsForCall []struct {
}
getSignedProposalReturns struct {
result1 *peer.SignedProposal
result2 error
}
getSignedProposalReturnsOnCall map[int]struct {
result1 *peer.SignedProposal
result2 error
}
GetStateStub func(string) ([]byte, error)
getStateMutex sync.RWMutex
getStateArgsForCall []struct {
arg1 string
}
getStateReturns struct {
result1 []byte
result2 error
}
getStateReturnsOnCall map[int]struct {
result1 []byte
result2 error
}
GetStateByPartialCompositeKeyStub func(string, []string) (shim.StateQueryIteratorInterface, error)
getStateByPartialCompositeKeyMutex sync.RWMutex
getStateByPartialCompositeKeyArgsForCall []struct {
arg1 string
arg2 []string
}
getStateByPartialCompositeKeyReturns struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
getStateByPartialCompositeKeyReturnsOnCall map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
GetStateByPartialCompositeKeyWithPaginationStub func(string, []string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)
getStateByPartialCompositeKeyWithPaginationMutex sync.RWMutex
getStateByPartialCompositeKeyWithPaginationArgsForCall []struct {
arg1 string
arg2 []string
arg3 int32
arg4 string
}
getStateByPartialCompositeKeyWithPaginationReturns struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}
getStateByPartialCompositeKeyWithPaginationReturnsOnCall map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}
GetStateByRangeStub func(string, string) (shim.StateQueryIteratorInterface, error)
getStateByRangeMutex sync.RWMutex
getStateByRangeArgsForCall []struct {
arg1 string
arg2 string
}
getStateByRangeReturns struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
getStateByRangeReturnsOnCall map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
}
GetStateByRangeWithPaginationStub func(string, string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)
getStateByRangeWithPaginationMutex sync.RWMutex
getStateByRangeWithPaginationArgsForCall []struct {
arg1 string
arg2 string
arg3 int32
arg4 string
}
getStateByRangeWithPaginationReturns struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}
getStateByRangeWithPaginationReturnsOnCall map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}
GetStateValidationParameterStub func(string) ([]byte, error)
getStateValidationParameterMutex sync.RWMutex
getStateValidationParameterArgsForCall []struct {
arg1 string
}
getStateValidationParameterReturns struct {
result1 []byte
result2 error
}
getStateValidationParameterReturnsOnCall map[int]struct {
result1 []byte
result2 error
}
GetStringArgsStub func() []string
getStringArgsMutex sync.RWMutex
getStringArgsArgsForCall []struct {
}
getStringArgsReturns struct {
result1 []string
}
getStringArgsReturnsOnCall map[int]struct {
result1 []string
}
GetTransientStub func() (map[string][]byte, error)
getTransientMutex sync.RWMutex
getTransientArgsForCall []struct {
}
getTransientReturns struct {
result1 map[string][]byte
result2 error
}
getTransientReturnsOnCall map[int]struct {
result1 map[string][]byte
result2 error
}
GetTxIDStub func() string
getTxIDMutex sync.RWMutex
getTxIDArgsForCall []struct {
}
getTxIDReturns struct {
result1 string
}
getTxIDReturnsOnCall map[int]struct {
result1 string
}
GetTxTimestampStub func() (*timestamp.Timestamp, error)
getTxTimestampMutex sync.RWMutex
getTxTimestampArgsForCall []struct {
}
getTxTimestampReturns struct {
result1 *timestamp.Timestamp
result2 error
}
getTxTimestampReturnsOnCall map[int]struct {
result1 *timestamp.Timestamp
result2 error
}
InvokeChaincodeStub func(string, [][]byte, string) peer.Response
invokeChaincodeMutex sync.RWMutex
invokeChaincodeArgsForCall []struct {
arg1 string
arg2 [][]byte
arg3 string
}
invokeChaincodeReturns struct {
result1 peer.Response
}
invokeChaincodeReturnsOnCall map[int]struct {
result1 peer.Response
}
PutPrivateDataStub func(string, string, []byte) error
putPrivateDataMutex sync.RWMutex
putPrivateDataArgsForCall []struct {
arg1 string
arg2 string
arg3 []byte
}
putPrivateDataReturns struct {
result1 error
}
putPrivateDataReturnsOnCall map[int]struct {
result1 error
}
PutStateStub func(string, []byte) error
putStateMutex sync.RWMutex
putStateArgsForCall []struct {
arg1 string
arg2 []byte
}
putStateReturns struct {
result1 error
}
putStateReturnsOnCall map[int]struct {
result1 error
}
SetEventStub func(string, []byte) error
setEventMutex sync.RWMutex
setEventArgsForCall []struct {
arg1 string
arg2 []byte
}
setEventReturns struct {
result1 error
}
setEventReturnsOnCall map[int]struct {
result1 error
}
SetPrivateDataValidationParameterStub func(string, string, []byte) error
setPrivateDataValidationParameterMutex sync.RWMutex
setPrivateDataValidationParameterArgsForCall []struct {
arg1 string
arg2 string
arg3 []byte
}
setPrivateDataValidationParameterReturns struct {
result1 error
}
setPrivateDataValidationParameterReturnsOnCall map[int]struct {
result1 error
}
SetStateValidationParameterStub func(string, []byte) error
setStateValidationParameterMutex sync.RWMutex
setStateValidationParameterArgsForCall []struct {
arg1 string
arg2 []byte
}
setStateValidationParameterReturns struct {
result1 error
}
setStateValidationParameterReturnsOnCall map[int]struct {
result1 error
}
SplitCompositeKeyStub func(string) (string, []string, error)
splitCompositeKeyMutex sync.RWMutex
splitCompositeKeyArgsForCall []struct {
arg1 string
}
splitCompositeKeyReturns struct {
result1 string
result2 []string
result3 error
}
splitCompositeKeyReturnsOnCall map[int]struct {
result1 string
result2 []string
result3 error
}
invocations map[string][][]interface{}
invocationsMutex sync.RWMutex
}
func (fake *ChaincodeStub) CreateCompositeKey(arg1 string, arg2 []string) (string, error) {
var arg2Copy []string
if arg2 != nil {
arg2Copy = make([]string, len(arg2))
copy(arg2Copy, arg2)
}
fake.createCompositeKeyMutex.Lock()
ret, specificReturn := fake.createCompositeKeyReturnsOnCall[len(fake.createCompositeKeyArgsForCall)]
fake.createCompositeKeyArgsForCall = append(fake.createCompositeKeyArgsForCall, struct {
arg1 string
arg2 []string
}{arg1, arg2Copy})
fake.recordInvocation("CreateCompositeKey", []interface{}{arg1, arg2Copy})
fake.createCompositeKeyMutex.Unlock()
if fake.CreateCompositeKeyStub != nil {
return fake.CreateCompositeKeyStub(arg1, arg2)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.createCompositeKeyReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) CreateCompositeKeyCallCount() int {
fake.createCompositeKeyMutex.RLock()
defer fake.createCompositeKeyMutex.RUnlock()
return len(fake.createCompositeKeyArgsForCall)
}
func (fake *ChaincodeStub) CreateCompositeKeyCalls(stub func(string, []string) (string, error)) {
fake.createCompositeKeyMutex.Lock()
defer fake.createCompositeKeyMutex.Unlock()
fake.CreateCompositeKeyStub = stub
}
func (fake *ChaincodeStub) CreateCompositeKeyArgsForCall(i int) (string, []string) {
fake.createCompositeKeyMutex.RLock()
defer fake.createCompositeKeyMutex.RUnlock()
argsForCall := fake.createCompositeKeyArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *ChaincodeStub) CreateCompositeKeyReturns(result1 string, result2 error) {
fake.createCompositeKeyMutex.Lock()
defer fake.createCompositeKeyMutex.Unlock()
fake.CreateCompositeKeyStub = nil
fake.createCompositeKeyReturns = struct {
result1 string
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) CreateCompositeKeyReturnsOnCall(i int, result1 string, result2 error) {
fake.createCompositeKeyMutex.Lock()
defer fake.createCompositeKeyMutex.Unlock()
fake.CreateCompositeKeyStub = nil
if fake.createCompositeKeyReturnsOnCall == nil {
fake.createCompositeKeyReturnsOnCall = make(map[int]struct {
result1 string
result2 error
})
}
fake.createCompositeKeyReturnsOnCall[i] = struct {
result1 string
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) DelPrivateData(arg1 string, arg2 string) error {
fake.delPrivateDataMutex.Lock()
ret, specificReturn := fake.delPrivateDataReturnsOnCall[len(fake.delPrivateDataArgsForCall)]
fake.delPrivateDataArgsForCall = append(fake.delPrivateDataArgsForCall, struct {
arg1 string
arg2 string
}{arg1, arg2})
fake.recordInvocation("DelPrivateData", []interface{}{arg1, arg2})
fake.delPrivateDataMutex.Unlock()
if fake.DelPrivateDataStub != nil {
return fake.DelPrivateDataStub(arg1, arg2)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.delPrivateDataReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) DelPrivateDataCallCount() int {
fake.delPrivateDataMutex.RLock()
defer fake.delPrivateDataMutex.RUnlock()
return len(fake.delPrivateDataArgsForCall)
}
func (fake *ChaincodeStub) DelPrivateDataCalls(stub func(string, string) error) {
fake.delPrivateDataMutex.Lock()
defer fake.delPrivateDataMutex.Unlock()
fake.DelPrivateDataStub = stub
}
func (fake *ChaincodeStub) DelPrivateDataArgsForCall(i int) (string, string) {
fake.delPrivateDataMutex.RLock()
defer fake.delPrivateDataMutex.RUnlock()
argsForCall := fake.delPrivateDataArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *ChaincodeStub) DelPrivateDataReturns(result1 error) {
fake.delPrivateDataMutex.Lock()
defer fake.delPrivateDataMutex.Unlock()
fake.DelPrivateDataStub = nil
fake.delPrivateDataReturns = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) DelPrivateDataReturnsOnCall(i int, result1 error) {
fake.delPrivateDataMutex.Lock()
defer fake.delPrivateDataMutex.Unlock()
fake.DelPrivateDataStub = nil
if fake.delPrivateDataReturnsOnCall == nil {
fake.delPrivateDataReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.delPrivateDataReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) DelState(arg1 string) error {
fake.delStateMutex.Lock()
ret, specificReturn := fake.delStateReturnsOnCall[len(fake.delStateArgsForCall)]
fake.delStateArgsForCall = append(fake.delStateArgsForCall, struct {
arg1 string
}{arg1})
fake.recordInvocation("DelState", []interface{}{arg1})
fake.delStateMutex.Unlock()
if fake.DelStateStub != nil {
return fake.DelStateStub(arg1)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.delStateReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) DelStateCallCount() int {
fake.delStateMutex.RLock()
defer fake.delStateMutex.RUnlock()
return len(fake.delStateArgsForCall)
}
func (fake *ChaincodeStub) DelStateCalls(stub func(string) error) {
fake.delStateMutex.Lock()
defer fake.delStateMutex.Unlock()
fake.DelStateStub = stub
}
func (fake *ChaincodeStub) DelStateArgsForCall(i int) string {
fake.delStateMutex.RLock()
defer fake.delStateMutex.RUnlock()
argsForCall := fake.delStateArgsForCall[i]
return argsForCall.arg1
}
func (fake *ChaincodeStub) DelStateReturns(result1 error) {
fake.delStateMutex.Lock()
defer fake.delStateMutex.Unlock()
fake.DelStateStub = nil
fake.delStateReturns = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) DelStateReturnsOnCall(i int, result1 error) {
fake.delStateMutex.Lock()
defer fake.delStateMutex.Unlock()
fake.DelStateStub = nil
if fake.delStateReturnsOnCall == nil {
fake.delStateReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.delStateReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) GetArgs() [][]byte {
fake.getArgsMutex.Lock()
ret, specificReturn := fake.getArgsReturnsOnCall[len(fake.getArgsArgsForCall)]
fake.getArgsArgsForCall = append(fake.getArgsArgsForCall, struct {
}{})
fake.recordInvocation("GetArgs", []interface{}{})
fake.getArgsMutex.Unlock()
if fake.GetArgsStub != nil {
return fake.GetArgsStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.getArgsReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) GetArgsCallCount() int {
fake.getArgsMutex.RLock()
defer fake.getArgsMutex.RUnlock()
return len(fake.getArgsArgsForCall)
}
func (fake *ChaincodeStub) GetArgsCalls(stub func() [][]byte) {
fake.getArgsMutex.Lock()
defer fake.getArgsMutex.Unlock()
fake.GetArgsStub = stub
}
func (fake *ChaincodeStub) GetArgsReturns(result1 [][]byte) {
fake.getArgsMutex.Lock()
defer fake.getArgsMutex.Unlock()
fake.GetArgsStub = nil
fake.getArgsReturns = struct {
result1 [][]byte
}{result1}
}
func (fake *ChaincodeStub) GetArgsReturnsOnCall(i int, result1 [][]byte) {
fake.getArgsMutex.Lock()
defer fake.getArgsMutex.Unlock()
fake.GetArgsStub = nil
if fake.getArgsReturnsOnCall == nil {
fake.getArgsReturnsOnCall = make(map[int]struct {
result1 [][]byte
})
}
fake.getArgsReturnsOnCall[i] = struct {
result1 [][]byte
}{result1}
}
func (fake *ChaincodeStub) GetArgsSlice() ([]byte, error) {
fake.getArgsSliceMutex.Lock()
ret, specificReturn := fake.getArgsSliceReturnsOnCall[len(fake.getArgsSliceArgsForCall)]
fake.getArgsSliceArgsForCall = append(fake.getArgsSliceArgsForCall, struct {
}{})
fake.recordInvocation("GetArgsSlice", []interface{}{})
fake.getArgsSliceMutex.Unlock()
if fake.GetArgsSliceStub != nil {
return fake.GetArgsSliceStub()
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getArgsSliceReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetArgsSliceCallCount() int {
fake.getArgsSliceMutex.RLock()
defer fake.getArgsSliceMutex.RUnlock()
return len(fake.getArgsSliceArgsForCall)
}
func (fake *ChaincodeStub) GetArgsSliceCalls(stub func() ([]byte, error)) {
fake.getArgsSliceMutex.Lock()
defer fake.getArgsSliceMutex.Unlock()
fake.GetArgsSliceStub = stub
}
func (fake *ChaincodeStub) GetArgsSliceReturns(result1 []byte, result2 error) {
fake.getArgsSliceMutex.Lock()
defer fake.getArgsSliceMutex.Unlock()
fake.GetArgsSliceStub = nil
fake.getArgsSliceReturns = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetArgsSliceReturnsOnCall(i int, result1 []byte, result2 error) {
fake.getArgsSliceMutex.Lock()
defer fake.getArgsSliceMutex.Unlock()
fake.GetArgsSliceStub = nil
if fake.getArgsSliceReturnsOnCall == nil {
fake.getArgsSliceReturnsOnCall = make(map[int]struct {
result1 []byte
result2 error
})
}
fake.getArgsSliceReturnsOnCall[i] = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetBinding() ([]byte, error) {
fake.getBindingMutex.Lock()
ret, specificReturn := fake.getBindingReturnsOnCall[len(fake.getBindingArgsForCall)]
fake.getBindingArgsForCall = append(fake.getBindingArgsForCall, struct {
}{})
fake.recordInvocation("GetBinding", []interface{}{})
fake.getBindingMutex.Unlock()
if fake.GetBindingStub != nil {
return fake.GetBindingStub()
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getBindingReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetBindingCallCount() int {
fake.getBindingMutex.RLock()
defer fake.getBindingMutex.RUnlock()
return len(fake.getBindingArgsForCall)
}
func (fake *ChaincodeStub) GetBindingCalls(stub func() ([]byte, error)) {
fake.getBindingMutex.Lock()
defer fake.getBindingMutex.Unlock()
fake.GetBindingStub = stub
}
func (fake *ChaincodeStub) GetBindingReturns(result1 []byte, result2 error) {
fake.getBindingMutex.Lock()
defer fake.getBindingMutex.Unlock()
fake.GetBindingStub = nil
fake.getBindingReturns = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetBindingReturnsOnCall(i int, result1 []byte, result2 error) {
fake.getBindingMutex.Lock()
defer fake.getBindingMutex.Unlock()
fake.GetBindingStub = nil
if fake.getBindingReturnsOnCall == nil {
fake.getBindingReturnsOnCall = make(map[int]struct {
result1 []byte
result2 error
})
}
fake.getBindingReturnsOnCall[i] = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetChannelID() string {
fake.getChannelIDMutex.Lock()
ret, specificReturn := fake.getChannelIDReturnsOnCall[len(fake.getChannelIDArgsForCall)]
fake.getChannelIDArgsForCall = append(fake.getChannelIDArgsForCall, struct {
}{})
fake.recordInvocation("GetChannelID", []interface{}{})
fake.getChannelIDMutex.Unlock()
if fake.GetChannelIDStub != nil {
return fake.GetChannelIDStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.getChannelIDReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) GetChannelIDCallCount() int {
fake.getChannelIDMutex.RLock()
defer fake.getChannelIDMutex.RUnlock()
return len(fake.getChannelIDArgsForCall)
}
func (fake *ChaincodeStub) GetChannelIDCalls(stub func() string) {
fake.getChannelIDMutex.Lock()
defer fake.getChannelIDMutex.Unlock()
fake.GetChannelIDStub = stub
}
func (fake *ChaincodeStub) GetChannelIDReturns(result1 string) {
fake.getChannelIDMutex.Lock()
defer fake.getChannelIDMutex.Unlock()
fake.GetChannelIDStub = nil
fake.getChannelIDReturns = struct {
result1 string
}{result1}
}
func (fake *ChaincodeStub) GetChannelIDReturnsOnCall(i int, result1 string) {
fake.getChannelIDMutex.Lock()
defer fake.getChannelIDMutex.Unlock()
fake.GetChannelIDStub = nil
if fake.getChannelIDReturnsOnCall == nil {
fake.getChannelIDReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.getChannelIDReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *ChaincodeStub) GetCreator() ([]byte, error) {
fake.getCreatorMutex.Lock()
ret, specificReturn := fake.getCreatorReturnsOnCall[len(fake.getCreatorArgsForCall)]
fake.getCreatorArgsForCall = append(fake.getCreatorArgsForCall, struct {
}{})
fake.recordInvocation("GetCreator", []interface{}{})
fake.getCreatorMutex.Unlock()
if fake.GetCreatorStub != nil {
return fake.GetCreatorStub()
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getCreatorReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetCreatorCallCount() int {
fake.getCreatorMutex.RLock()
defer fake.getCreatorMutex.RUnlock()
return len(fake.getCreatorArgsForCall)
}
func (fake *ChaincodeStub) GetCreatorCalls(stub func() ([]byte, error)) {
fake.getCreatorMutex.Lock()
defer fake.getCreatorMutex.Unlock()
fake.GetCreatorStub = stub
}
func (fake *ChaincodeStub) GetCreatorReturns(result1 []byte, result2 error) {
fake.getCreatorMutex.Lock()
defer fake.getCreatorMutex.Unlock()
fake.GetCreatorStub = nil
fake.getCreatorReturns = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetCreatorReturnsOnCall(i int, result1 []byte, result2 error) {
fake.getCreatorMutex.Lock()
defer fake.getCreatorMutex.Unlock()
fake.GetCreatorStub = nil
if fake.getCreatorReturnsOnCall == nil {
fake.getCreatorReturnsOnCall = make(map[int]struct {
result1 []byte
result2 error
})
}
fake.getCreatorReturnsOnCall[i] = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetDecorations() map[string][]byte {
fake.getDecorationsMutex.Lock()
ret, specificReturn := fake.getDecorationsReturnsOnCall[len(fake.getDecorationsArgsForCall)]
fake.getDecorationsArgsForCall = append(fake.getDecorationsArgsForCall, struct {
}{})
fake.recordInvocation("GetDecorations", []interface{}{})
fake.getDecorationsMutex.Unlock()
if fake.GetDecorationsStub != nil {
return fake.GetDecorationsStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.getDecorationsReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) GetDecorationsCallCount() int {
fake.getDecorationsMutex.RLock()
defer fake.getDecorationsMutex.RUnlock()
return len(fake.getDecorationsArgsForCall)
}
func (fake *ChaincodeStub) GetDecorationsCalls(stub func() map[string][]byte) {
fake.getDecorationsMutex.Lock()
defer fake.getDecorationsMutex.Unlock()
fake.GetDecorationsStub = stub
}
func (fake *ChaincodeStub) GetDecorationsReturns(result1 map[string][]byte) {
fake.getDecorationsMutex.Lock()
defer fake.getDecorationsMutex.Unlock()
fake.GetDecorationsStub = nil
fake.getDecorationsReturns = struct {
result1 map[string][]byte
}{result1}
}
func (fake *ChaincodeStub) GetDecorationsReturnsOnCall(i int, result1 map[string][]byte) {
fake.getDecorationsMutex.Lock()
defer fake.getDecorationsMutex.Unlock()
fake.GetDecorationsStub = nil
if fake.getDecorationsReturnsOnCall == nil {
fake.getDecorationsReturnsOnCall = make(map[int]struct {
result1 map[string][]byte
})
}
fake.getDecorationsReturnsOnCall[i] = struct {
result1 map[string][]byte
}{result1}
}
func (fake *ChaincodeStub) GetFunctionAndParameters() (string, []string) {
fake.getFunctionAndParametersMutex.Lock()
ret, specificReturn := fake.getFunctionAndParametersReturnsOnCall[len(fake.getFunctionAndParametersArgsForCall)]
fake.getFunctionAndParametersArgsForCall = append(fake.getFunctionAndParametersArgsForCall, struct {
}{})
fake.recordInvocation("GetFunctionAndParameters", []interface{}{})
fake.getFunctionAndParametersMutex.Unlock()
if fake.GetFunctionAndParametersStub != nil {
return fake.GetFunctionAndParametersStub()
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getFunctionAndParametersReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetFunctionAndParametersCallCount() int {
fake.getFunctionAndParametersMutex.RLock()
defer fake.getFunctionAndParametersMutex.RUnlock()
return len(fake.getFunctionAndParametersArgsForCall)
}
func (fake *ChaincodeStub) GetFunctionAndParametersCalls(stub func() (string, []string)) {
fake.getFunctionAndParametersMutex.Lock()
defer fake.getFunctionAndParametersMutex.Unlock()
fake.GetFunctionAndParametersStub = stub
}
func (fake *ChaincodeStub) GetFunctionAndParametersReturns(result1 string, result2 []string) {
fake.getFunctionAndParametersMutex.Lock()
defer fake.getFunctionAndParametersMutex.Unlock()
fake.GetFunctionAndParametersStub = nil
fake.getFunctionAndParametersReturns = struct {
result1 string
result2 []string
}{result1, result2}
}
func (fake *ChaincodeStub) GetFunctionAndParametersReturnsOnCall(i int, result1 string, result2 []string) {
fake.getFunctionAndParametersMutex.Lock()
defer fake.getFunctionAndParametersMutex.Unlock()
fake.GetFunctionAndParametersStub = nil
if fake.getFunctionAndParametersReturnsOnCall == nil {
fake.getFunctionAndParametersReturnsOnCall = make(map[int]struct {
result1 string
result2 []string
})
}
fake.getFunctionAndParametersReturnsOnCall[i] = struct {
result1 string
result2 []string
}{result1, result2}
}
func (fake *ChaincodeStub) GetHistoryForKey(arg1 string) (shim.HistoryQueryIteratorInterface, error) {
fake.getHistoryForKeyMutex.Lock()
ret, specificReturn := fake.getHistoryForKeyReturnsOnCall[len(fake.getHistoryForKeyArgsForCall)]
fake.getHistoryForKeyArgsForCall = append(fake.getHistoryForKeyArgsForCall, struct {
arg1 string
}{arg1})
fake.recordInvocation("GetHistoryForKey", []interface{}{arg1})
fake.getHistoryForKeyMutex.Unlock()
if fake.GetHistoryForKeyStub != nil {
return fake.GetHistoryForKeyStub(arg1)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getHistoryForKeyReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetHistoryForKeyCallCount() int {
fake.getHistoryForKeyMutex.RLock()
defer fake.getHistoryForKeyMutex.RUnlock()
return len(fake.getHistoryForKeyArgsForCall)
}
func (fake *ChaincodeStub) GetHistoryForKeyCalls(stub func(string) (shim.HistoryQueryIteratorInterface, error)) {
fake.getHistoryForKeyMutex.Lock()
defer fake.getHistoryForKeyMutex.Unlock()
fake.GetHistoryForKeyStub = stub
}
func (fake *ChaincodeStub) GetHistoryForKeyArgsForCall(i int) string {
fake.getHistoryForKeyMutex.RLock()
defer fake.getHistoryForKeyMutex.RUnlock()
argsForCall := fake.getHistoryForKeyArgsForCall[i]
return argsForCall.arg1
}
func (fake *ChaincodeStub) GetHistoryForKeyReturns(result1 shim.HistoryQueryIteratorInterface, result2 error) {
fake.getHistoryForKeyMutex.Lock()
defer fake.getHistoryForKeyMutex.Unlock()
fake.GetHistoryForKeyStub = nil
fake.getHistoryForKeyReturns = struct {
result1 shim.HistoryQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetHistoryForKeyReturnsOnCall(i int, result1 shim.HistoryQueryIteratorInterface, result2 error) {
fake.getHistoryForKeyMutex.Lock()
defer fake.getHistoryForKeyMutex.Unlock()
fake.GetHistoryForKeyStub = nil
if fake.getHistoryForKeyReturnsOnCall == nil {
fake.getHistoryForKeyReturnsOnCall = make(map[int]struct {
result1 shim.HistoryQueryIteratorInterface
result2 error
})
}
fake.getHistoryForKeyReturnsOnCall[i] = struct {
result1 shim.HistoryQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetPrivateData(arg1 string, arg2 string) ([]byte, error) {
fake.getPrivateDataMutex.Lock()
ret, specificReturn := fake.getPrivateDataReturnsOnCall[len(fake.getPrivateDataArgsForCall)]
fake.getPrivateDataArgsForCall = append(fake.getPrivateDataArgsForCall, struct {
arg1 string
arg2 string
}{arg1, arg2})
fake.recordInvocation("GetPrivateData", []interface{}{arg1, arg2})
fake.getPrivateDataMutex.Unlock()
if fake.GetPrivateDataStub != nil {
return fake.GetPrivateDataStub(arg1, arg2)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getPrivateDataReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetPrivateDataCallCount() int {
fake.getPrivateDataMutex.RLock()
defer fake.getPrivateDataMutex.RUnlock()
return len(fake.getPrivateDataArgsForCall)
}
func (fake *ChaincodeStub) GetPrivateDataCalls(stub func(string, string) ([]byte, error)) {
fake.getPrivateDataMutex.Lock()
defer fake.getPrivateDataMutex.Unlock()
fake.GetPrivateDataStub = stub
}
func (fake *ChaincodeStub) GetPrivateDataArgsForCall(i int) (string, string) {
fake.getPrivateDataMutex.RLock()
defer fake.getPrivateDataMutex.RUnlock()
argsForCall := fake.getPrivateDataArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *ChaincodeStub) GetPrivateDataReturns(result1 []byte, result2 error) {
fake.getPrivateDataMutex.Lock()
defer fake.getPrivateDataMutex.Unlock()
fake.GetPrivateDataStub = nil
fake.getPrivateDataReturns = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetPrivateDataReturnsOnCall(i int, result1 []byte, result2 error) {
fake.getPrivateDataMutex.Lock()
defer fake.getPrivateDataMutex.Unlock()
fake.GetPrivateDataStub = nil
if fake.getPrivateDataReturnsOnCall == nil {
fake.getPrivateDataReturnsOnCall = make(map[int]struct {
result1 []byte
result2 error
})
}
fake.getPrivateDataReturnsOnCall[i] = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKey(arg1 string, arg2 string, arg3 []string) (shim.StateQueryIteratorInterface, error) {
var arg3Copy []string
if arg3 != nil {
arg3Copy = make([]string, len(arg3))
copy(arg3Copy, arg3)
}
fake.getPrivateDataByPartialCompositeKeyMutex.Lock()
ret, specificReturn := fake.getPrivateDataByPartialCompositeKeyReturnsOnCall[len(fake.getPrivateDataByPartialCompositeKeyArgsForCall)]
fake.getPrivateDataByPartialCompositeKeyArgsForCall = append(fake.getPrivateDataByPartialCompositeKeyArgsForCall, struct {
arg1 string
arg2 string
arg3 []string
}{arg1, arg2, arg3Copy})
fake.recordInvocation("GetPrivateDataByPartialCompositeKey", []interface{}{arg1, arg2, arg3Copy})
fake.getPrivateDataByPartialCompositeKeyMutex.Unlock()
if fake.GetPrivateDataByPartialCompositeKeyStub != nil {
return fake.GetPrivateDataByPartialCompositeKeyStub(arg1, arg2, arg3)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getPrivateDataByPartialCompositeKeyReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyCallCount() int {
fake.getPrivateDataByPartialCompositeKeyMutex.RLock()
defer fake.getPrivateDataByPartialCompositeKeyMutex.RUnlock()
return len(fake.getPrivateDataByPartialCompositeKeyArgsForCall)
}
func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyCalls(stub func(string, string, []string) (shim.StateQueryIteratorInterface, error)) {
fake.getPrivateDataByPartialCompositeKeyMutex.Lock()
defer fake.getPrivateDataByPartialCompositeKeyMutex.Unlock()
fake.GetPrivateDataByPartialCompositeKeyStub = stub
}
func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyArgsForCall(i int) (string, string, []string) {
fake.getPrivateDataByPartialCompositeKeyMutex.RLock()
defer fake.getPrivateDataByPartialCompositeKeyMutex.RUnlock()
argsForCall := fake.getPrivateDataByPartialCompositeKeyArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
}
func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyReturns(result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getPrivateDataByPartialCompositeKeyMutex.Lock()
defer fake.getPrivateDataByPartialCompositeKeyMutex.Unlock()
fake.GetPrivateDataByPartialCompositeKeyStub = nil
fake.getPrivateDataByPartialCompositeKeyReturns = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetPrivateDataByPartialCompositeKeyReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getPrivateDataByPartialCompositeKeyMutex.Lock()
defer fake.getPrivateDataByPartialCompositeKeyMutex.Unlock()
fake.GetPrivateDataByPartialCompositeKeyStub = nil
if fake.getPrivateDataByPartialCompositeKeyReturnsOnCall == nil {
fake.getPrivateDataByPartialCompositeKeyReturnsOnCall = make(map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
})
}
fake.getPrivateDataByPartialCompositeKeyReturnsOnCall[i] = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetPrivateDataByRange(arg1 string, arg2 string, arg3 string) (shim.StateQueryIteratorInterface, error) {
fake.getPrivateDataByRangeMutex.Lock()
ret, specificReturn := fake.getPrivateDataByRangeReturnsOnCall[len(fake.getPrivateDataByRangeArgsForCall)]
fake.getPrivateDataByRangeArgsForCall = append(fake.getPrivateDataByRangeArgsForCall, struct {
arg1 string
arg2 string
arg3 string
}{arg1, arg2, arg3})
fake.recordInvocation("GetPrivateDataByRange", []interface{}{arg1, arg2, arg3})
fake.getPrivateDataByRangeMutex.Unlock()
if fake.GetPrivateDataByRangeStub != nil {
return fake.GetPrivateDataByRangeStub(arg1, arg2, arg3)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getPrivateDataByRangeReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetPrivateDataByRangeCallCount() int {
fake.getPrivateDataByRangeMutex.RLock()
defer fake.getPrivateDataByRangeMutex.RUnlock()
return len(fake.getPrivateDataByRangeArgsForCall)
}
func (fake *ChaincodeStub) GetPrivateDataByRangeCalls(stub func(string, string, string) (shim.StateQueryIteratorInterface, error)) {
fake.getPrivateDataByRangeMutex.Lock()
defer fake.getPrivateDataByRangeMutex.Unlock()
fake.GetPrivateDataByRangeStub = stub
}
func (fake *ChaincodeStub) GetPrivateDataByRangeArgsForCall(i int) (string, string, string) {
fake.getPrivateDataByRangeMutex.RLock()
defer fake.getPrivateDataByRangeMutex.RUnlock()
argsForCall := fake.getPrivateDataByRangeArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
}
func (fake *ChaincodeStub) GetPrivateDataByRangeReturns(result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getPrivateDataByRangeMutex.Lock()
defer fake.getPrivateDataByRangeMutex.Unlock()
fake.GetPrivateDataByRangeStub = nil
fake.getPrivateDataByRangeReturns = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetPrivateDataByRangeReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getPrivateDataByRangeMutex.Lock()
defer fake.getPrivateDataByRangeMutex.Unlock()
fake.GetPrivateDataByRangeStub = nil
if fake.getPrivateDataByRangeReturnsOnCall == nil {
fake.getPrivateDataByRangeReturnsOnCall = make(map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
})
}
fake.getPrivateDataByRangeReturnsOnCall[i] = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetPrivateDataQueryResult(arg1 string, arg2 string) (shim.StateQueryIteratorInterface, error) {
fake.getPrivateDataQueryResultMutex.Lock()
ret, specificReturn := fake.getPrivateDataQueryResultReturnsOnCall[len(fake.getPrivateDataQueryResultArgsForCall)]
fake.getPrivateDataQueryResultArgsForCall = append(fake.getPrivateDataQueryResultArgsForCall, struct {
arg1 string
arg2 string
}{arg1, arg2})
fake.recordInvocation("GetPrivateDataQueryResult", []interface{}{arg1, arg2})
fake.getPrivateDataQueryResultMutex.Unlock()
if fake.GetPrivateDataQueryResultStub != nil {
return fake.GetPrivateDataQueryResultStub(arg1, arg2)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getPrivateDataQueryResultReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetPrivateDataQueryResultCallCount() int {
fake.getPrivateDataQueryResultMutex.RLock()
defer fake.getPrivateDataQueryResultMutex.RUnlock()
return len(fake.getPrivateDataQueryResultArgsForCall)
}
func (fake *ChaincodeStub) GetPrivateDataQueryResultCalls(stub func(string, string) (shim.StateQueryIteratorInterface, error)) {
fake.getPrivateDataQueryResultMutex.Lock()
defer fake.getPrivateDataQueryResultMutex.Unlock()
fake.GetPrivateDataQueryResultStub = stub
}
func (fake *ChaincodeStub) GetPrivateDataQueryResultArgsForCall(i int) (string, string) {
fake.getPrivateDataQueryResultMutex.RLock()
defer fake.getPrivateDataQueryResultMutex.RUnlock()
argsForCall := fake.getPrivateDataQueryResultArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *ChaincodeStub) GetPrivateDataQueryResultReturns(result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getPrivateDataQueryResultMutex.Lock()
defer fake.getPrivateDataQueryResultMutex.Unlock()
fake.GetPrivateDataQueryResultStub = nil
fake.getPrivateDataQueryResultReturns = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetPrivateDataQueryResultReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getPrivateDataQueryResultMutex.Lock()
defer fake.getPrivateDataQueryResultMutex.Unlock()
fake.GetPrivateDataQueryResultStub = nil
if fake.getPrivateDataQueryResultReturnsOnCall == nil {
fake.getPrivateDataQueryResultReturnsOnCall = make(map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
})
}
fake.getPrivateDataQueryResultReturnsOnCall[i] = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetPrivateDataValidationParameter(arg1 string, arg2 string) ([]byte, error) {
fake.getPrivateDataValidationParameterMutex.Lock()
ret, specificReturn := fake.getPrivateDataValidationParameterReturnsOnCall[len(fake.getPrivateDataValidationParameterArgsForCall)]
fake.getPrivateDataValidationParameterArgsForCall = append(fake.getPrivateDataValidationParameterArgsForCall, struct {
arg1 string
arg2 string
}{arg1, arg2})
fake.recordInvocation("GetPrivateDataValidationParameter", []interface{}{arg1, arg2})
fake.getPrivateDataValidationParameterMutex.Unlock()
if fake.GetPrivateDataValidationParameterStub != nil {
return fake.GetPrivateDataValidationParameterStub(arg1, arg2)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getPrivateDataValidationParameterReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetPrivateDataValidationParameterCallCount() int {
fake.getPrivateDataValidationParameterMutex.RLock()
defer fake.getPrivateDataValidationParameterMutex.RUnlock()
return len(fake.getPrivateDataValidationParameterArgsForCall)
}
func (fake *ChaincodeStub) GetPrivateDataValidationParameterCalls(stub func(string, string) ([]byte, error)) {
fake.getPrivateDataValidationParameterMutex.Lock()
defer fake.getPrivateDataValidationParameterMutex.Unlock()
fake.GetPrivateDataValidationParameterStub = stub
}
func (fake *ChaincodeStub) GetPrivateDataValidationParameterArgsForCall(i int) (string, string) {
fake.getPrivateDataValidationParameterMutex.RLock()
defer fake.getPrivateDataValidationParameterMutex.RUnlock()
argsForCall := fake.getPrivateDataValidationParameterArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *ChaincodeStub) GetPrivateDataValidationParameterReturns(result1 []byte, result2 error) {
fake.getPrivateDataValidationParameterMutex.Lock()
defer fake.getPrivateDataValidationParameterMutex.Unlock()
fake.GetPrivateDataValidationParameterStub = nil
fake.getPrivateDataValidationParameterReturns = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetPrivateDataValidationParameterReturnsOnCall(i int, result1 []byte, result2 error) {
fake.getPrivateDataValidationParameterMutex.Lock()
defer fake.getPrivateDataValidationParameterMutex.Unlock()
fake.GetPrivateDataValidationParameterStub = nil
if fake.getPrivateDataValidationParameterReturnsOnCall == nil {
fake.getPrivateDataValidationParameterReturnsOnCall = make(map[int]struct {
result1 []byte
result2 error
})
}
fake.getPrivateDataValidationParameterReturnsOnCall[i] = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetQueryResult(arg1 string) (shim.StateQueryIteratorInterface, error) {
fake.getQueryResultMutex.Lock()
ret, specificReturn := fake.getQueryResultReturnsOnCall[len(fake.getQueryResultArgsForCall)]
fake.getQueryResultArgsForCall = append(fake.getQueryResultArgsForCall, struct {
arg1 string
}{arg1})
fake.recordInvocation("GetQueryResult", []interface{}{arg1})
fake.getQueryResultMutex.Unlock()
if fake.GetQueryResultStub != nil {
return fake.GetQueryResultStub(arg1)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getQueryResultReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetQueryResultCallCount() int {
fake.getQueryResultMutex.RLock()
defer fake.getQueryResultMutex.RUnlock()
return len(fake.getQueryResultArgsForCall)
}
func (fake *ChaincodeStub) GetQueryResultCalls(stub func(string) (shim.StateQueryIteratorInterface, error)) {
fake.getQueryResultMutex.Lock()
defer fake.getQueryResultMutex.Unlock()
fake.GetQueryResultStub = stub
}
func (fake *ChaincodeStub) GetQueryResultArgsForCall(i int) string {
fake.getQueryResultMutex.RLock()
defer fake.getQueryResultMutex.RUnlock()
argsForCall := fake.getQueryResultArgsForCall[i]
return argsForCall.arg1
}
func (fake *ChaincodeStub) GetQueryResultReturns(result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getQueryResultMutex.Lock()
defer fake.getQueryResultMutex.Unlock()
fake.GetQueryResultStub = nil
fake.getQueryResultReturns = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetQueryResultReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getQueryResultMutex.Lock()
defer fake.getQueryResultMutex.Unlock()
fake.GetQueryResultStub = nil
if fake.getQueryResultReturnsOnCall == nil {
fake.getQueryResultReturnsOnCall = make(map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
})
}
fake.getQueryResultReturnsOnCall[i] = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetQueryResultWithPagination(arg1 string, arg2 int32, arg3 string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error) {
fake.getQueryResultWithPaginationMutex.Lock()
ret, specificReturn := fake.getQueryResultWithPaginationReturnsOnCall[len(fake.getQueryResultWithPaginationArgsForCall)]
fake.getQueryResultWithPaginationArgsForCall = append(fake.getQueryResultWithPaginationArgsForCall, struct {
arg1 string
arg2 int32
arg3 string
}{arg1, arg2, arg3})
fake.recordInvocation("GetQueryResultWithPagination", []interface{}{arg1, arg2, arg3})
fake.getQueryResultWithPaginationMutex.Unlock()
if fake.GetQueryResultWithPaginationStub != nil {
return fake.GetQueryResultWithPaginationStub(arg1, arg2, arg3)
}
if specificReturn {
return ret.result1, ret.result2, ret.result3
}
fakeReturns := fake.getQueryResultWithPaginationReturns
return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
}
func (fake *ChaincodeStub) GetQueryResultWithPaginationCallCount() int {
fake.getQueryResultWithPaginationMutex.RLock()
defer fake.getQueryResultWithPaginationMutex.RUnlock()
return len(fake.getQueryResultWithPaginationArgsForCall)
}
func (fake *ChaincodeStub) GetQueryResultWithPaginationCalls(stub func(string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)) {
fake.getQueryResultWithPaginationMutex.Lock()
defer fake.getQueryResultWithPaginationMutex.Unlock()
fake.GetQueryResultWithPaginationStub = stub
}
func (fake *ChaincodeStub) GetQueryResultWithPaginationArgsForCall(i int) (string, int32, string) {
fake.getQueryResultWithPaginationMutex.RLock()
defer fake.getQueryResultWithPaginationMutex.RUnlock()
argsForCall := fake.getQueryResultWithPaginationArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
}
func (fake *ChaincodeStub) GetQueryResultWithPaginationReturns(result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) {
fake.getQueryResultWithPaginationMutex.Lock()
defer fake.getQueryResultWithPaginationMutex.Unlock()
fake.GetQueryResultWithPaginationStub = nil
fake.getQueryResultWithPaginationReturns = struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}{result1, result2, result3}
}
func (fake *ChaincodeStub) GetQueryResultWithPaginationReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) {
fake.getQueryResultWithPaginationMutex.Lock()
defer fake.getQueryResultWithPaginationMutex.Unlock()
fake.GetQueryResultWithPaginationStub = nil
if fake.getQueryResultWithPaginationReturnsOnCall == nil {
fake.getQueryResultWithPaginationReturnsOnCall = make(map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
})
}
fake.getQueryResultWithPaginationReturnsOnCall[i] = struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}{result1, result2, result3}
}
func (fake *ChaincodeStub) GetSignedProposal() (*peer.SignedProposal, error) {
fake.getSignedProposalMutex.Lock()
ret, specificReturn := fake.getSignedProposalReturnsOnCall[len(fake.getSignedProposalArgsForCall)]
fake.getSignedProposalArgsForCall = append(fake.getSignedProposalArgsForCall, struct {
}{})
fake.recordInvocation("GetSignedProposal", []interface{}{})
fake.getSignedProposalMutex.Unlock()
if fake.GetSignedProposalStub != nil {
return fake.GetSignedProposalStub()
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getSignedProposalReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetSignedProposalCallCount() int {
fake.getSignedProposalMutex.RLock()
defer fake.getSignedProposalMutex.RUnlock()
return len(fake.getSignedProposalArgsForCall)
}
func (fake *ChaincodeStub) GetSignedProposalCalls(stub func() (*peer.SignedProposal, error)) {
fake.getSignedProposalMutex.Lock()
defer fake.getSignedProposalMutex.Unlock()
fake.GetSignedProposalStub = stub
}
func (fake *ChaincodeStub) GetSignedProposalReturns(result1 *peer.SignedProposal, result2 error) {
fake.getSignedProposalMutex.Lock()
defer fake.getSignedProposalMutex.Unlock()
fake.GetSignedProposalStub = nil
fake.getSignedProposalReturns = struct {
result1 *peer.SignedProposal
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetSignedProposalReturnsOnCall(i int, result1 *peer.SignedProposal, result2 error) {
fake.getSignedProposalMutex.Lock()
defer fake.getSignedProposalMutex.Unlock()
fake.GetSignedProposalStub = nil
if fake.getSignedProposalReturnsOnCall == nil {
fake.getSignedProposalReturnsOnCall = make(map[int]struct {
result1 *peer.SignedProposal
result2 error
})
}
fake.getSignedProposalReturnsOnCall[i] = struct {
result1 *peer.SignedProposal
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetState(arg1 string) ([]byte, error) {
fake.getStateMutex.Lock()
ret, specificReturn := fake.getStateReturnsOnCall[len(fake.getStateArgsForCall)]
fake.getStateArgsForCall = append(fake.getStateArgsForCall, struct {
arg1 string
}{arg1})
fake.recordInvocation("GetState", []interface{}{arg1})
fake.getStateMutex.Unlock()
if fake.GetStateStub != nil {
return fake.GetStateStub(arg1)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getStateReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetStateCallCount() int {
fake.getStateMutex.RLock()
defer fake.getStateMutex.RUnlock()
return len(fake.getStateArgsForCall)
}
func (fake *ChaincodeStub) GetStateCalls(stub func(string) ([]byte, error)) {
fake.getStateMutex.Lock()
defer fake.getStateMutex.Unlock()
fake.GetStateStub = stub
}
func (fake *ChaincodeStub) GetStateArgsForCall(i int) string {
fake.getStateMutex.RLock()
defer fake.getStateMutex.RUnlock()
argsForCall := fake.getStateArgsForCall[i]
return argsForCall.arg1
}
func (fake *ChaincodeStub) GetStateReturns(result1 []byte, result2 error) {
fake.getStateMutex.Lock()
defer fake.getStateMutex.Unlock()
fake.GetStateStub = nil
fake.getStateReturns = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetStateReturnsOnCall(i int, result1 []byte, result2 error) {
fake.getStateMutex.Lock()
defer fake.getStateMutex.Unlock()
fake.GetStateStub = nil
if fake.getStateReturnsOnCall == nil {
fake.getStateReturnsOnCall = make(map[int]struct {
result1 []byte
result2 error
})
}
fake.getStateReturnsOnCall[i] = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKey(arg1 string, arg2 []string) (shim.StateQueryIteratorInterface, error) {
var arg2Copy []string
if arg2 != nil {
arg2Copy = make([]string, len(arg2))
copy(arg2Copy, arg2)
}
fake.getStateByPartialCompositeKeyMutex.Lock()
ret, specificReturn := fake.getStateByPartialCompositeKeyReturnsOnCall[len(fake.getStateByPartialCompositeKeyArgsForCall)]
fake.getStateByPartialCompositeKeyArgsForCall = append(fake.getStateByPartialCompositeKeyArgsForCall, struct {
arg1 string
arg2 []string
}{arg1, arg2Copy})
fake.recordInvocation("GetStateByPartialCompositeKey", []interface{}{arg1, arg2Copy})
fake.getStateByPartialCompositeKeyMutex.Unlock()
if fake.GetStateByPartialCompositeKeyStub != nil {
return fake.GetStateByPartialCompositeKeyStub(arg1, arg2)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getStateByPartialCompositeKeyReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyCallCount() int {
fake.getStateByPartialCompositeKeyMutex.RLock()
defer fake.getStateByPartialCompositeKeyMutex.RUnlock()
return len(fake.getStateByPartialCompositeKeyArgsForCall)
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyCalls(stub func(string, []string) (shim.StateQueryIteratorInterface, error)) {
fake.getStateByPartialCompositeKeyMutex.Lock()
defer fake.getStateByPartialCompositeKeyMutex.Unlock()
fake.GetStateByPartialCompositeKeyStub = stub
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyArgsForCall(i int) (string, []string) {
fake.getStateByPartialCompositeKeyMutex.RLock()
defer fake.getStateByPartialCompositeKeyMutex.RUnlock()
argsForCall := fake.getStateByPartialCompositeKeyArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyReturns(result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getStateByPartialCompositeKeyMutex.Lock()
defer fake.getStateByPartialCompositeKeyMutex.Unlock()
fake.GetStateByPartialCompositeKeyStub = nil
fake.getStateByPartialCompositeKeyReturns = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getStateByPartialCompositeKeyMutex.Lock()
defer fake.getStateByPartialCompositeKeyMutex.Unlock()
fake.GetStateByPartialCompositeKeyStub = nil
if fake.getStateByPartialCompositeKeyReturnsOnCall == nil {
fake.getStateByPartialCompositeKeyReturnsOnCall = make(map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
})
}
fake.getStateByPartialCompositeKeyReturnsOnCall[i] = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPagination(arg1 string, arg2 []string, arg3 int32, arg4 string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error) {
var arg2Copy []string
if arg2 != nil {
arg2Copy = make([]string, len(arg2))
copy(arg2Copy, arg2)
}
fake.getStateByPartialCompositeKeyWithPaginationMutex.Lock()
ret, specificReturn := fake.getStateByPartialCompositeKeyWithPaginationReturnsOnCall[len(fake.getStateByPartialCompositeKeyWithPaginationArgsForCall)]
fake.getStateByPartialCompositeKeyWithPaginationArgsForCall = append(fake.getStateByPartialCompositeKeyWithPaginationArgsForCall, struct {
arg1 string
arg2 []string
arg3 int32
arg4 string
}{arg1, arg2Copy, arg3, arg4})
fake.recordInvocation("GetStateByPartialCompositeKeyWithPagination", []interface{}{arg1, arg2Copy, arg3, arg4})
fake.getStateByPartialCompositeKeyWithPaginationMutex.Unlock()
if fake.GetStateByPartialCompositeKeyWithPaginationStub != nil {
return fake.GetStateByPartialCompositeKeyWithPaginationStub(arg1, arg2, arg3, arg4)
}
if specificReturn {
return ret.result1, ret.result2, ret.result3
}
fakeReturns := fake.getStateByPartialCompositeKeyWithPaginationReturns
return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationCallCount() int {
fake.getStateByPartialCompositeKeyWithPaginationMutex.RLock()
defer fake.getStateByPartialCompositeKeyWithPaginationMutex.RUnlock()
return len(fake.getStateByPartialCompositeKeyWithPaginationArgsForCall)
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationCalls(stub func(string, []string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)) {
fake.getStateByPartialCompositeKeyWithPaginationMutex.Lock()
defer fake.getStateByPartialCompositeKeyWithPaginationMutex.Unlock()
fake.GetStateByPartialCompositeKeyWithPaginationStub = stub
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationArgsForCall(i int) (string, []string, int32, string) {
fake.getStateByPartialCompositeKeyWithPaginationMutex.RLock()
defer fake.getStateByPartialCompositeKeyWithPaginationMutex.RUnlock()
argsForCall := fake.getStateByPartialCompositeKeyWithPaginationArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationReturns(result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) {
fake.getStateByPartialCompositeKeyWithPaginationMutex.Lock()
defer fake.getStateByPartialCompositeKeyWithPaginationMutex.Unlock()
fake.GetStateByPartialCompositeKeyWithPaginationStub = nil
fake.getStateByPartialCompositeKeyWithPaginationReturns = struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}{result1, result2, result3}
}
func (fake *ChaincodeStub) GetStateByPartialCompositeKeyWithPaginationReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) {
fake.getStateByPartialCompositeKeyWithPaginationMutex.Lock()
defer fake.getStateByPartialCompositeKeyWithPaginationMutex.Unlock()
fake.GetStateByPartialCompositeKeyWithPaginationStub = nil
if fake.getStateByPartialCompositeKeyWithPaginationReturnsOnCall == nil {
fake.getStateByPartialCompositeKeyWithPaginationReturnsOnCall = make(map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
})
}
fake.getStateByPartialCompositeKeyWithPaginationReturnsOnCall[i] = struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}{result1, result2, result3}
}
func (fake *ChaincodeStub) GetStateByRange(arg1 string, arg2 string) (shim.StateQueryIteratorInterface, error) {
fake.getStateByRangeMutex.Lock()
ret, specificReturn := fake.getStateByRangeReturnsOnCall[len(fake.getStateByRangeArgsForCall)]
fake.getStateByRangeArgsForCall = append(fake.getStateByRangeArgsForCall, struct {
arg1 string
arg2 string
}{arg1, arg2})
fake.recordInvocation("GetStateByRange", []interface{}{arg1, arg2})
fake.getStateByRangeMutex.Unlock()
if fake.GetStateByRangeStub != nil {
return fake.GetStateByRangeStub(arg1, arg2)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getStateByRangeReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetStateByRangeCallCount() int {
fake.getStateByRangeMutex.RLock()
defer fake.getStateByRangeMutex.RUnlock()
return len(fake.getStateByRangeArgsForCall)
}
func (fake *ChaincodeStub) GetStateByRangeCalls(stub func(string, string) (shim.StateQueryIteratorInterface, error)) {
fake.getStateByRangeMutex.Lock()
defer fake.getStateByRangeMutex.Unlock()
fake.GetStateByRangeStub = stub
}
func (fake *ChaincodeStub) GetStateByRangeArgsForCall(i int) (string, string) {
fake.getStateByRangeMutex.RLock()
defer fake.getStateByRangeMutex.RUnlock()
argsForCall := fake.getStateByRangeArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *ChaincodeStub) GetStateByRangeReturns(result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getStateByRangeMutex.Lock()
defer fake.getStateByRangeMutex.Unlock()
fake.GetStateByRangeStub = nil
fake.getStateByRangeReturns = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetStateByRangeReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 error) {
fake.getStateByRangeMutex.Lock()
defer fake.getStateByRangeMutex.Unlock()
fake.GetStateByRangeStub = nil
if fake.getStateByRangeReturnsOnCall == nil {
fake.getStateByRangeReturnsOnCall = make(map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 error
})
}
fake.getStateByRangeReturnsOnCall[i] = struct {
result1 shim.StateQueryIteratorInterface
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetStateByRangeWithPagination(arg1 string, arg2 string, arg3 int32, arg4 string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error) {
fake.getStateByRangeWithPaginationMutex.Lock()
ret, specificReturn := fake.getStateByRangeWithPaginationReturnsOnCall[len(fake.getStateByRangeWithPaginationArgsForCall)]
fake.getStateByRangeWithPaginationArgsForCall = append(fake.getStateByRangeWithPaginationArgsForCall, struct {
arg1 string
arg2 string
arg3 int32
arg4 string
}{arg1, arg2, arg3, arg4})
fake.recordInvocation("GetStateByRangeWithPagination", []interface{}{arg1, arg2, arg3, arg4})
fake.getStateByRangeWithPaginationMutex.Unlock()
if fake.GetStateByRangeWithPaginationStub != nil {
return fake.GetStateByRangeWithPaginationStub(arg1, arg2, arg3, arg4)
}
if specificReturn {
return ret.result1, ret.result2, ret.result3
}
fakeReturns := fake.getStateByRangeWithPaginationReturns
return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
}
func (fake *ChaincodeStub) GetStateByRangeWithPaginationCallCount() int {
fake.getStateByRangeWithPaginationMutex.RLock()
defer fake.getStateByRangeWithPaginationMutex.RUnlock()
return len(fake.getStateByRangeWithPaginationArgsForCall)
}
func (fake *ChaincodeStub) GetStateByRangeWithPaginationCalls(stub func(string, string, int32, string) (shim.StateQueryIteratorInterface, *peer.QueryResponseMetadata, error)) {
fake.getStateByRangeWithPaginationMutex.Lock()
defer fake.getStateByRangeWithPaginationMutex.Unlock()
fake.GetStateByRangeWithPaginationStub = stub
}
func (fake *ChaincodeStub) GetStateByRangeWithPaginationArgsForCall(i int) (string, string, int32, string) {
fake.getStateByRangeWithPaginationMutex.RLock()
defer fake.getStateByRangeWithPaginationMutex.RUnlock()
argsForCall := fake.getStateByRangeWithPaginationArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4
}
func (fake *ChaincodeStub) GetStateByRangeWithPaginationReturns(result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) {
fake.getStateByRangeWithPaginationMutex.Lock()
defer fake.getStateByRangeWithPaginationMutex.Unlock()
fake.GetStateByRangeWithPaginationStub = nil
fake.getStateByRangeWithPaginationReturns = struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}{result1, result2, result3}
}
func (fake *ChaincodeStub) GetStateByRangeWithPaginationReturnsOnCall(i int, result1 shim.StateQueryIteratorInterface, result2 *peer.QueryResponseMetadata, result3 error) {
fake.getStateByRangeWithPaginationMutex.Lock()
defer fake.getStateByRangeWithPaginationMutex.Unlock()
fake.GetStateByRangeWithPaginationStub = nil
if fake.getStateByRangeWithPaginationReturnsOnCall == nil {
fake.getStateByRangeWithPaginationReturnsOnCall = make(map[int]struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
})
}
fake.getStateByRangeWithPaginationReturnsOnCall[i] = struct {
result1 shim.StateQueryIteratorInterface
result2 *peer.QueryResponseMetadata
result3 error
}{result1, result2, result3}
}
func (fake *ChaincodeStub) GetStateValidationParameter(arg1 string) ([]byte, error) {
fake.getStateValidationParameterMutex.Lock()
ret, specificReturn := fake.getStateValidationParameterReturnsOnCall[len(fake.getStateValidationParameterArgsForCall)]
fake.getStateValidationParameterArgsForCall = append(fake.getStateValidationParameterArgsForCall, struct {
arg1 string
}{arg1})
fake.recordInvocation("GetStateValidationParameter", []interface{}{arg1})
fake.getStateValidationParameterMutex.Unlock()
if fake.GetStateValidationParameterStub != nil {
return fake.GetStateValidationParameterStub(arg1)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getStateValidationParameterReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetStateValidationParameterCallCount() int {
fake.getStateValidationParameterMutex.RLock()
defer fake.getStateValidationParameterMutex.RUnlock()
return len(fake.getStateValidationParameterArgsForCall)
}
func (fake *ChaincodeStub) GetStateValidationParameterCalls(stub func(string) ([]byte, error)) {
fake.getStateValidationParameterMutex.Lock()
defer fake.getStateValidationParameterMutex.Unlock()
fake.GetStateValidationParameterStub = stub
}
func (fake *ChaincodeStub) GetStateValidationParameterArgsForCall(i int) string {
fake.getStateValidationParameterMutex.RLock()
defer fake.getStateValidationParameterMutex.RUnlock()
argsForCall := fake.getStateValidationParameterArgsForCall[i]
return argsForCall.arg1
}
func (fake *ChaincodeStub) GetStateValidationParameterReturns(result1 []byte, result2 error) {
fake.getStateValidationParameterMutex.Lock()
defer fake.getStateValidationParameterMutex.Unlock()
fake.GetStateValidationParameterStub = nil
fake.getStateValidationParameterReturns = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetStateValidationParameterReturnsOnCall(i int, result1 []byte, result2 error) {
fake.getStateValidationParameterMutex.Lock()
defer fake.getStateValidationParameterMutex.Unlock()
fake.GetStateValidationParameterStub = nil
if fake.getStateValidationParameterReturnsOnCall == nil {
fake.getStateValidationParameterReturnsOnCall = make(map[int]struct {
result1 []byte
result2 error
})
}
fake.getStateValidationParameterReturnsOnCall[i] = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetStringArgs() []string {
fake.getStringArgsMutex.Lock()
ret, specificReturn := fake.getStringArgsReturnsOnCall[len(fake.getStringArgsArgsForCall)]
fake.getStringArgsArgsForCall = append(fake.getStringArgsArgsForCall, struct {
}{})
fake.recordInvocation("GetStringArgs", []interface{}{})
fake.getStringArgsMutex.Unlock()
if fake.GetStringArgsStub != nil {
return fake.GetStringArgsStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.getStringArgsReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) GetStringArgsCallCount() int {
fake.getStringArgsMutex.RLock()
defer fake.getStringArgsMutex.RUnlock()
return len(fake.getStringArgsArgsForCall)
}
func (fake *ChaincodeStub) GetStringArgsCalls(stub func() []string) {
fake.getStringArgsMutex.Lock()
defer fake.getStringArgsMutex.Unlock()
fake.GetStringArgsStub = stub
}
func (fake *ChaincodeStub) GetStringArgsReturns(result1 []string) {
fake.getStringArgsMutex.Lock()
defer fake.getStringArgsMutex.Unlock()
fake.GetStringArgsStub = nil
fake.getStringArgsReturns = struct {
result1 []string
}{result1}
}
func (fake *ChaincodeStub) GetStringArgsReturnsOnCall(i int, result1 []string) {
fake.getStringArgsMutex.Lock()
defer fake.getStringArgsMutex.Unlock()
fake.GetStringArgsStub = nil
if fake.getStringArgsReturnsOnCall == nil {
fake.getStringArgsReturnsOnCall = make(map[int]struct {
result1 []string
})
}
fake.getStringArgsReturnsOnCall[i] = struct {
result1 []string
}{result1}
}
func (fake *ChaincodeStub) GetTransient() (map[string][]byte, error) {
fake.getTransientMutex.Lock()
ret, specificReturn := fake.getTransientReturnsOnCall[len(fake.getTransientArgsForCall)]
fake.getTransientArgsForCall = append(fake.getTransientArgsForCall, struct {
}{})
fake.recordInvocation("GetTransient", []interface{}{})
fake.getTransientMutex.Unlock()
if fake.GetTransientStub != nil {
return fake.GetTransientStub()
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getTransientReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetTransientCallCount() int {
fake.getTransientMutex.RLock()
defer fake.getTransientMutex.RUnlock()
return len(fake.getTransientArgsForCall)
}
func (fake *ChaincodeStub) GetTransientCalls(stub func() (map[string][]byte, error)) {
fake.getTransientMutex.Lock()
defer fake.getTransientMutex.Unlock()
fake.GetTransientStub = stub
}
func (fake *ChaincodeStub) GetTransientReturns(result1 map[string][]byte, result2 error) {
fake.getTransientMutex.Lock()
defer fake.getTransientMutex.Unlock()
fake.GetTransientStub = nil
fake.getTransientReturns = struct {
result1 map[string][]byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetTransientReturnsOnCall(i int, result1 map[string][]byte, result2 error) {
fake.getTransientMutex.Lock()
defer fake.getTransientMutex.Unlock()
fake.GetTransientStub = nil
if fake.getTransientReturnsOnCall == nil {
fake.getTransientReturnsOnCall = make(map[int]struct {
result1 map[string][]byte
result2 error
})
}
fake.getTransientReturnsOnCall[i] = struct {
result1 map[string][]byte
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetTxID() string {
fake.getTxIDMutex.Lock()
ret, specificReturn := fake.getTxIDReturnsOnCall[len(fake.getTxIDArgsForCall)]
fake.getTxIDArgsForCall = append(fake.getTxIDArgsForCall, struct {
}{})
fake.recordInvocation("GetTxID", []interface{}{})
fake.getTxIDMutex.Unlock()
if fake.GetTxIDStub != nil {
return fake.GetTxIDStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.getTxIDReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) GetTxIDCallCount() int {
fake.getTxIDMutex.RLock()
defer fake.getTxIDMutex.RUnlock()
return len(fake.getTxIDArgsForCall)
}
func (fake *ChaincodeStub) GetTxIDCalls(stub func() string) {
fake.getTxIDMutex.Lock()
defer fake.getTxIDMutex.Unlock()
fake.GetTxIDStub = stub
}
func (fake *ChaincodeStub) GetTxIDReturns(result1 string) {
fake.getTxIDMutex.Lock()
defer fake.getTxIDMutex.Unlock()
fake.GetTxIDStub = nil
fake.getTxIDReturns = struct {
result1 string
}{result1}
}
func (fake *ChaincodeStub) GetTxIDReturnsOnCall(i int, result1 string) {
fake.getTxIDMutex.Lock()
defer fake.getTxIDMutex.Unlock()
fake.GetTxIDStub = nil
if fake.getTxIDReturnsOnCall == nil {
fake.getTxIDReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.getTxIDReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *ChaincodeStub) GetTxTimestamp() (*timestamp.Timestamp, error) {
fake.getTxTimestampMutex.Lock()
ret, specificReturn := fake.getTxTimestampReturnsOnCall[len(fake.getTxTimestampArgsForCall)]
fake.getTxTimestampArgsForCall = append(fake.getTxTimestampArgsForCall, struct {
}{})
fake.recordInvocation("GetTxTimestamp", []interface{}{})
fake.getTxTimestampMutex.Unlock()
if fake.GetTxTimestampStub != nil {
return fake.GetTxTimestampStub()
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.getTxTimestampReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *ChaincodeStub) GetTxTimestampCallCount() int {
fake.getTxTimestampMutex.RLock()
defer fake.getTxTimestampMutex.RUnlock()
return len(fake.getTxTimestampArgsForCall)
}
func (fake *ChaincodeStub) GetTxTimestampCalls(stub func() (*timestamp.Timestamp, error)) {
fake.getTxTimestampMutex.Lock()
defer fake.getTxTimestampMutex.Unlock()
fake.GetTxTimestampStub = stub
}
func (fake *ChaincodeStub) GetTxTimestampReturns(result1 *timestamp.Timestamp, result2 error) {
fake.getTxTimestampMutex.Lock()
defer fake.getTxTimestampMutex.Unlock()
fake.GetTxTimestampStub = nil
fake.getTxTimestampReturns = struct {
result1 *timestamp.Timestamp
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) GetTxTimestampReturnsOnCall(i int, result1 *timestamp.Timestamp, result2 error) {
fake.getTxTimestampMutex.Lock()
defer fake.getTxTimestampMutex.Unlock()
fake.GetTxTimestampStub = nil
if fake.getTxTimestampReturnsOnCall == nil {
fake.getTxTimestampReturnsOnCall = make(map[int]struct {
result1 *timestamp.Timestamp
result2 error
})
}
fake.getTxTimestampReturnsOnCall[i] = struct {
result1 *timestamp.Timestamp
result2 error
}{result1, result2}
}
func (fake *ChaincodeStub) InvokeChaincode(arg1 string, arg2 [][]byte, arg3 string) peer.Response {
var arg2Copy [][]byte
if arg2 != nil {
arg2Copy = make([][]byte, len(arg2))
copy(arg2Copy, arg2)
}
fake.invokeChaincodeMutex.Lock()
ret, specificReturn := fake.invokeChaincodeReturnsOnCall[len(fake.invokeChaincodeArgsForCall)]
fake.invokeChaincodeArgsForCall = append(fake.invokeChaincodeArgsForCall, struct {
arg1 string
arg2 [][]byte
arg3 string
}{arg1, arg2Copy, arg3})
fake.recordInvocation("InvokeChaincode", []interface{}{arg1, arg2Copy, arg3})
fake.invokeChaincodeMutex.Unlock()
if fake.InvokeChaincodeStub != nil {
return fake.InvokeChaincodeStub(arg1, arg2, arg3)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.invokeChaincodeReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) InvokeChaincodeCallCount() int {
fake.invokeChaincodeMutex.RLock()
defer fake.invokeChaincodeMutex.RUnlock()
return len(fake.invokeChaincodeArgsForCall)
}
func (fake *ChaincodeStub) InvokeChaincodeCalls(stub func(string, [][]byte, string) peer.Response) {
fake.invokeChaincodeMutex.Lock()
defer fake.invokeChaincodeMutex.Unlock()
fake.InvokeChaincodeStub = stub
}
func (fake *ChaincodeStub) InvokeChaincodeArgsForCall(i int) (string, [][]byte, string) {
fake.invokeChaincodeMutex.RLock()
defer fake.invokeChaincodeMutex.RUnlock()
argsForCall := fake.invokeChaincodeArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
}
func (fake *ChaincodeStub) InvokeChaincodeReturns(result1 peer.Response) {
fake.invokeChaincodeMutex.Lock()
defer fake.invokeChaincodeMutex.Unlock()
fake.InvokeChaincodeStub = nil
fake.invokeChaincodeReturns = struct {
result1 peer.Response
}{result1}
}
func (fake *ChaincodeStub) InvokeChaincodeReturnsOnCall(i int, result1 peer.Response) {
fake.invokeChaincodeMutex.Lock()
defer fake.invokeChaincodeMutex.Unlock()
fake.InvokeChaincodeStub = nil
if fake.invokeChaincodeReturnsOnCall == nil {
fake.invokeChaincodeReturnsOnCall = make(map[int]struct {
result1 peer.Response
})
}
fake.invokeChaincodeReturnsOnCall[i] = struct {
result1 peer.Response
}{result1}
}
func (fake *ChaincodeStub) PutPrivateData(arg1 string, arg2 string, arg3 []byte) error {
var arg3Copy []byte
if arg3 != nil {
arg3Copy = make([]byte, len(arg3))
copy(arg3Copy, arg3)
}
fake.putPrivateDataMutex.Lock()
ret, specificReturn := fake.putPrivateDataReturnsOnCall[len(fake.putPrivateDataArgsForCall)]
fake.putPrivateDataArgsForCall = append(fake.putPrivateDataArgsForCall, struct {
arg1 string
arg2 string
arg3 []byte
}{arg1, arg2, arg3Copy})
fake.recordInvocation("PutPrivateData", []interface{}{arg1, arg2, arg3Copy})
fake.putPrivateDataMutex.Unlock()
if fake.PutPrivateDataStub != nil {
return fake.PutPrivateDataStub(arg1, arg2, arg3)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.putPrivateDataReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) PutPrivateDataCallCount() int {
fake.putPrivateDataMutex.RLock()
defer fake.putPrivateDataMutex.RUnlock()
return len(fake.putPrivateDataArgsForCall)
}
func (fake *ChaincodeStub) PutPrivateDataCalls(stub func(string, string, []byte) error) {
fake.putPrivateDataMutex.Lock()
defer fake.putPrivateDataMutex.Unlock()
fake.PutPrivateDataStub = stub
}
func (fake *ChaincodeStub) PutPrivateDataArgsForCall(i int) (string, string, []byte) {
fake.putPrivateDataMutex.RLock()
defer fake.putPrivateDataMutex.RUnlock()
argsForCall := fake.putPrivateDataArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
}
func (fake *ChaincodeStub) PutPrivateDataReturns(result1 error) {
fake.putPrivateDataMutex.Lock()
defer fake.putPrivateDataMutex.Unlock()
fake.PutPrivateDataStub = nil
fake.putPrivateDataReturns = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) PutPrivateDataReturnsOnCall(i int, result1 error) {
fake.putPrivateDataMutex.Lock()
defer fake.putPrivateDataMutex.Unlock()
fake.PutPrivateDataStub = nil
if fake.putPrivateDataReturnsOnCall == nil {
fake.putPrivateDataReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.putPrivateDataReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) PutState(arg1 string, arg2 []byte) error {
var arg2Copy []byte
if arg2 != nil {
arg2Copy = make([]byte, len(arg2))
copy(arg2Copy, arg2)
}
fake.putStateMutex.Lock()
ret, specificReturn := fake.putStateReturnsOnCall[len(fake.putStateArgsForCall)]
fake.putStateArgsForCall = append(fake.putStateArgsForCall, struct {
arg1 string
arg2 []byte
}{arg1, arg2Copy})
fake.recordInvocation("PutState", []interface{}{arg1, arg2Copy})
fake.putStateMutex.Unlock()
if fake.PutStateStub != nil {
return fake.PutStateStub(arg1, arg2)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.putStateReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) PutStateCallCount() int {
fake.putStateMutex.RLock()
defer fake.putStateMutex.RUnlock()
return len(fake.putStateArgsForCall)
}
func (fake *ChaincodeStub) PutStateCalls(stub func(string, []byte) error) {
fake.putStateMutex.Lock()
defer fake.putStateMutex.Unlock()
fake.PutStateStub = stub
}
func (fake *ChaincodeStub) PutStateArgsForCall(i int) (string, []byte) {
fake.putStateMutex.RLock()
defer fake.putStateMutex.RUnlock()
argsForCall := fake.putStateArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *ChaincodeStub) PutStateReturns(result1 error) {
fake.putStateMutex.Lock()
defer fake.putStateMutex.Unlock()
fake.PutStateStub = nil
fake.putStateReturns = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) PutStateReturnsOnCall(i int, result1 error) {
fake.putStateMutex.Lock()
defer fake.putStateMutex.Unlock()
fake.PutStateStub = nil
if fake.putStateReturnsOnCall == nil {
fake.putStateReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.putStateReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) SetEvent(arg1 string, arg2 []byte) error {
var arg2Copy []byte
if arg2 != nil {
arg2Copy = make([]byte, len(arg2))
copy(arg2Copy, arg2)
}
fake.setEventMutex.Lock()
ret, specificReturn := fake.setEventReturnsOnCall[len(fake.setEventArgsForCall)]
fake.setEventArgsForCall = append(fake.setEventArgsForCall, struct {
arg1 string
arg2 []byte
}{arg1, arg2Copy})
fake.recordInvocation("SetEvent", []interface{}{arg1, arg2Copy})
fake.setEventMutex.Unlock()
if fake.SetEventStub != nil {
return fake.SetEventStub(arg1, arg2)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.setEventReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) SetEventCallCount() int {
fake.setEventMutex.RLock()
defer fake.setEventMutex.RUnlock()
return len(fake.setEventArgsForCall)
}
func (fake *ChaincodeStub) SetEventCalls(stub func(string, []byte) error) {
fake.setEventMutex.Lock()
defer fake.setEventMutex.Unlock()
fake.SetEventStub = stub
}
func (fake *ChaincodeStub) SetEventArgsForCall(i int) (string, []byte) {
fake.setEventMutex.RLock()
defer fake.setEventMutex.RUnlock()
argsForCall := fake.setEventArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *ChaincodeStub) SetEventReturns(result1 error) {
fake.setEventMutex.Lock()
defer fake.setEventMutex.Unlock()
fake.SetEventStub = nil
fake.setEventReturns = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) SetEventReturnsOnCall(i int, result1 error) {
fake.setEventMutex.Lock()
defer fake.setEventMutex.Unlock()
fake.SetEventStub = nil
if fake.setEventReturnsOnCall == nil {
fake.setEventReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.setEventReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) SetPrivateDataValidationParameter(arg1 string, arg2 string, arg3 []byte) error {
var arg3Copy []byte
if arg3 != nil {
arg3Copy = make([]byte, len(arg3))
copy(arg3Copy, arg3)
}
fake.setPrivateDataValidationParameterMutex.Lock()
ret, specificReturn := fake.setPrivateDataValidationParameterReturnsOnCall[len(fake.setPrivateDataValidationParameterArgsForCall)]
fake.setPrivateDataValidationParameterArgsForCall = append(fake.setPrivateDataValidationParameterArgsForCall, struct {
arg1 string
arg2 string
arg3 []byte
}{arg1, arg2, arg3Copy})
fake.recordInvocation("SetPrivateDataValidationParameter", []interface{}{arg1, arg2, arg3Copy})
fake.setPrivateDataValidationParameterMutex.Unlock()
if fake.SetPrivateDataValidationParameterStub != nil {
return fake.SetPrivateDataValidationParameterStub(arg1, arg2, arg3)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.setPrivateDataValidationParameterReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) SetPrivateDataValidationParameterCallCount() int {
fake.setPrivateDataValidationParameterMutex.RLock()
defer fake.setPrivateDataValidationParameterMutex.RUnlock()
return len(fake.setPrivateDataValidationParameterArgsForCall)
}
func (fake *ChaincodeStub) SetPrivateDataValidationParameterCalls(stub func(string, string, []byte) error) {
fake.setPrivateDataValidationParameterMutex.Lock()
defer fake.setPrivateDataValidationParameterMutex.Unlock()
fake.SetPrivateDataValidationParameterStub = stub
}
func (fake *ChaincodeStub) SetPrivateDataValidationParameterArgsForCall(i int) (string, string, []byte) {
fake.setPrivateDataValidationParameterMutex.RLock()
defer fake.setPrivateDataValidationParameterMutex.RUnlock()
argsForCall := fake.setPrivateDataValidationParameterArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
}
func (fake *ChaincodeStub) SetPrivateDataValidationParameterReturns(result1 error) {
fake.setPrivateDataValidationParameterMutex.Lock()
defer fake.setPrivateDataValidationParameterMutex.Unlock()
fake.SetPrivateDataValidationParameterStub = nil
fake.setPrivateDataValidationParameterReturns = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) SetPrivateDataValidationParameterReturnsOnCall(i int, result1 error) {
fake.setPrivateDataValidationParameterMutex.Lock()
defer fake.setPrivateDataValidationParameterMutex.Unlock()
fake.SetPrivateDataValidationParameterStub = nil
if fake.setPrivateDataValidationParameterReturnsOnCall == nil {
fake.setPrivateDataValidationParameterReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.setPrivateDataValidationParameterReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) SetStateValidationParameter(arg1 string, arg2 []byte) error {
var arg2Copy []byte
if arg2 != nil {
arg2Copy = make([]byte, len(arg2))
copy(arg2Copy, arg2)
}
fake.setStateValidationParameterMutex.Lock()
ret, specificReturn := fake.setStateValidationParameterReturnsOnCall[len(fake.setStateValidationParameterArgsForCall)]
fake.setStateValidationParameterArgsForCall = append(fake.setStateValidationParameterArgsForCall, struct {
arg1 string
arg2 []byte
}{arg1, arg2Copy})
fake.recordInvocation("SetStateValidationParameter", []interface{}{arg1, arg2Copy})
fake.setStateValidationParameterMutex.Unlock()
if fake.SetStateValidationParameterStub != nil {
return fake.SetStateValidationParameterStub(arg1, arg2)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.setStateValidationParameterReturns
return fakeReturns.result1
}
func (fake *ChaincodeStub) SetStateValidationParameterCallCount() int {
fake.setStateValidationParameterMutex.RLock()
defer fake.setStateValidationParameterMutex.RUnlock()
return len(fake.setStateValidationParameterArgsForCall)
}
func (fake *ChaincodeStub) SetStateValidationParameterCalls(stub func(string, []byte) error) {
fake.setStateValidationParameterMutex.Lock()
defer fake.setStateValidationParameterMutex.Unlock()
fake.SetStateValidationParameterStub = stub
}
func (fake *ChaincodeStub) SetStateValidationParameterArgsForCall(i int) (string, []byte) {
fake.setStateValidationParameterMutex.RLock()
defer fake.setStateValidationParameterMutex.RUnlock()
argsForCall := fake.setStateValidationParameterArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *ChaincodeStub) SetStateValidationParameterReturns(result1 error) {
fake.setStateValidationParameterMutex.Lock()
defer fake.setStateValidationParameterMutex.Unlock()
fake.SetStateValidationParameterStub = nil
fake.setStateValidationParameterReturns = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) SetStateValidationParameterReturnsOnCall(i int, result1 error) {
fake.setStateValidationParameterMutex.Lock()
defer fake.setStateValidationParameterMutex.Unlock()
fake.SetStateValidationParameterStub = nil
if fake.setStateValidationParameterReturnsOnCall == nil {
fake.setStateValidationParameterReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.setStateValidationParameterReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *ChaincodeStub) SplitCompositeKey(arg1 string) (string, []string, error) {
fake.splitCompositeKeyMutex.Lock()
ret, specificReturn := fake.splitCompositeKeyReturnsOnCall[len(fake.splitCompositeKeyArgsForCall)]
fake.splitCompositeKeyArgsForCall = append(fake.splitCompositeKeyArgsForCall, struct {
arg1 string
}{arg1})
fake.recordInvocation("SplitCompositeKey", []interface{}{arg1})
fake.splitCompositeKeyMutex.Unlock()
if fake.SplitCompositeKeyStub != nil {
return fake.SplitCompositeKeyStub(arg1)
}
if specificReturn {
return ret.result1, ret.result2, ret.result3
}
fakeReturns := fake.splitCompositeKeyReturns
return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
}
func (fake *ChaincodeStub) SplitCompositeKeyCallCount() int {
fake.splitCompositeKeyMutex.RLock()
defer fake.splitCompositeKeyMutex.RUnlock()
return len(fake.splitCompositeKeyArgsForCall)
}
func (fake *ChaincodeStub) SplitCompositeKeyCalls(stub func(string) (string, []string, error)) {
fake.splitCompositeKeyMutex.Lock()
defer fake.splitCompositeKeyMutex.Unlock()
fake.SplitCompositeKeyStub = stub
}
func (fake *ChaincodeStub) SplitCompositeKeyArgsForCall(i int) string {
fake.splitCompositeKeyMutex.RLock()
defer fake.splitCompositeKeyMutex.RUnlock()
argsForCall := fake.splitCompositeKeyArgsForCall[i]
return argsForCall.arg1
}
func (fake *ChaincodeStub) SplitCompositeKeyReturns(result1 string, result2 []string, result3 error) {
fake.splitCompositeKeyMutex.Lock()
defer fake.splitCompositeKeyMutex.Unlock()
fake.SplitCompositeKeyStub = nil
fake.splitCompositeKeyReturns = struct {
result1 string
result2 []string
result3 error
}{result1, result2, result3}
}
func (fake *ChaincodeStub) SplitCompositeKeyReturnsOnCall(i int, result1 string, result2 []string, result3 error) {
fake.splitCompositeKeyMutex.Lock()
defer fake.splitCompositeKeyMutex.Unlock()
fake.SplitCompositeKeyStub = nil
if fake.splitCompositeKeyReturnsOnCall == nil {
fake.splitCompositeKeyReturnsOnCall = make(map[int]struct {
result1 string
result2 []string
result3 error
})
}
fake.splitCompositeKeyReturnsOnCall[i] = struct {
result1 string
result2 []string
result3 error
}{result1, result2, result3}
}
func (fake *ChaincodeStub) Invocations() map[string][][]interface{} {
fake.invocationsMutex.RLock()
defer fake.invocationsMutex.RUnlock()
fake.createCompositeKeyMutex.RLock()
defer fake.createCompositeKeyMutex.RUnlock()
fake.delPrivateDataMutex.RLock()
defer fake.delPrivateDataMutex.RUnlock()
fake.delStateMutex.RLock()
defer fake.delStateMutex.RUnlock()
fake.getArgsMutex.RLock()
defer fake.getArgsMutex.RUnlock()
fake.getArgsSliceMutex.RLock()
defer fake.getArgsSliceMutex.RUnlock()
fake.getBindingMutex.RLock()
defer fake.getBindingMutex.RUnlock()
fake.getChannelIDMutex.RLock()
defer fake.getChannelIDMutex.RUnlock()
fake.getCreatorMutex.RLock()
defer fake.getCreatorMutex.RUnlock()
fake.getDecorationsMutex.RLock()
defer fake.getDecorationsMutex.RUnlock()
fake.getFunctionAndParametersMutex.RLock()
defer fake.getFunctionAndParametersMutex.RUnlock()
fake.getHistoryForKeyMutex.RLock()
defer fake.getHistoryForKeyMutex.RUnlock()
fake.getPrivateDataMutex.RLock()
defer fake.getPrivateDataMutex.RUnlock()
fake.getPrivateDataByPartialCompositeKeyMutex.RLock()
defer fake.getPrivateDataByPartialCompositeKeyMutex.RUnlock()
fake.getPrivateDataByRangeMutex.RLock()
defer fake.getPrivateDataByRangeMutex.RUnlock()
fake.getPrivateDataQueryResultMutex.RLock()
defer fake.getPrivateDataQueryResultMutex.RUnlock()
fake.getPrivateDataValidationParameterMutex.RLock()
defer fake.getPrivateDataValidationParameterMutex.RUnlock()
fake.getQueryResultMutex.RLock()
defer fake.getQueryResultMutex.RUnlock()
fake.getQueryResultWithPaginationMutex.RLock()
defer fake.getQueryResultWithPaginationMutex.RUnlock()
fake.getSignedProposalMutex.RLock()
defer fake.getSignedProposalMutex.RUnlock()
fake.getStateMutex.RLock()
defer fake.getStateMutex.RUnlock()
fake.getStateByPartialCompositeKeyMutex.RLock()
defer fake.getStateByPartialCompositeKeyMutex.RUnlock()
fake.getStateByPartialCompositeKeyWithPaginationMutex.RLock()
defer fake.getStateByPartialCompositeKeyWithPaginationMutex.RUnlock()
fake.getStateByRangeMutex.RLock()
defer fake.getStateByRangeMutex.RUnlock()
fake.getStateByRangeWithPaginationMutex.RLock()
defer fake.getStateByRangeWithPaginationMutex.RUnlock()
fake.getStateValidationParameterMutex.RLock()
defer fake.getStateValidationParameterMutex.RUnlock()
fake.getStringArgsMutex.RLock()
defer fake.getStringArgsMutex.RUnlock()
fake.getTransientMutex.RLock()
defer fake.getTransientMutex.RUnlock()
fake.getTxIDMutex.RLock()
defer fake.getTxIDMutex.RUnlock()
fake.getTxTimestampMutex.RLock()
defer fake.getTxTimestampMutex.RUnlock()
fake.invokeChaincodeMutex.RLock()
defer fake.invokeChaincodeMutex.RUnlock()
fake.putPrivateDataMutex.RLock()
defer fake.putPrivateDataMutex.RUnlock()
fake.putStateMutex.RLock()
defer fake.putStateMutex.RUnlock()
fake.setEventMutex.RLock()
defer fake.setEventMutex.RUnlock()
fake.setPrivateDataValidationParameterMutex.RLock()
defer fake.setPrivateDataValidationParameterMutex.RUnlock()
fake.setStateValidationParameterMutex.RLock()
defer fake.setStateValidationParameterMutex.RUnlock()
fake.splitCompositeKeyMutex.RLock()
defer fake.splitCompositeKeyMutex.RUnlock()
copiedInvocations := map[string][][]interface{}{}
for key, value := range fake.invocations {
copiedInvocations[key] = value
}
return copiedInvocations
}
func (fake *ChaincodeStub) recordInvocation(key string, args []interface{}) {
fake.invocationsMutex.Lock()
defer fake.invocationsMutex.Unlock()
if fake.invocations == nil {
fake.invocations = map[string][][]interface{}{}
}
if fake.invocations[key] == nil {
fake.invocations[key] = [][]interface{}{}
}
fake.invocations[key] = append(fake.invocations[key], args)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liurenhao/fabric.git
git@gitee.com:liurenhao/fabric.git
liurenhao
fabric
fabric
v1.4.0-rc1

搜索帮助

0d507c66 1850385 C8b1a773 1850385