3 Star 14 Fork 4

赵春/fabric-gm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mock_consenter_support.go 38.12 KB
一键复制 编辑 原始数据 按行查看 历史
赵春 提交于 2022-02-22 14:31 . 基础版本作成
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289
// Code generated by counterfeiter. DO NOT EDIT.
package mocks
import (
"sync"
"github.com/hyperledger/fabric-protos-go/common"
"gitee.com/zhaochuninhefei/fabric-gm/common/channelconfig"
"gitee.com/zhaochuninhefei/fabric-gm/orderer/common/blockcutter"
"gitee.com/zhaochuninhefei/fabric-gm/orderer/common/msgprocessor"
"gitee.com/zhaochuninhefei/fabric-gm/orderer/consensus"
"gitee.com/zhaochuninhefei/fabric-gm/protoutil"
)
type FakeConsenterSupport struct {
AppendStub func(*common.Block) error
appendMutex sync.RWMutex
appendArgsForCall []struct {
arg1 *common.Block
}
appendReturns struct {
result1 error
}
appendReturnsOnCall map[int]struct {
result1 error
}
BlockStub func(uint64) *common.Block
blockMutex sync.RWMutex
blockArgsForCall []struct {
arg1 uint64
}
blockReturns struct {
result1 *common.Block
}
blockReturnsOnCall map[int]struct {
result1 *common.Block
}
BlockCutterStub func() blockcutter.Receiver
blockCutterMutex sync.RWMutex
blockCutterArgsForCall []struct {
}
blockCutterReturns struct {
result1 blockcutter.Receiver
}
blockCutterReturnsOnCall map[int]struct {
result1 blockcutter.Receiver
}
ChannelConfigStub func() channelconfig.Channel
channelConfigMutex sync.RWMutex
channelConfigArgsForCall []struct {
}
channelConfigReturns struct {
result1 channelconfig.Channel
}
channelConfigReturnsOnCall map[int]struct {
result1 channelconfig.Channel
}
ChannelIDStub func() string
channelIDMutex sync.RWMutex
channelIDArgsForCall []struct {
}
channelIDReturns struct {
result1 string
}
channelIDReturnsOnCall map[int]struct {
result1 string
}
ClassifyMsgStub func(*common.ChannelHeader) msgprocessor.Classification
classifyMsgMutex sync.RWMutex
classifyMsgArgsForCall []struct {
arg1 *common.ChannelHeader
}
classifyMsgReturns struct {
result1 msgprocessor.Classification
}
classifyMsgReturnsOnCall map[int]struct {
result1 msgprocessor.Classification
}
CreateNextBlockStub func([]*common.Envelope) *common.Block
createNextBlockMutex sync.RWMutex
createNextBlockArgsForCall []struct {
arg1 []*common.Envelope
}
createNextBlockReturns struct {
result1 *common.Block
}
createNextBlockReturnsOnCall map[int]struct {
result1 *common.Block
}
HeightStub func() uint64
heightMutex sync.RWMutex
heightArgsForCall []struct {
}
heightReturns struct {
result1 uint64
}
heightReturnsOnCall map[int]struct {
result1 uint64
}
ProcessConfigMsgStub func(*common.Envelope) (*common.Envelope, uint64, error)
processConfigMsgMutex sync.RWMutex
processConfigMsgArgsForCall []struct {
arg1 *common.Envelope
}
processConfigMsgReturns struct {
result1 *common.Envelope
result2 uint64
result3 error
}
processConfigMsgReturnsOnCall map[int]struct {
result1 *common.Envelope
result2 uint64
result3 error
}
ProcessConfigUpdateMsgStub func(*common.Envelope) (*common.Envelope, uint64, error)
processConfigUpdateMsgMutex sync.RWMutex
processConfigUpdateMsgArgsForCall []struct {
arg1 *common.Envelope
}
processConfigUpdateMsgReturns struct {
result1 *common.Envelope
result2 uint64
result3 error
}
processConfigUpdateMsgReturnsOnCall map[int]struct {
result1 *common.Envelope
result2 uint64
result3 error
}
ProcessNormalMsgStub func(*common.Envelope) (uint64, error)
processNormalMsgMutex sync.RWMutex
processNormalMsgArgsForCall []struct {
arg1 *common.Envelope
}
processNormalMsgReturns struct {
result1 uint64
result2 error
}
processNormalMsgReturnsOnCall map[int]struct {
result1 uint64
result2 error
}
SequenceStub func() uint64
sequenceMutex sync.RWMutex
sequenceArgsForCall []struct {
}
sequenceReturns struct {
result1 uint64
}
sequenceReturnsOnCall map[int]struct {
result1 uint64
}
SerializeStub func() ([]byte, error)
serializeMutex sync.RWMutex
serializeArgsForCall []struct {
}
serializeReturns struct {
result1 []byte
result2 error
}
serializeReturnsOnCall map[int]struct {
result1 []byte
result2 error
}
SharedConfigStub func() channelconfig.Orderer
sharedConfigMutex sync.RWMutex
sharedConfigArgsForCall []struct {
}
sharedConfigReturns struct {
result1 channelconfig.Orderer
}
sharedConfigReturnsOnCall map[int]struct {
result1 channelconfig.Orderer
}
SignStub func([]byte) ([]byte, error)
signMutex sync.RWMutex
signArgsForCall []struct {
arg1 []byte
}
signReturns struct {
result1 []byte
result2 error
}
signReturnsOnCall map[int]struct {
result1 []byte
result2 error
}
VerifyBlockSignatureStub func([]*protoutil.SignedData, *common.ConfigEnvelope) error
verifyBlockSignatureMutex sync.RWMutex
verifyBlockSignatureArgsForCall []struct {
arg1 []*protoutil.SignedData
arg2 *common.ConfigEnvelope
}
verifyBlockSignatureReturns struct {
result1 error
}
verifyBlockSignatureReturnsOnCall map[int]struct {
result1 error
}
WriteBlockStub func(*common.Block, []byte)
writeBlockMutex sync.RWMutex
writeBlockArgsForCall []struct {
arg1 *common.Block
arg2 []byte
}
WriteConfigBlockStub func(*common.Block, []byte)
writeConfigBlockMutex sync.RWMutex
writeConfigBlockArgsForCall []struct {
arg1 *common.Block
arg2 []byte
}
invocations map[string][][]interface{}
invocationsMutex sync.RWMutex
}
func (fake *FakeConsenterSupport) Append(arg1 *common.Block) error {
fake.appendMutex.Lock()
ret, specificReturn := fake.appendReturnsOnCall[len(fake.appendArgsForCall)]
fake.appendArgsForCall = append(fake.appendArgsForCall, struct {
arg1 *common.Block
}{arg1})
fake.recordInvocation("Append", []interface{}{arg1})
fake.appendMutex.Unlock()
if fake.AppendStub != nil {
return fake.AppendStub(arg1)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.appendReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) AppendCallCount() int {
fake.appendMutex.RLock()
defer fake.appendMutex.RUnlock()
return len(fake.appendArgsForCall)
}
func (fake *FakeConsenterSupport) AppendCalls(stub func(*common.Block) error) {
fake.appendMutex.Lock()
defer fake.appendMutex.Unlock()
fake.AppendStub = stub
}
func (fake *FakeConsenterSupport) AppendArgsForCall(i int) *common.Block {
fake.appendMutex.RLock()
defer fake.appendMutex.RUnlock()
argsForCall := fake.appendArgsForCall[i]
return argsForCall.arg1
}
func (fake *FakeConsenterSupport) AppendReturns(result1 error) {
fake.appendMutex.Lock()
defer fake.appendMutex.Unlock()
fake.AppendStub = nil
fake.appendReturns = struct {
result1 error
}{result1}
}
func (fake *FakeConsenterSupport) AppendReturnsOnCall(i int, result1 error) {
fake.appendMutex.Lock()
defer fake.appendMutex.Unlock()
fake.AppendStub = nil
if fake.appendReturnsOnCall == nil {
fake.appendReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.appendReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *FakeConsenterSupport) Block(arg1 uint64) *common.Block {
fake.blockMutex.Lock()
ret, specificReturn := fake.blockReturnsOnCall[len(fake.blockArgsForCall)]
fake.blockArgsForCall = append(fake.blockArgsForCall, struct {
arg1 uint64
}{arg1})
fake.recordInvocation("Block", []interface{}{arg1})
fake.blockMutex.Unlock()
if fake.BlockStub != nil {
return fake.BlockStub(arg1)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.blockReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) BlockCallCount() int {
fake.blockMutex.RLock()
defer fake.blockMutex.RUnlock()
return len(fake.blockArgsForCall)
}
func (fake *FakeConsenterSupport) BlockCalls(stub func(uint64) *common.Block) {
fake.blockMutex.Lock()
defer fake.blockMutex.Unlock()
fake.BlockStub = stub
}
func (fake *FakeConsenterSupport) BlockArgsForCall(i int) uint64 {
fake.blockMutex.RLock()
defer fake.blockMutex.RUnlock()
argsForCall := fake.blockArgsForCall[i]
return argsForCall.arg1
}
func (fake *FakeConsenterSupport) BlockReturns(result1 *common.Block) {
fake.blockMutex.Lock()
defer fake.blockMutex.Unlock()
fake.BlockStub = nil
fake.blockReturns = struct {
result1 *common.Block
}{result1}
}
func (fake *FakeConsenterSupport) BlockReturnsOnCall(i int, result1 *common.Block) {
fake.blockMutex.Lock()
defer fake.blockMutex.Unlock()
fake.BlockStub = nil
if fake.blockReturnsOnCall == nil {
fake.blockReturnsOnCall = make(map[int]struct {
result1 *common.Block
})
}
fake.blockReturnsOnCall[i] = struct {
result1 *common.Block
}{result1}
}
func (fake *FakeConsenterSupport) BlockCutter() blockcutter.Receiver {
fake.blockCutterMutex.Lock()
ret, specificReturn := fake.blockCutterReturnsOnCall[len(fake.blockCutterArgsForCall)]
fake.blockCutterArgsForCall = append(fake.blockCutterArgsForCall, struct {
}{})
fake.recordInvocation("BlockCutter", []interface{}{})
fake.blockCutterMutex.Unlock()
if fake.BlockCutterStub != nil {
return fake.BlockCutterStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.blockCutterReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) BlockCutterCallCount() int {
fake.blockCutterMutex.RLock()
defer fake.blockCutterMutex.RUnlock()
return len(fake.blockCutterArgsForCall)
}
func (fake *FakeConsenterSupport) BlockCutterCalls(stub func() blockcutter.Receiver) {
fake.blockCutterMutex.Lock()
defer fake.blockCutterMutex.Unlock()
fake.BlockCutterStub = stub
}
func (fake *FakeConsenterSupport) BlockCutterReturns(result1 blockcutter.Receiver) {
fake.blockCutterMutex.Lock()
defer fake.blockCutterMutex.Unlock()
fake.BlockCutterStub = nil
fake.blockCutterReturns = struct {
result1 blockcutter.Receiver
}{result1}
}
func (fake *FakeConsenterSupport) BlockCutterReturnsOnCall(i int, result1 blockcutter.Receiver) {
fake.blockCutterMutex.Lock()
defer fake.blockCutterMutex.Unlock()
fake.BlockCutterStub = nil
if fake.blockCutterReturnsOnCall == nil {
fake.blockCutterReturnsOnCall = make(map[int]struct {
result1 blockcutter.Receiver
})
}
fake.blockCutterReturnsOnCall[i] = struct {
result1 blockcutter.Receiver
}{result1}
}
func (fake *FakeConsenterSupport) ChannelConfig() channelconfig.Channel {
fake.channelConfigMutex.Lock()
ret, specificReturn := fake.channelConfigReturnsOnCall[len(fake.channelConfigArgsForCall)]
fake.channelConfigArgsForCall = append(fake.channelConfigArgsForCall, struct {
}{})
fake.recordInvocation("ChannelConfig", []interface{}{})
fake.channelConfigMutex.Unlock()
if fake.ChannelConfigStub != nil {
return fake.ChannelConfigStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.channelConfigReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) ChannelConfigCallCount() int {
fake.channelConfigMutex.RLock()
defer fake.channelConfigMutex.RUnlock()
return len(fake.channelConfigArgsForCall)
}
func (fake *FakeConsenterSupport) ChannelConfigCalls(stub func() channelconfig.Channel) {
fake.channelConfigMutex.Lock()
defer fake.channelConfigMutex.Unlock()
fake.ChannelConfigStub = stub
}
func (fake *FakeConsenterSupport) ChannelConfigReturns(result1 channelconfig.Channel) {
fake.channelConfigMutex.Lock()
defer fake.channelConfigMutex.Unlock()
fake.ChannelConfigStub = nil
fake.channelConfigReturns = struct {
result1 channelconfig.Channel
}{result1}
}
func (fake *FakeConsenterSupport) ChannelConfigReturnsOnCall(i int, result1 channelconfig.Channel) {
fake.channelConfigMutex.Lock()
defer fake.channelConfigMutex.Unlock()
fake.ChannelConfigStub = nil
if fake.channelConfigReturnsOnCall == nil {
fake.channelConfigReturnsOnCall = make(map[int]struct {
result1 channelconfig.Channel
})
}
fake.channelConfigReturnsOnCall[i] = struct {
result1 channelconfig.Channel
}{result1}
}
func (fake *FakeConsenterSupport) ChannelID() string {
fake.channelIDMutex.Lock()
ret, specificReturn := fake.channelIDReturnsOnCall[len(fake.channelIDArgsForCall)]
fake.channelIDArgsForCall = append(fake.channelIDArgsForCall, struct {
}{})
fake.recordInvocation("ChannelID", []interface{}{})
fake.channelIDMutex.Unlock()
if fake.ChannelIDStub != nil {
return fake.ChannelIDStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.channelIDReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) ChannelIDCallCount() int {
fake.channelIDMutex.RLock()
defer fake.channelIDMutex.RUnlock()
return len(fake.channelIDArgsForCall)
}
func (fake *FakeConsenterSupport) ChannelIDCalls(stub func() string) {
fake.channelIDMutex.Lock()
defer fake.channelIDMutex.Unlock()
fake.ChannelIDStub = stub
}
func (fake *FakeConsenterSupport) ChannelIDReturns(result1 string) {
fake.channelIDMutex.Lock()
defer fake.channelIDMutex.Unlock()
fake.ChannelIDStub = nil
fake.channelIDReturns = struct {
result1 string
}{result1}
}
func (fake *FakeConsenterSupport) ChannelIDReturnsOnCall(i int, result1 string) {
fake.channelIDMutex.Lock()
defer fake.channelIDMutex.Unlock()
fake.ChannelIDStub = nil
if fake.channelIDReturnsOnCall == nil {
fake.channelIDReturnsOnCall = make(map[int]struct {
result1 string
})
}
fake.channelIDReturnsOnCall[i] = struct {
result1 string
}{result1}
}
func (fake *FakeConsenterSupport) ClassifyMsg(arg1 *common.ChannelHeader) msgprocessor.Classification {
fake.classifyMsgMutex.Lock()
ret, specificReturn := fake.classifyMsgReturnsOnCall[len(fake.classifyMsgArgsForCall)]
fake.classifyMsgArgsForCall = append(fake.classifyMsgArgsForCall, struct {
arg1 *common.ChannelHeader
}{arg1})
fake.recordInvocation("ClassifyMsg", []interface{}{arg1})
fake.classifyMsgMutex.Unlock()
if fake.ClassifyMsgStub != nil {
return fake.ClassifyMsgStub(arg1)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.classifyMsgReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) ClassifyMsgCallCount() int {
fake.classifyMsgMutex.RLock()
defer fake.classifyMsgMutex.RUnlock()
return len(fake.classifyMsgArgsForCall)
}
func (fake *FakeConsenterSupport) ClassifyMsgCalls(stub func(*common.ChannelHeader) msgprocessor.Classification) {
fake.classifyMsgMutex.Lock()
defer fake.classifyMsgMutex.Unlock()
fake.ClassifyMsgStub = stub
}
func (fake *FakeConsenterSupport) ClassifyMsgArgsForCall(i int) *common.ChannelHeader {
fake.classifyMsgMutex.RLock()
defer fake.classifyMsgMutex.RUnlock()
argsForCall := fake.classifyMsgArgsForCall[i]
return argsForCall.arg1
}
func (fake *FakeConsenterSupport) ClassifyMsgReturns(result1 msgprocessor.Classification) {
fake.classifyMsgMutex.Lock()
defer fake.classifyMsgMutex.Unlock()
fake.ClassifyMsgStub = nil
fake.classifyMsgReturns = struct {
result1 msgprocessor.Classification
}{result1}
}
func (fake *FakeConsenterSupport) ClassifyMsgReturnsOnCall(i int, result1 msgprocessor.Classification) {
fake.classifyMsgMutex.Lock()
defer fake.classifyMsgMutex.Unlock()
fake.ClassifyMsgStub = nil
if fake.classifyMsgReturnsOnCall == nil {
fake.classifyMsgReturnsOnCall = make(map[int]struct {
result1 msgprocessor.Classification
})
}
fake.classifyMsgReturnsOnCall[i] = struct {
result1 msgprocessor.Classification
}{result1}
}
func (fake *FakeConsenterSupport) CreateNextBlock(arg1 []*common.Envelope) *common.Block {
var arg1Copy []*common.Envelope
if arg1 != nil {
arg1Copy = make([]*common.Envelope, len(arg1))
copy(arg1Copy, arg1)
}
fake.createNextBlockMutex.Lock()
ret, specificReturn := fake.createNextBlockReturnsOnCall[len(fake.createNextBlockArgsForCall)]
fake.createNextBlockArgsForCall = append(fake.createNextBlockArgsForCall, struct {
arg1 []*common.Envelope
}{arg1Copy})
fake.recordInvocation("CreateNextBlock", []interface{}{arg1Copy})
fake.createNextBlockMutex.Unlock()
if fake.CreateNextBlockStub != nil {
return fake.CreateNextBlockStub(arg1)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.createNextBlockReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) CreateNextBlockCallCount() int {
fake.createNextBlockMutex.RLock()
defer fake.createNextBlockMutex.RUnlock()
return len(fake.createNextBlockArgsForCall)
}
func (fake *FakeConsenterSupport) CreateNextBlockCalls(stub func([]*common.Envelope) *common.Block) {
fake.createNextBlockMutex.Lock()
defer fake.createNextBlockMutex.Unlock()
fake.CreateNextBlockStub = stub
}
func (fake *FakeConsenterSupport) CreateNextBlockArgsForCall(i int) []*common.Envelope {
fake.createNextBlockMutex.RLock()
defer fake.createNextBlockMutex.RUnlock()
argsForCall := fake.createNextBlockArgsForCall[i]
return argsForCall.arg1
}
func (fake *FakeConsenterSupport) CreateNextBlockReturns(result1 *common.Block) {
fake.createNextBlockMutex.Lock()
defer fake.createNextBlockMutex.Unlock()
fake.CreateNextBlockStub = nil
fake.createNextBlockReturns = struct {
result1 *common.Block
}{result1}
}
func (fake *FakeConsenterSupport) CreateNextBlockReturnsOnCall(i int, result1 *common.Block) {
fake.createNextBlockMutex.Lock()
defer fake.createNextBlockMutex.Unlock()
fake.CreateNextBlockStub = nil
if fake.createNextBlockReturnsOnCall == nil {
fake.createNextBlockReturnsOnCall = make(map[int]struct {
result1 *common.Block
})
}
fake.createNextBlockReturnsOnCall[i] = struct {
result1 *common.Block
}{result1}
}
func (fake *FakeConsenterSupport) Height() uint64 {
fake.heightMutex.Lock()
ret, specificReturn := fake.heightReturnsOnCall[len(fake.heightArgsForCall)]
fake.heightArgsForCall = append(fake.heightArgsForCall, struct {
}{})
fake.recordInvocation("Height", []interface{}{})
fake.heightMutex.Unlock()
if fake.HeightStub != nil {
return fake.HeightStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.heightReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) HeightCallCount() int {
fake.heightMutex.RLock()
defer fake.heightMutex.RUnlock()
return len(fake.heightArgsForCall)
}
func (fake *FakeConsenterSupport) HeightCalls(stub func() uint64) {
fake.heightMutex.Lock()
defer fake.heightMutex.Unlock()
fake.HeightStub = stub
}
func (fake *FakeConsenterSupport) HeightReturns(result1 uint64) {
fake.heightMutex.Lock()
defer fake.heightMutex.Unlock()
fake.HeightStub = nil
fake.heightReturns = struct {
result1 uint64
}{result1}
}
func (fake *FakeConsenterSupport) HeightReturnsOnCall(i int, result1 uint64) {
fake.heightMutex.Lock()
defer fake.heightMutex.Unlock()
fake.HeightStub = nil
if fake.heightReturnsOnCall == nil {
fake.heightReturnsOnCall = make(map[int]struct {
result1 uint64
})
}
fake.heightReturnsOnCall[i] = struct {
result1 uint64
}{result1}
}
func (fake *FakeConsenterSupport) ProcessConfigMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error) {
fake.processConfigMsgMutex.Lock()
ret, specificReturn := fake.processConfigMsgReturnsOnCall[len(fake.processConfigMsgArgsForCall)]
fake.processConfigMsgArgsForCall = append(fake.processConfigMsgArgsForCall, struct {
arg1 *common.Envelope
}{arg1})
fake.recordInvocation("ProcessConfigMsg", []interface{}{arg1})
fake.processConfigMsgMutex.Unlock()
if fake.ProcessConfigMsgStub != nil {
return fake.ProcessConfigMsgStub(arg1)
}
if specificReturn {
return ret.result1, ret.result2, ret.result3
}
fakeReturns := fake.processConfigMsgReturns
return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
}
func (fake *FakeConsenterSupport) ProcessConfigMsgCallCount() int {
fake.processConfigMsgMutex.RLock()
defer fake.processConfigMsgMutex.RUnlock()
return len(fake.processConfigMsgArgsForCall)
}
func (fake *FakeConsenterSupport) ProcessConfigMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error)) {
fake.processConfigMsgMutex.Lock()
defer fake.processConfigMsgMutex.Unlock()
fake.ProcessConfigMsgStub = stub
}
func (fake *FakeConsenterSupport) ProcessConfigMsgArgsForCall(i int) *common.Envelope {
fake.processConfigMsgMutex.RLock()
defer fake.processConfigMsgMutex.RUnlock()
argsForCall := fake.processConfigMsgArgsForCall[i]
return argsForCall.arg1
}
func (fake *FakeConsenterSupport) ProcessConfigMsgReturns(result1 *common.Envelope, result2 uint64, result3 error) {
fake.processConfigMsgMutex.Lock()
defer fake.processConfigMsgMutex.Unlock()
fake.ProcessConfigMsgStub = nil
fake.processConfigMsgReturns = struct {
result1 *common.Envelope
result2 uint64
result3 error
}{result1, result2, result3}
}
func (fake *FakeConsenterSupport) ProcessConfigMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error) {
fake.processConfigMsgMutex.Lock()
defer fake.processConfigMsgMutex.Unlock()
fake.ProcessConfigMsgStub = nil
if fake.processConfigMsgReturnsOnCall == nil {
fake.processConfigMsgReturnsOnCall = make(map[int]struct {
result1 *common.Envelope
result2 uint64
result3 error
})
}
fake.processConfigMsgReturnsOnCall[i] = struct {
result1 *common.Envelope
result2 uint64
result3 error
}{result1, result2, result3}
}
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsg(arg1 *common.Envelope) (*common.Envelope, uint64, error) {
fake.processConfigUpdateMsgMutex.Lock()
ret, specificReturn := fake.processConfigUpdateMsgReturnsOnCall[len(fake.processConfigUpdateMsgArgsForCall)]
fake.processConfigUpdateMsgArgsForCall = append(fake.processConfigUpdateMsgArgsForCall, struct {
arg1 *common.Envelope
}{arg1})
fake.recordInvocation("ProcessConfigUpdateMsg", []interface{}{arg1})
fake.processConfigUpdateMsgMutex.Unlock()
if fake.ProcessConfigUpdateMsgStub != nil {
return fake.ProcessConfigUpdateMsgStub(arg1)
}
if specificReturn {
return ret.result1, ret.result2, ret.result3
}
fakeReturns := fake.processConfigUpdateMsgReturns
return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
}
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgCallCount() int {
fake.processConfigUpdateMsgMutex.RLock()
defer fake.processConfigUpdateMsgMutex.RUnlock()
return len(fake.processConfigUpdateMsgArgsForCall)
}
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgCalls(stub func(*common.Envelope) (*common.Envelope, uint64, error)) {
fake.processConfigUpdateMsgMutex.Lock()
defer fake.processConfigUpdateMsgMutex.Unlock()
fake.ProcessConfigUpdateMsgStub = stub
}
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgArgsForCall(i int) *common.Envelope {
fake.processConfigUpdateMsgMutex.RLock()
defer fake.processConfigUpdateMsgMutex.RUnlock()
argsForCall := fake.processConfigUpdateMsgArgsForCall[i]
return argsForCall.arg1
}
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgReturns(result1 *common.Envelope, result2 uint64, result3 error) {
fake.processConfigUpdateMsgMutex.Lock()
defer fake.processConfigUpdateMsgMutex.Unlock()
fake.ProcessConfigUpdateMsgStub = nil
fake.processConfigUpdateMsgReturns = struct {
result1 *common.Envelope
result2 uint64
result3 error
}{result1, result2, result3}
}
func (fake *FakeConsenterSupport) ProcessConfigUpdateMsgReturnsOnCall(i int, result1 *common.Envelope, result2 uint64, result3 error) {
fake.processConfigUpdateMsgMutex.Lock()
defer fake.processConfigUpdateMsgMutex.Unlock()
fake.ProcessConfigUpdateMsgStub = nil
if fake.processConfigUpdateMsgReturnsOnCall == nil {
fake.processConfigUpdateMsgReturnsOnCall = make(map[int]struct {
result1 *common.Envelope
result2 uint64
result3 error
})
}
fake.processConfigUpdateMsgReturnsOnCall[i] = struct {
result1 *common.Envelope
result2 uint64
result3 error
}{result1, result2, result3}
}
func (fake *FakeConsenterSupport) ProcessNormalMsg(arg1 *common.Envelope) (uint64, error) {
fake.processNormalMsgMutex.Lock()
ret, specificReturn := fake.processNormalMsgReturnsOnCall[len(fake.processNormalMsgArgsForCall)]
fake.processNormalMsgArgsForCall = append(fake.processNormalMsgArgsForCall, struct {
arg1 *common.Envelope
}{arg1})
fake.recordInvocation("ProcessNormalMsg", []interface{}{arg1})
fake.processNormalMsgMutex.Unlock()
if fake.ProcessNormalMsgStub != nil {
return fake.ProcessNormalMsgStub(arg1)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.processNormalMsgReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *FakeConsenterSupport) ProcessNormalMsgCallCount() int {
fake.processNormalMsgMutex.RLock()
defer fake.processNormalMsgMutex.RUnlock()
return len(fake.processNormalMsgArgsForCall)
}
func (fake *FakeConsenterSupport) ProcessNormalMsgCalls(stub func(*common.Envelope) (uint64, error)) {
fake.processNormalMsgMutex.Lock()
defer fake.processNormalMsgMutex.Unlock()
fake.ProcessNormalMsgStub = stub
}
func (fake *FakeConsenterSupport) ProcessNormalMsgArgsForCall(i int) *common.Envelope {
fake.processNormalMsgMutex.RLock()
defer fake.processNormalMsgMutex.RUnlock()
argsForCall := fake.processNormalMsgArgsForCall[i]
return argsForCall.arg1
}
func (fake *FakeConsenterSupport) ProcessNormalMsgReturns(result1 uint64, result2 error) {
fake.processNormalMsgMutex.Lock()
defer fake.processNormalMsgMutex.Unlock()
fake.ProcessNormalMsgStub = nil
fake.processNormalMsgReturns = struct {
result1 uint64
result2 error
}{result1, result2}
}
func (fake *FakeConsenterSupport) ProcessNormalMsgReturnsOnCall(i int, result1 uint64, result2 error) {
fake.processNormalMsgMutex.Lock()
defer fake.processNormalMsgMutex.Unlock()
fake.ProcessNormalMsgStub = nil
if fake.processNormalMsgReturnsOnCall == nil {
fake.processNormalMsgReturnsOnCall = make(map[int]struct {
result1 uint64
result2 error
})
}
fake.processNormalMsgReturnsOnCall[i] = struct {
result1 uint64
result2 error
}{result1, result2}
}
func (fake *FakeConsenterSupport) Sequence() uint64 {
fake.sequenceMutex.Lock()
ret, specificReturn := fake.sequenceReturnsOnCall[len(fake.sequenceArgsForCall)]
fake.sequenceArgsForCall = append(fake.sequenceArgsForCall, struct {
}{})
fake.recordInvocation("Sequence", []interface{}{})
fake.sequenceMutex.Unlock()
if fake.SequenceStub != nil {
return fake.SequenceStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.sequenceReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) SequenceCallCount() int {
fake.sequenceMutex.RLock()
defer fake.sequenceMutex.RUnlock()
return len(fake.sequenceArgsForCall)
}
func (fake *FakeConsenterSupport) SequenceCalls(stub func() uint64) {
fake.sequenceMutex.Lock()
defer fake.sequenceMutex.Unlock()
fake.SequenceStub = stub
}
func (fake *FakeConsenterSupport) SequenceReturns(result1 uint64) {
fake.sequenceMutex.Lock()
defer fake.sequenceMutex.Unlock()
fake.SequenceStub = nil
fake.sequenceReturns = struct {
result1 uint64
}{result1}
}
func (fake *FakeConsenterSupport) SequenceReturnsOnCall(i int, result1 uint64) {
fake.sequenceMutex.Lock()
defer fake.sequenceMutex.Unlock()
fake.SequenceStub = nil
if fake.sequenceReturnsOnCall == nil {
fake.sequenceReturnsOnCall = make(map[int]struct {
result1 uint64
})
}
fake.sequenceReturnsOnCall[i] = struct {
result1 uint64
}{result1}
}
func (fake *FakeConsenterSupport) Serialize() ([]byte, error) {
fake.serializeMutex.Lock()
ret, specificReturn := fake.serializeReturnsOnCall[len(fake.serializeArgsForCall)]
fake.serializeArgsForCall = append(fake.serializeArgsForCall, struct {
}{})
fake.recordInvocation("Serialize", []interface{}{})
fake.serializeMutex.Unlock()
if fake.SerializeStub != nil {
return fake.SerializeStub()
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.serializeReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *FakeConsenterSupport) SerializeCallCount() int {
fake.serializeMutex.RLock()
defer fake.serializeMutex.RUnlock()
return len(fake.serializeArgsForCall)
}
func (fake *FakeConsenterSupport) SerializeCalls(stub func() ([]byte, error)) {
fake.serializeMutex.Lock()
defer fake.serializeMutex.Unlock()
fake.SerializeStub = stub
}
func (fake *FakeConsenterSupport) SerializeReturns(result1 []byte, result2 error) {
fake.serializeMutex.Lock()
defer fake.serializeMutex.Unlock()
fake.SerializeStub = nil
fake.serializeReturns = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *FakeConsenterSupport) SerializeReturnsOnCall(i int, result1 []byte, result2 error) {
fake.serializeMutex.Lock()
defer fake.serializeMutex.Unlock()
fake.SerializeStub = nil
if fake.serializeReturnsOnCall == nil {
fake.serializeReturnsOnCall = make(map[int]struct {
result1 []byte
result2 error
})
}
fake.serializeReturnsOnCall[i] = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *FakeConsenterSupport) SharedConfig() channelconfig.Orderer {
fake.sharedConfigMutex.Lock()
ret, specificReturn := fake.sharedConfigReturnsOnCall[len(fake.sharedConfigArgsForCall)]
fake.sharedConfigArgsForCall = append(fake.sharedConfigArgsForCall, struct {
}{})
fake.recordInvocation("SharedConfig", []interface{}{})
fake.sharedConfigMutex.Unlock()
if fake.SharedConfigStub != nil {
return fake.SharedConfigStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.sharedConfigReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) SharedConfigCallCount() int {
fake.sharedConfigMutex.RLock()
defer fake.sharedConfigMutex.RUnlock()
return len(fake.sharedConfigArgsForCall)
}
func (fake *FakeConsenterSupport) SharedConfigCalls(stub func() channelconfig.Orderer) {
fake.sharedConfigMutex.Lock()
defer fake.sharedConfigMutex.Unlock()
fake.SharedConfigStub = stub
}
func (fake *FakeConsenterSupport) SharedConfigReturns(result1 channelconfig.Orderer) {
fake.sharedConfigMutex.Lock()
defer fake.sharedConfigMutex.Unlock()
fake.SharedConfigStub = nil
fake.sharedConfigReturns = struct {
result1 channelconfig.Orderer
}{result1}
}
func (fake *FakeConsenterSupport) SharedConfigReturnsOnCall(i int, result1 channelconfig.Orderer) {
fake.sharedConfigMutex.Lock()
defer fake.sharedConfigMutex.Unlock()
fake.SharedConfigStub = nil
if fake.sharedConfigReturnsOnCall == nil {
fake.sharedConfigReturnsOnCall = make(map[int]struct {
result1 channelconfig.Orderer
})
}
fake.sharedConfigReturnsOnCall[i] = struct {
result1 channelconfig.Orderer
}{result1}
}
func (fake *FakeConsenterSupport) Sign(arg1 []byte) ([]byte, error) {
var arg1Copy []byte
if arg1 != nil {
arg1Copy = make([]byte, len(arg1))
copy(arg1Copy, arg1)
}
fake.signMutex.Lock()
ret, specificReturn := fake.signReturnsOnCall[len(fake.signArgsForCall)]
fake.signArgsForCall = append(fake.signArgsForCall, struct {
arg1 []byte
}{arg1Copy})
fake.recordInvocation("Sign", []interface{}{arg1Copy})
fake.signMutex.Unlock()
if fake.SignStub != nil {
return fake.SignStub(arg1)
}
if specificReturn {
return ret.result1, ret.result2
}
fakeReturns := fake.signReturns
return fakeReturns.result1, fakeReturns.result2
}
func (fake *FakeConsenterSupport) SignCallCount() int {
fake.signMutex.RLock()
defer fake.signMutex.RUnlock()
return len(fake.signArgsForCall)
}
func (fake *FakeConsenterSupport) SignCalls(stub func([]byte) ([]byte, error)) {
fake.signMutex.Lock()
defer fake.signMutex.Unlock()
fake.SignStub = stub
}
func (fake *FakeConsenterSupport) SignArgsForCall(i int) []byte {
fake.signMutex.RLock()
defer fake.signMutex.RUnlock()
argsForCall := fake.signArgsForCall[i]
return argsForCall.arg1
}
func (fake *FakeConsenterSupport) SignReturns(result1 []byte, result2 error) {
fake.signMutex.Lock()
defer fake.signMutex.Unlock()
fake.SignStub = nil
fake.signReturns = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *FakeConsenterSupport) SignReturnsOnCall(i int, result1 []byte, result2 error) {
fake.signMutex.Lock()
defer fake.signMutex.Unlock()
fake.SignStub = nil
if fake.signReturnsOnCall == nil {
fake.signReturnsOnCall = make(map[int]struct {
result1 []byte
result2 error
})
}
fake.signReturnsOnCall[i] = struct {
result1 []byte
result2 error
}{result1, result2}
}
func (fake *FakeConsenterSupport) VerifyBlockSignature(arg1 []*protoutil.SignedData, arg2 *common.ConfigEnvelope) error {
var arg1Copy []*protoutil.SignedData
if arg1 != nil {
arg1Copy = make([]*protoutil.SignedData, len(arg1))
copy(arg1Copy, arg1)
}
fake.verifyBlockSignatureMutex.Lock()
ret, specificReturn := fake.verifyBlockSignatureReturnsOnCall[len(fake.verifyBlockSignatureArgsForCall)]
fake.verifyBlockSignatureArgsForCall = append(fake.verifyBlockSignatureArgsForCall, struct {
arg1 []*protoutil.SignedData
arg2 *common.ConfigEnvelope
}{arg1Copy, arg2})
fake.recordInvocation("VerifyBlockSignature", []interface{}{arg1Copy, arg2})
fake.verifyBlockSignatureMutex.Unlock()
if fake.VerifyBlockSignatureStub != nil {
return fake.VerifyBlockSignatureStub(arg1, arg2)
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.verifyBlockSignatureReturns
return fakeReturns.result1
}
func (fake *FakeConsenterSupport) VerifyBlockSignatureCallCount() int {
fake.verifyBlockSignatureMutex.RLock()
defer fake.verifyBlockSignatureMutex.RUnlock()
return len(fake.verifyBlockSignatureArgsForCall)
}
func (fake *FakeConsenterSupport) VerifyBlockSignatureCalls(stub func([]*protoutil.SignedData, *common.ConfigEnvelope) error) {
fake.verifyBlockSignatureMutex.Lock()
defer fake.verifyBlockSignatureMutex.Unlock()
fake.VerifyBlockSignatureStub = stub
}
func (fake *FakeConsenterSupport) VerifyBlockSignatureArgsForCall(i int) ([]*protoutil.SignedData, *common.ConfigEnvelope) {
fake.verifyBlockSignatureMutex.RLock()
defer fake.verifyBlockSignatureMutex.RUnlock()
argsForCall := fake.verifyBlockSignatureArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *FakeConsenterSupport) VerifyBlockSignatureReturns(result1 error) {
fake.verifyBlockSignatureMutex.Lock()
defer fake.verifyBlockSignatureMutex.Unlock()
fake.VerifyBlockSignatureStub = nil
fake.verifyBlockSignatureReturns = struct {
result1 error
}{result1}
}
func (fake *FakeConsenterSupport) VerifyBlockSignatureReturnsOnCall(i int, result1 error) {
fake.verifyBlockSignatureMutex.Lock()
defer fake.verifyBlockSignatureMutex.Unlock()
fake.VerifyBlockSignatureStub = nil
if fake.verifyBlockSignatureReturnsOnCall == nil {
fake.verifyBlockSignatureReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.verifyBlockSignatureReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *FakeConsenterSupport) WriteBlock(arg1 *common.Block, arg2 []byte) {
var arg2Copy []byte
if arg2 != nil {
arg2Copy = make([]byte, len(arg2))
copy(arg2Copy, arg2)
}
fake.writeBlockMutex.Lock()
fake.writeBlockArgsForCall = append(fake.writeBlockArgsForCall, struct {
arg1 *common.Block
arg2 []byte
}{arg1, arg2Copy})
fake.recordInvocation("WriteBlock", []interface{}{arg1, arg2Copy})
fake.writeBlockMutex.Unlock()
if fake.WriteBlockStub != nil {
fake.WriteBlockStub(arg1, arg2)
}
}
func (fake *FakeConsenterSupport) WriteBlockCallCount() int {
fake.writeBlockMutex.RLock()
defer fake.writeBlockMutex.RUnlock()
return len(fake.writeBlockArgsForCall)
}
func (fake *FakeConsenterSupport) WriteBlockCalls(stub func(*common.Block, []byte)) {
fake.writeBlockMutex.Lock()
defer fake.writeBlockMutex.Unlock()
fake.WriteBlockStub = stub
}
func (fake *FakeConsenterSupport) WriteBlockArgsForCall(i int) (*common.Block, []byte) {
fake.writeBlockMutex.RLock()
defer fake.writeBlockMutex.RUnlock()
argsForCall := fake.writeBlockArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *FakeConsenterSupport) WriteConfigBlock(arg1 *common.Block, arg2 []byte) {
var arg2Copy []byte
if arg2 != nil {
arg2Copy = make([]byte, len(arg2))
copy(arg2Copy, arg2)
}
fake.writeConfigBlockMutex.Lock()
fake.writeConfigBlockArgsForCall = append(fake.writeConfigBlockArgsForCall, struct {
arg1 *common.Block
arg2 []byte
}{arg1, arg2Copy})
fake.recordInvocation("WriteConfigBlock", []interface{}{arg1, arg2Copy})
fake.writeConfigBlockMutex.Unlock()
if fake.WriteConfigBlockStub != nil {
fake.WriteConfigBlockStub(arg1, arg2)
}
}
func (fake *FakeConsenterSupport) WriteConfigBlockCallCount() int {
fake.writeConfigBlockMutex.RLock()
defer fake.writeConfigBlockMutex.RUnlock()
return len(fake.writeConfigBlockArgsForCall)
}
func (fake *FakeConsenterSupport) WriteConfigBlockCalls(stub func(*common.Block, []byte)) {
fake.writeConfigBlockMutex.Lock()
defer fake.writeConfigBlockMutex.Unlock()
fake.WriteConfigBlockStub = stub
}
func (fake *FakeConsenterSupport) WriteConfigBlockArgsForCall(i int) (*common.Block, []byte) {
fake.writeConfigBlockMutex.RLock()
defer fake.writeConfigBlockMutex.RUnlock()
argsForCall := fake.writeConfigBlockArgsForCall[i]
return argsForCall.arg1, argsForCall.arg2
}
func (fake *FakeConsenterSupport) Invocations() map[string][][]interface{} {
fake.invocationsMutex.RLock()
defer fake.invocationsMutex.RUnlock()
fake.appendMutex.RLock()
defer fake.appendMutex.RUnlock()
fake.blockMutex.RLock()
defer fake.blockMutex.RUnlock()
fake.blockCutterMutex.RLock()
defer fake.blockCutterMutex.RUnlock()
fake.channelConfigMutex.RLock()
defer fake.channelConfigMutex.RUnlock()
fake.channelIDMutex.RLock()
defer fake.channelIDMutex.RUnlock()
fake.classifyMsgMutex.RLock()
defer fake.classifyMsgMutex.RUnlock()
fake.createNextBlockMutex.RLock()
defer fake.createNextBlockMutex.RUnlock()
fake.heightMutex.RLock()
defer fake.heightMutex.RUnlock()
fake.processConfigMsgMutex.RLock()
defer fake.processConfigMsgMutex.RUnlock()
fake.processConfigUpdateMsgMutex.RLock()
defer fake.processConfigUpdateMsgMutex.RUnlock()
fake.processNormalMsgMutex.RLock()
defer fake.processNormalMsgMutex.RUnlock()
fake.sequenceMutex.RLock()
defer fake.sequenceMutex.RUnlock()
fake.serializeMutex.RLock()
defer fake.serializeMutex.RUnlock()
fake.sharedConfigMutex.RLock()
defer fake.sharedConfigMutex.RUnlock()
fake.signMutex.RLock()
defer fake.signMutex.RUnlock()
fake.verifyBlockSignatureMutex.RLock()
defer fake.verifyBlockSignatureMutex.RUnlock()
fake.writeBlockMutex.RLock()
defer fake.writeBlockMutex.RUnlock()
fake.writeConfigBlockMutex.RLock()
defer fake.writeConfigBlockMutex.RUnlock()
copiedInvocations := map[string][][]interface{}{}
for key, value := range fake.invocations {
copiedInvocations[key] = value
}
return copiedInvocations
}
func (fake *FakeConsenterSupport) 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)
}
var _ consensus.ConsenterSupport = new(FakeConsenterSupport)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/zhaochuninhefei/fabric-gm.git
git@gitee.com:zhaochuninhefei/fabric-gm.git
zhaochuninhefei
fabric-gm
fabric-gm
v0.0.1

搜索帮助