代码拉取完成,页面将自动刷新
// Code generated by counterfeiter. DO NOT EDIT.
package mocks
import (
"sync"
)
type Capabilities struct {
ACLsStub func() bool
aCLsMutex sync.RWMutex
aCLsArgsForCall []struct {
}
aCLsReturns struct {
result1 bool
}
aCLsReturnsOnCall map[int]struct {
result1 bool
}
CollectionUpgradeStub func() bool
collectionUpgradeMutex sync.RWMutex
collectionUpgradeArgsForCall []struct {
}
collectionUpgradeReturns struct {
result1 bool
}
collectionUpgradeReturnsOnCall map[int]struct {
result1 bool
}
ForbidDuplicateTXIdInBlockStub func() bool
forbidDuplicateTXIdInBlockMutex sync.RWMutex
forbidDuplicateTXIdInBlockArgsForCall []struct {
}
forbidDuplicateTXIdInBlockReturns struct {
result1 bool
}
forbidDuplicateTXIdInBlockReturnsOnCall map[int]struct {
result1 bool
}
KeyLevelEndorsementStub func() bool
keyLevelEndorsementMutex sync.RWMutex
keyLevelEndorsementArgsForCall []struct {
}
keyLevelEndorsementReturns struct {
result1 bool
}
keyLevelEndorsementReturnsOnCall map[int]struct {
result1 bool
}
MetadataLifecycleStub func() bool
metadataLifecycleMutex sync.RWMutex
metadataLifecycleArgsForCall []struct {
}
metadataLifecycleReturns struct {
result1 bool
}
metadataLifecycleReturnsOnCall map[int]struct {
result1 bool
}
PrivateChannelDataStub func() bool
privateChannelDataMutex sync.RWMutex
privateChannelDataArgsForCall []struct {
}
privateChannelDataReturns struct {
result1 bool
}
privateChannelDataReturnsOnCall map[int]struct {
result1 bool
}
StorePvtDataOfInvalidTxStub func() bool
storePvtDataOfInvalidTxMutex sync.RWMutex
storePvtDataOfInvalidTxArgsForCall []struct {
}
storePvtDataOfInvalidTxReturns struct {
result1 bool
}
storePvtDataOfInvalidTxReturnsOnCall map[int]struct {
result1 bool
}
SupportedStub func() error
supportedMutex sync.RWMutex
supportedArgsForCall []struct {
}
supportedReturns struct {
result1 error
}
supportedReturnsOnCall map[int]struct {
result1 error
}
V1_1ValidationStub func() bool
v1_1ValidationMutex sync.RWMutex
v1_1ValidationArgsForCall []struct {
}
v1_1ValidationReturns struct {
result1 bool
}
v1_1ValidationReturnsOnCall map[int]struct {
result1 bool
}
V1_2ValidationStub func() bool
v1_2ValidationMutex sync.RWMutex
v1_2ValidationArgsForCall []struct {
}
v1_2ValidationReturns struct {
result1 bool
}
v1_2ValidationReturnsOnCall map[int]struct {
result1 bool
}
V1_3ValidationStub func() bool
v1_3ValidationMutex sync.RWMutex
v1_3ValidationArgsForCall []struct {
}
v1_3ValidationReturns struct {
result1 bool
}
v1_3ValidationReturnsOnCall map[int]struct {
result1 bool
}
V2_0ValidationStub func() bool
v2_0ValidationMutex sync.RWMutex
v2_0ValidationArgsForCall []struct {
}
v2_0ValidationReturns struct {
result1 bool
}
v2_0ValidationReturnsOnCall map[int]struct {
result1 bool
}
invocations map[string][][]interface{}
invocationsMutex sync.RWMutex
}
func (fake *Capabilities) ACLs() bool {
fake.aCLsMutex.Lock()
ret, specificReturn := fake.aCLsReturnsOnCall[len(fake.aCLsArgsForCall)]
fake.aCLsArgsForCall = append(fake.aCLsArgsForCall, struct {
}{})
fake.recordInvocation("ACLs", []interface{}{})
fake.aCLsMutex.Unlock()
if fake.ACLsStub != nil {
return fake.ACLsStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.aCLsReturns
return fakeReturns.result1
}
func (fake *Capabilities) ACLsCallCount() int {
fake.aCLsMutex.RLock()
defer fake.aCLsMutex.RUnlock()
return len(fake.aCLsArgsForCall)
}
func (fake *Capabilities) ACLsCalls(stub func() bool) {
fake.aCLsMutex.Lock()
defer fake.aCLsMutex.Unlock()
fake.ACLsStub = stub
}
func (fake *Capabilities) ACLsReturns(result1 bool) {
fake.aCLsMutex.Lock()
defer fake.aCLsMutex.Unlock()
fake.ACLsStub = nil
fake.aCLsReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) ACLsReturnsOnCall(i int, result1 bool) {
fake.aCLsMutex.Lock()
defer fake.aCLsMutex.Unlock()
fake.ACLsStub = nil
if fake.aCLsReturnsOnCall == nil {
fake.aCLsReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.aCLsReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) CollectionUpgrade() bool {
fake.collectionUpgradeMutex.Lock()
ret, specificReturn := fake.collectionUpgradeReturnsOnCall[len(fake.collectionUpgradeArgsForCall)]
fake.collectionUpgradeArgsForCall = append(fake.collectionUpgradeArgsForCall, struct {
}{})
fake.recordInvocation("CollectionUpgrade", []interface{}{})
fake.collectionUpgradeMutex.Unlock()
if fake.CollectionUpgradeStub != nil {
return fake.CollectionUpgradeStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.collectionUpgradeReturns
return fakeReturns.result1
}
func (fake *Capabilities) CollectionUpgradeCallCount() int {
fake.collectionUpgradeMutex.RLock()
defer fake.collectionUpgradeMutex.RUnlock()
return len(fake.collectionUpgradeArgsForCall)
}
func (fake *Capabilities) CollectionUpgradeCalls(stub func() bool) {
fake.collectionUpgradeMutex.Lock()
defer fake.collectionUpgradeMutex.Unlock()
fake.CollectionUpgradeStub = stub
}
func (fake *Capabilities) CollectionUpgradeReturns(result1 bool) {
fake.collectionUpgradeMutex.Lock()
defer fake.collectionUpgradeMutex.Unlock()
fake.CollectionUpgradeStub = nil
fake.collectionUpgradeReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) CollectionUpgradeReturnsOnCall(i int, result1 bool) {
fake.collectionUpgradeMutex.Lock()
defer fake.collectionUpgradeMutex.Unlock()
fake.CollectionUpgradeStub = nil
if fake.collectionUpgradeReturnsOnCall == nil {
fake.collectionUpgradeReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.collectionUpgradeReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) ForbidDuplicateTXIdInBlock() bool {
fake.forbidDuplicateTXIdInBlockMutex.Lock()
ret, specificReturn := fake.forbidDuplicateTXIdInBlockReturnsOnCall[len(fake.forbidDuplicateTXIdInBlockArgsForCall)]
fake.forbidDuplicateTXIdInBlockArgsForCall = append(fake.forbidDuplicateTXIdInBlockArgsForCall, struct {
}{})
fake.recordInvocation("ForbidDuplicateTXIdInBlock", []interface{}{})
fake.forbidDuplicateTXIdInBlockMutex.Unlock()
if fake.ForbidDuplicateTXIdInBlockStub != nil {
return fake.ForbidDuplicateTXIdInBlockStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.forbidDuplicateTXIdInBlockReturns
return fakeReturns.result1
}
func (fake *Capabilities) ForbidDuplicateTXIdInBlockCallCount() int {
fake.forbidDuplicateTXIdInBlockMutex.RLock()
defer fake.forbidDuplicateTXIdInBlockMutex.RUnlock()
return len(fake.forbidDuplicateTXIdInBlockArgsForCall)
}
func (fake *Capabilities) ForbidDuplicateTXIdInBlockCalls(stub func() bool) {
fake.forbidDuplicateTXIdInBlockMutex.Lock()
defer fake.forbidDuplicateTXIdInBlockMutex.Unlock()
fake.ForbidDuplicateTXIdInBlockStub = stub
}
func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturns(result1 bool) {
fake.forbidDuplicateTXIdInBlockMutex.Lock()
defer fake.forbidDuplicateTXIdInBlockMutex.Unlock()
fake.ForbidDuplicateTXIdInBlockStub = nil
fake.forbidDuplicateTXIdInBlockReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturnsOnCall(i int, result1 bool) {
fake.forbidDuplicateTXIdInBlockMutex.Lock()
defer fake.forbidDuplicateTXIdInBlockMutex.Unlock()
fake.ForbidDuplicateTXIdInBlockStub = nil
if fake.forbidDuplicateTXIdInBlockReturnsOnCall == nil {
fake.forbidDuplicateTXIdInBlockReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.forbidDuplicateTXIdInBlockReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) KeyLevelEndorsement() bool {
fake.keyLevelEndorsementMutex.Lock()
ret, specificReturn := fake.keyLevelEndorsementReturnsOnCall[len(fake.keyLevelEndorsementArgsForCall)]
fake.keyLevelEndorsementArgsForCall = append(fake.keyLevelEndorsementArgsForCall, struct {
}{})
fake.recordInvocation("KeyLevelEndorsement", []interface{}{})
fake.keyLevelEndorsementMutex.Unlock()
if fake.KeyLevelEndorsementStub != nil {
return fake.KeyLevelEndorsementStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.keyLevelEndorsementReturns
return fakeReturns.result1
}
func (fake *Capabilities) KeyLevelEndorsementCallCount() int {
fake.keyLevelEndorsementMutex.RLock()
defer fake.keyLevelEndorsementMutex.RUnlock()
return len(fake.keyLevelEndorsementArgsForCall)
}
func (fake *Capabilities) KeyLevelEndorsementCalls(stub func() bool) {
fake.keyLevelEndorsementMutex.Lock()
defer fake.keyLevelEndorsementMutex.Unlock()
fake.KeyLevelEndorsementStub = stub
}
func (fake *Capabilities) KeyLevelEndorsementReturns(result1 bool) {
fake.keyLevelEndorsementMutex.Lock()
defer fake.keyLevelEndorsementMutex.Unlock()
fake.KeyLevelEndorsementStub = nil
fake.keyLevelEndorsementReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) KeyLevelEndorsementReturnsOnCall(i int, result1 bool) {
fake.keyLevelEndorsementMutex.Lock()
defer fake.keyLevelEndorsementMutex.Unlock()
fake.KeyLevelEndorsementStub = nil
if fake.keyLevelEndorsementReturnsOnCall == nil {
fake.keyLevelEndorsementReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.keyLevelEndorsementReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) MetadataLifecycle() bool {
fake.metadataLifecycleMutex.Lock()
ret, specificReturn := fake.metadataLifecycleReturnsOnCall[len(fake.metadataLifecycleArgsForCall)]
fake.metadataLifecycleArgsForCall = append(fake.metadataLifecycleArgsForCall, struct {
}{})
fake.recordInvocation("MetadataLifecycle", []interface{}{})
fake.metadataLifecycleMutex.Unlock()
if fake.MetadataLifecycleStub != nil {
return fake.MetadataLifecycleStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.metadataLifecycleReturns
return fakeReturns.result1
}
func (fake *Capabilities) MetadataLifecycleCallCount() int {
fake.metadataLifecycleMutex.RLock()
defer fake.metadataLifecycleMutex.RUnlock()
return len(fake.metadataLifecycleArgsForCall)
}
func (fake *Capabilities) MetadataLifecycleCalls(stub func() bool) {
fake.metadataLifecycleMutex.Lock()
defer fake.metadataLifecycleMutex.Unlock()
fake.MetadataLifecycleStub = stub
}
func (fake *Capabilities) MetadataLifecycleReturns(result1 bool) {
fake.metadataLifecycleMutex.Lock()
defer fake.metadataLifecycleMutex.Unlock()
fake.MetadataLifecycleStub = nil
fake.metadataLifecycleReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) MetadataLifecycleReturnsOnCall(i int, result1 bool) {
fake.metadataLifecycleMutex.Lock()
defer fake.metadataLifecycleMutex.Unlock()
fake.MetadataLifecycleStub = nil
if fake.metadataLifecycleReturnsOnCall == nil {
fake.metadataLifecycleReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.metadataLifecycleReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) PrivateChannelData() bool {
fake.privateChannelDataMutex.Lock()
ret, specificReturn := fake.privateChannelDataReturnsOnCall[len(fake.privateChannelDataArgsForCall)]
fake.privateChannelDataArgsForCall = append(fake.privateChannelDataArgsForCall, struct {
}{})
fake.recordInvocation("PrivateChannelData", []interface{}{})
fake.privateChannelDataMutex.Unlock()
if fake.PrivateChannelDataStub != nil {
return fake.PrivateChannelDataStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.privateChannelDataReturns
return fakeReturns.result1
}
func (fake *Capabilities) PrivateChannelDataCallCount() int {
fake.privateChannelDataMutex.RLock()
defer fake.privateChannelDataMutex.RUnlock()
return len(fake.privateChannelDataArgsForCall)
}
func (fake *Capabilities) PrivateChannelDataCalls(stub func() bool) {
fake.privateChannelDataMutex.Lock()
defer fake.privateChannelDataMutex.Unlock()
fake.PrivateChannelDataStub = stub
}
func (fake *Capabilities) PrivateChannelDataReturns(result1 bool) {
fake.privateChannelDataMutex.Lock()
defer fake.privateChannelDataMutex.Unlock()
fake.PrivateChannelDataStub = nil
fake.privateChannelDataReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) PrivateChannelDataReturnsOnCall(i int, result1 bool) {
fake.privateChannelDataMutex.Lock()
defer fake.privateChannelDataMutex.Unlock()
fake.PrivateChannelDataStub = nil
if fake.privateChannelDataReturnsOnCall == nil {
fake.privateChannelDataReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.privateChannelDataReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) StorePvtDataOfInvalidTx() bool {
fake.storePvtDataOfInvalidTxMutex.Lock()
ret, specificReturn := fake.storePvtDataOfInvalidTxReturnsOnCall[len(fake.storePvtDataOfInvalidTxArgsForCall)]
fake.storePvtDataOfInvalidTxArgsForCall = append(fake.storePvtDataOfInvalidTxArgsForCall, struct {
}{})
fake.recordInvocation("StorePvtDataOfInvalidTx", []interface{}{})
fake.storePvtDataOfInvalidTxMutex.Unlock()
if fake.StorePvtDataOfInvalidTxStub != nil {
return fake.StorePvtDataOfInvalidTxStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.storePvtDataOfInvalidTxReturns
return fakeReturns.result1
}
func (fake *Capabilities) StorePvtDataOfInvalidTxCallCount() int {
fake.storePvtDataOfInvalidTxMutex.RLock()
defer fake.storePvtDataOfInvalidTxMutex.RUnlock()
return len(fake.storePvtDataOfInvalidTxArgsForCall)
}
func (fake *Capabilities) StorePvtDataOfInvalidTxCalls(stub func() bool) {
fake.storePvtDataOfInvalidTxMutex.Lock()
defer fake.storePvtDataOfInvalidTxMutex.Unlock()
fake.StorePvtDataOfInvalidTxStub = stub
}
func (fake *Capabilities) StorePvtDataOfInvalidTxReturns(result1 bool) {
fake.storePvtDataOfInvalidTxMutex.Lock()
defer fake.storePvtDataOfInvalidTxMutex.Unlock()
fake.StorePvtDataOfInvalidTxStub = nil
fake.storePvtDataOfInvalidTxReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) StorePvtDataOfInvalidTxReturnsOnCall(i int, result1 bool) {
fake.storePvtDataOfInvalidTxMutex.Lock()
defer fake.storePvtDataOfInvalidTxMutex.Unlock()
fake.StorePvtDataOfInvalidTxStub = nil
if fake.storePvtDataOfInvalidTxReturnsOnCall == nil {
fake.storePvtDataOfInvalidTxReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.storePvtDataOfInvalidTxReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) Supported() error {
fake.supportedMutex.Lock()
ret, specificReturn := fake.supportedReturnsOnCall[len(fake.supportedArgsForCall)]
fake.supportedArgsForCall = append(fake.supportedArgsForCall, struct {
}{})
fake.recordInvocation("Supported", []interface{}{})
fake.supportedMutex.Unlock()
if fake.SupportedStub != nil {
return fake.SupportedStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.supportedReturns
return fakeReturns.result1
}
func (fake *Capabilities) SupportedCallCount() int {
fake.supportedMutex.RLock()
defer fake.supportedMutex.RUnlock()
return len(fake.supportedArgsForCall)
}
func (fake *Capabilities) SupportedCalls(stub func() error) {
fake.supportedMutex.Lock()
defer fake.supportedMutex.Unlock()
fake.SupportedStub = stub
}
func (fake *Capabilities) SupportedReturns(result1 error) {
fake.supportedMutex.Lock()
defer fake.supportedMutex.Unlock()
fake.SupportedStub = nil
fake.supportedReturns = struct {
result1 error
}{result1}
}
func (fake *Capabilities) SupportedReturnsOnCall(i int, result1 error) {
fake.supportedMutex.Lock()
defer fake.supportedMutex.Unlock()
fake.SupportedStub = nil
if fake.supportedReturnsOnCall == nil {
fake.supportedReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.supportedReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *Capabilities) V1_1Validation() bool {
fake.v1_1ValidationMutex.Lock()
ret, specificReturn := fake.v1_1ValidationReturnsOnCall[len(fake.v1_1ValidationArgsForCall)]
fake.v1_1ValidationArgsForCall = append(fake.v1_1ValidationArgsForCall, struct {
}{})
fake.recordInvocation("V1_1Validation", []interface{}{})
fake.v1_1ValidationMutex.Unlock()
if fake.V1_1ValidationStub != nil {
return fake.V1_1ValidationStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.v1_1ValidationReturns
return fakeReturns.result1
}
func (fake *Capabilities) V1_1ValidationCallCount() int {
fake.v1_1ValidationMutex.RLock()
defer fake.v1_1ValidationMutex.RUnlock()
return len(fake.v1_1ValidationArgsForCall)
}
func (fake *Capabilities) V1_1ValidationCalls(stub func() bool) {
fake.v1_1ValidationMutex.Lock()
defer fake.v1_1ValidationMutex.Unlock()
fake.V1_1ValidationStub = stub
}
func (fake *Capabilities) V1_1ValidationReturns(result1 bool) {
fake.v1_1ValidationMutex.Lock()
defer fake.v1_1ValidationMutex.Unlock()
fake.V1_1ValidationStub = nil
fake.v1_1ValidationReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V1_1ValidationReturnsOnCall(i int, result1 bool) {
fake.v1_1ValidationMutex.Lock()
defer fake.v1_1ValidationMutex.Unlock()
fake.V1_1ValidationStub = nil
if fake.v1_1ValidationReturnsOnCall == nil {
fake.v1_1ValidationReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.v1_1ValidationReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V1_2Validation() bool {
fake.v1_2ValidationMutex.Lock()
ret, specificReturn := fake.v1_2ValidationReturnsOnCall[len(fake.v1_2ValidationArgsForCall)]
fake.v1_2ValidationArgsForCall = append(fake.v1_2ValidationArgsForCall, struct {
}{})
fake.recordInvocation("V1_2Validation", []interface{}{})
fake.v1_2ValidationMutex.Unlock()
if fake.V1_2ValidationStub != nil {
return fake.V1_2ValidationStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.v1_2ValidationReturns
return fakeReturns.result1
}
func (fake *Capabilities) V1_2ValidationCallCount() int {
fake.v1_2ValidationMutex.RLock()
defer fake.v1_2ValidationMutex.RUnlock()
return len(fake.v1_2ValidationArgsForCall)
}
func (fake *Capabilities) V1_2ValidationCalls(stub func() bool) {
fake.v1_2ValidationMutex.Lock()
defer fake.v1_2ValidationMutex.Unlock()
fake.V1_2ValidationStub = stub
}
func (fake *Capabilities) V1_2ValidationReturns(result1 bool) {
fake.v1_2ValidationMutex.Lock()
defer fake.v1_2ValidationMutex.Unlock()
fake.V1_2ValidationStub = nil
fake.v1_2ValidationReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V1_2ValidationReturnsOnCall(i int, result1 bool) {
fake.v1_2ValidationMutex.Lock()
defer fake.v1_2ValidationMutex.Unlock()
fake.V1_2ValidationStub = nil
if fake.v1_2ValidationReturnsOnCall == nil {
fake.v1_2ValidationReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.v1_2ValidationReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V1_3Validation() bool {
fake.v1_3ValidationMutex.Lock()
ret, specificReturn := fake.v1_3ValidationReturnsOnCall[len(fake.v1_3ValidationArgsForCall)]
fake.v1_3ValidationArgsForCall = append(fake.v1_3ValidationArgsForCall, struct {
}{})
fake.recordInvocation("V1_3Validation", []interface{}{})
fake.v1_3ValidationMutex.Unlock()
if fake.V1_3ValidationStub != nil {
return fake.V1_3ValidationStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.v1_3ValidationReturns
return fakeReturns.result1
}
func (fake *Capabilities) V1_3ValidationCallCount() int {
fake.v1_3ValidationMutex.RLock()
defer fake.v1_3ValidationMutex.RUnlock()
return len(fake.v1_3ValidationArgsForCall)
}
func (fake *Capabilities) V1_3ValidationCalls(stub func() bool) {
fake.v1_3ValidationMutex.Lock()
defer fake.v1_3ValidationMutex.Unlock()
fake.V1_3ValidationStub = stub
}
func (fake *Capabilities) V1_3ValidationReturns(result1 bool) {
fake.v1_3ValidationMutex.Lock()
defer fake.v1_3ValidationMutex.Unlock()
fake.V1_3ValidationStub = nil
fake.v1_3ValidationReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V1_3ValidationReturnsOnCall(i int, result1 bool) {
fake.v1_3ValidationMutex.Lock()
defer fake.v1_3ValidationMutex.Unlock()
fake.V1_3ValidationStub = nil
if fake.v1_3ValidationReturnsOnCall == nil {
fake.v1_3ValidationReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.v1_3ValidationReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V2_0Validation() bool {
fake.v2_0ValidationMutex.Lock()
ret, specificReturn := fake.v2_0ValidationReturnsOnCall[len(fake.v2_0ValidationArgsForCall)]
fake.v2_0ValidationArgsForCall = append(fake.v2_0ValidationArgsForCall, struct {
}{})
fake.recordInvocation("V2_0Validation", []interface{}{})
fake.v2_0ValidationMutex.Unlock()
if fake.V2_0ValidationStub != nil {
return fake.V2_0ValidationStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.v2_0ValidationReturns
return fakeReturns.result1
}
func (fake *Capabilities) V2_0ValidationCallCount() int {
fake.v2_0ValidationMutex.RLock()
defer fake.v2_0ValidationMutex.RUnlock()
return len(fake.v2_0ValidationArgsForCall)
}
func (fake *Capabilities) V2_0ValidationCalls(stub func() bool) {
fake.v2_0ValidationMutex.Lock()
defer fake.v2_0ValidationMutex.Unlock()
fake.V2_0ValidationStub = stub
}
func (fake *Capabilities) V2_0ValidationReturns(result1 bool) {
fake.v2_0ValidationMutex.Lock()
defer fake.v2_0ValidationMutex.Unlock()
fake.V2_0ValidationStub = nil
fake.v2_0ValidationReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V2_0ValidationReturnsOnCall(i int, result1 bool) {
fake.v2_0ValidationMutex.Lock()
defer fake.v2_0ValidationMutex.Unlock()
fake.V2_0ValidationStub = nil
if fake.v2_0ValidationReturnsOnCall == nil {
fake.v2_0ValidationReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.v2_0ValidationReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) Invocations() map[string][][]interface{} {
fake.invocationsMutex.RLock()
defer fake.invocationsMutex.RUnlock()
fake.aCLsMutex.RLock()
defer fake.aCLsMutex.RUnlock()
fake.collectionUpgradeMutex.RLock()
defer fake.collectionUpgradeMutex.RUnlock()
fake.forbidDuplicateTXIdInBlockMutex.RLock()
defer fake.forbidDuplicateTXIdInBlockMutex.RUnlock()
fake.keyLevelEndorsementMutex.RLock()
defer fake.keyLevelEndorsementMutex.RUnlock()
fake.metadataLifecycleMutex.RLock()
defer fake.metadataLifecycleMutex.RUnlock()
fake.privateChannelDataMutex.RLock()
defer fake.privateChannelDataMutex.RUnlock()
fake.storePvtDataOfInvalidTxMutex.RLock()
defer fake.storePvtDataOfInvalidTxMutex.RUnlock()
fake.supportedMutex.RLock()
defer fake.supportedMutex.RUnlock()
fake.v1_1ValidationMutex.RLock()
defer fake.v1_1ValidationMutex.RUnlock()
fake.v1_2ValidationMutex.RLock()
defer fake.v1_2ValidationMutex.RUnlock()
fake.v1_3ValidationMutex.RLock()
defer fake.v1_3ValidationMutex.RUnlock()
fake.v2_0ValidationMutex.RLock()
defer fake.v2_0ValidationMutex.RUnlock()
copiedInvocations := map[string][][]interface{}{}
for key, value := range fake.invocations {
copiedInvocations[key] = value
}
return copiedInvocations
}
func (fake *Capabilities) 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)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。