mocks

package
v2.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities struct {
	ACLsStub func() bool

	CollectionUpgradeStub func() bool

	ForbidDuplicateTXIdInBlockStub func() bool

	KeyLevelEndorsementStub func() bool

	MetadataLifecycleStub func() bool

	PrivateChannelDataStub func() bool

	StorePvtDataOfInvalidTxStub func() bool

	SupportedStub func() error

	V1_1ValidationStub func() bool

	V1_2ValidationStub func() bool

	V1_3ValidationStub func() bool

	V2_0ValidationStub func() bool
	// contains filtered or unexported fields
}

func (*Capabilities) ACLs

func (fake *Capabilities) ACLs() bool

func (*Capabilities) ACLsCallCount

func (fake *Capabilities) ACLsCallCount() int

func (*Capabilities) ACLsCalls

func (fake *Capabilities) ACLsCalls(stub func() bool)

func (*Capabilities) ACLsReturns

func (fake *Capabilities) ACLsReturns(result1 bool)

func (*Capabilities) ACLsReturnsOnCall

func (fake *Capabilities) ACLsReturnsOnCall(i int, result1 bool)

func (*Capabilities) CollectionUpgrade

func (fake *Capabilities) CollectionUpgrade() bool

func (*Capabilities) CollectionUpgradeCallCount

func (fake *Capabilities) CollectionUpgradeCallCount() int

func (*Capabilities) CollectionUpgradeCalls

func (fake *Capabilities) CollectionUpgradeCalls(stub func() bool)

func (*Capabilities) CollectionUpgradeReturns

func (fake *Capabilities) CollectionUpgradeReturns(result1 bool)

func (*Capabilities) CollectionUpgradeReturnsOnCall

func (fake *Capabilities) CollectionUpgradeReturnsOnCall(i int, result1 bool)

func (*Capabilities) ForbidDuplicateTXIdInBlock

func (fake *Capabilities) ForbidDuplicateTXIdInBlock() bool

func (*Capabilities) ForbidDuplicateTXIdInBlockCallCount

func (fake *Capabilities) ForbidDuplicateTXIdInBlockCallCount() int

func (*Capabilities) ForbidDuplicateTXIdInBlockCalls

func (fake *Capabilities) ForbidDuplicateTXIdInBlockCalls(stub func() bool)

func (*Capabilities) ForbidDuplicateTXIdInBlockReturns

func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturns(result1 bool)

func (*Capabilities) ForbidDuplicateTXIdInBlockReturnsOnCall

func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturnsOnCall(i int, result1 bool)

func (*Capabilities) Invocations

func (fake *Capabilities) Invocations() map[string][][]interface{}

func (*Capabilities) KeyLevelEndorsement

func (fake *Capabilities) KeyLevelEndorsement() bool

func (*Capabilities) KeyLevelEndorsementCallCount

func (fake *Capabilities) KeyLevelEndorsementCallCount() int

func (*Capabilities) KeyLevelEndorsementCalls

func (fake *Capabilities) KeyLevelEndorsementCalls(stub func() bool)

func (*Capabilities) KeyLevelEndorsementReturns

func (fake *Capabilities) KeyLevelEndorsementReturns(result1 bool)

func (*Capabilities) KeyLevelEndorsementReturnsOnCall

func (fake *Capabilities) KeyLevelEndorsementReturnsOnCall(i int, result1 bool)

func (*Capabilities) MetadataLifecycle

func (fake *Capabilities) MetadataLifecycle() bool

func (*Capabilities) MetadataLifecycleCallCount

func (fake *Capabilities) MetadataLifecycleCallCount() int

func (*Capabilities) MetadataLifecycleCalls

func (fake *Capabilities) MetadataLifecycleCalls(stub func() bool)

func (*Capabilities) MetadataLifecycleReturns

func (fake *Capabilities) MetadataLifecycleReturns(result1 bool)

func (*Capabilities) MetadataLifecycleReturnsOnCall

func (fake *Capabilities) MetadataLifecycleReturnsOnCall(i int, result1 bool)

func (*Capabilities) PrivateChannelData

func (fake *Capabilities) PrivateChannelData() bool

func (*Capabilities) PrivateChannelDataCallCount

func (fake *Capabilities) PrivateChannelDataCallCount() int

func (*Capabilities) PrivateChannelDataCalls

func (fake *Capabilities) PrivateChannelDataCalls(stub func() bool)

func (*Capabilities) PrivateChannelDataReturns

func (fake *Capabilities) PrivateChannelDataReturns(result1 bool)

func (*Capabilities) PrivateChannelDataReturnsOnCall

func (fake *Capabilities) PrivateChannelDataReturnsOnCall(i int, result1 bool)

func (*Capabilities) StorePvtDataOfInvalidTx

func (fake *Capabilities) StorePvtDataOfInvalidTx() bool

func (*Capabilities) StorePvtDataOfInvalidTxCallCount

func (fake *Capabilities) StorePvtDataOfInvalidTxCallCount() int

func (*Capabilities) StorePvtDataOfInvalidTxCalls

func (fake *Capabilities) StorePvtDataOfInvalidTxCalls(stub func() bool)

func (*Capabilities) StorePvtDataOfInvalidTxReturns

func (fake *Capabilities) StorePvtDataOfInvalidTxReturns(result1 bool)

func (*Capabilities) StorePvtDataOfInvalidTxReturnsOnCall

func (fake *Capabilities) StorePvtDataOfInvalidTxReturnsOnCall(i int, result1 bool)

func (*Capabilities) Supported

func (fake *Capabilities) Supported() error

func (*Capabilities) SupportedCallCount

func (fake *Capabilities) SupportedCallCount() int

func (*Capabilities) SupportedCalls

func (fake *Capabilities) SupportedCalls(stub func() error)

func (*Capabilities) SupportedReturns

func (fake *Capabilities) SupportedReturns(result1 error)

func (*Capabilities) SupportedReturnsOnCall

func (fake *Capabilities) SupportedReturnsOnCall(i int, result1 error)

func (*Capabilities) V1_1Validation

func (fake *Capabilities) V1_1Validation() bool

func (*Capabilities) V1_1ValidationCallCount

func (fake *Capabilities) V1_1ValidationCallCount() int

func (*Capabilities) V1_1ValidationCalls

func (fake *Capabilities) V1_1ValidationCalls(stub func() bool)

func (*Capabilities) V1_1ValidationReturns

func (fake *Capabilities) V1_1ValidationReturns(result1 bool)

func (*Capabilities) V1_1ValidationReturnsOnCall

func (fake *Capabilities) V1_1ValidationReturnsOnCall(i int, result1 bool)

func (*Capabilities) V1_2Validation

func (fake *Capabilities) V1_2Validation() bool

func (*Capabilities) V1_2ValidationCallCount

func (fake *Capabilities) V1_2ValidationCallCount() int

func (*Capabilities) V1_2ValidationCalls

func (fake *Capabilities) V1_2ValidationCalls(stub func() bool)

func (*Capabilities) V1_2ValidationReturns

func (fake *Capabilities) V1_2ValidationReturns(result1 bool)

func (*Capabilities) V1_2ValidationReturnsOnCall

func (fake *Capabilities) V1_2ValidationReturnsOnCall(i int, result1 bool)

func (*Capabilities) V1_3Validation

func (fake *Capabilities) V1_3Validation() bool

func (*Capabilities) V1_3ValidationCallCount

func (fake *Capabilities) V1_3ValidationCallCount() int

func (*Capabilities) V1_3ValidationCalls

func (fake *Capabilities) V1_3ValidationCalls(stub func() bool)

func (*Capabilities) V1_3ValidationReturns

func (fake *Capabilities) V1_3ValidationReturns(result1 bool)

func (*Capabilities) V1_3ValidationReturnsOnCall

func (fake *Capabilities) V1_3ValidationReturnsOnCall(i int, result1 bool)

func (*Capabilities) V2_0Validation

func (fake *Capabilities) V2_0Validation() bool

func (*Capabilities) V2_0ValidationCallCount

func (fake *Capabilities) V2_0ValidationCallCount() int

func (*Capabilities) V2_0ValidationCalls

func (fake *Capabilities) V2_0ValidationCalls(stub func() bool)

func (*Capabilities) V2_0ValidationReturns

func (fake *Capabilities) V2_0ValidationReturns(result1 bool)

func (*Capabilities) V2_0ValidationReturnsOnCall

func (fake *Capabilities) V2_0ValidationReturnsOnCall(i int, result1 bool)

type CollectionResources

type CollectionResources struct {
	mock.Mock
}

CollectionResources is an autogenerated mock type for the CollectionResources type

func (*CollectionResources) CollectionValidationInfo

func (_m *CollectionResources) CollectionValidationInfo(chaincodeName string, collectionName string, state validation.State) ([]byte, error, error)

CollectionValidationInfo provides a mock function with given fields: chaincodeName, collectionName, state

type IdentityDeserializer

type IdentityDeserializer struct {
	mock.Mock
}

IdentityDeserializer is an autogenerated mock type for the IdentityDeserializer type

func (*IdentityDeserializer) DeserializeIdentity

func (_m *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (validation.Identity, error)

DeserializeIdentity provides a mock function with given fields: serializedIdentity

type State

type State struct {
	DoneStub func()

	GetPrivateDataMetadataByHashStub func(string, string, []byte) (map[string][]byte, error)

	GetStateMetadataStub func(string, string) (map[string][]byte, error)

	GetStateMultipleKeysStub func(string, []string) ([][]byte, error)

	GetStateRangeScanIteratorStub func(string, string, string) (validation.ResultsIterator, error)
	// contains filtered or unexported fields
}

func (*State) Done

func (fake *State) Done()

func (*State) DoneCallCount

func (fake *State) DoneCallCount() int

func (*State) DoneCalls

func (fake *State) DoneCalls(stub func())

func (*State) GetPrivateDataMetadataByHash

func (fake *State) GetPrivateDataMetadataByHash(arg1 string, arg2 string, arg3 []byte) (map[string][]byte, error)

func (*State) GetPrivateDataMetadataByHashArgsForCall

func (fake *State) GetPrivateDataMetadataByHashArgsForCall(i int) (string, string, []byte)

func (*State) GetPrivateDataMetadataByHashCallCount

func (fake *State) GetPrivateDataMetadataByHashCallCount() int

func (*State) GetPrivateDataMetadataByHashCalls

func (fake *State) GetPrivateDataMetadataByHashCalls(stub func(string, string, []byte) (map[string][]byte, error))

func (*State) GetPrivateDataMetadataByHashReturns

func (fake *State) GetPrivateDataMetadataByHashReturns(result1 map[string][]byte, result2 error)

func (*State) GetPrivateDataMetadataByHashReturnsOnCall

func (fake *State) GetPrivateDataMetadataByHashReturnsOnCall(i int, result1 map[string][]byte, result2 error)

func (*State) GetStateMetadata

func (fake *State) GetStateMetadata(arg1 string, arg2 string) (map[string][]byte, error)

func (*State) GetStateMetadataArgsForCall

func (fake *State) GetStateMetadataArgsForCall(i int) (string, string)

func (*State) GetStateMetadataCallCount

func (fake *State) GetStateMetadataCallCount() int

func (*State) GetStateMetadataCalls

func (fake *State) GetStateMetadataCalls(stub func(string, string) (map[string][]byte, error))

func (*State) GetStateMetadataReturns

func (fake *State) GetStateMetadataReturns(result1 map[string][]byte, result2 error)

func (*State) GetStateMetadataReturnsOnCall

func (fake *State) GetStateMetadataReturnsOnCall(i int, result1 map[string][]byte, result2 error)

func (*State) GetStateMultipleKeys

func (fake *State) GetStateMultipleKeys(arg1 string, arg2 []string) ([][]byte, error)

func (*State) GetStateMultipleKeysArgsForCall

func (fake *State) GetStateMultipleKeysArgsForCall(i int) (string, []string)

func (*State) GetStateMultipleKeysCallCount

func (fake *State) GetStateMultipleKeysCallCount() int

func (*State) GetStateMultipleKeysCalls

func (fake *State) GetStateMultipleKeysCalls(stub func(string, []string) ([][]byte, error))

func (*State) GetStateMultipleKeysReturns

func (fake *State) GetStateMultipleKeysReturns(result1 [][]byte, result2 error)

func (*State) GetStateMultipleKeysReturnsOnCall

func (fake *State) GetStateMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error)

func (*State) GetStateRangeScanIterator

func (fake *State) GetStateRangeScanIterator(arg1 string, arg2 string, arg3 string) (validation.ResultsIterator, error)

func (*State) GetStateRangeScanIteratorArgsForCall

func (fake *State) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string)

func (*State) GetStateRangeScanIteratorCallCount

func (fake *State) GetStateRangeScanIteratorCallCount() int

func (*State) GetStateRangeScanIteratorCalls

func (fake *State) GetStateRangeScanIteratorCalls(stub func(string, string, string) (validation.ResultsIterator, error))

func (*State) GetStateRangeScanIteratorReturns

func (fake *State) GetStateRangeScanIteratorReturns(result1 validation.ResultsIterator, result2 error)

func (*State) GetStateRangeScanIteratorReturnsOnCall

func (fake *State) GetStateRangeScanIteratorReturnsOnCall(i int, result1 validation.ResultsIterator, result2 error)

func (*State) Invocations

func (fake *State) Invocations() map[string][][]interface{}

type StateBasedValidator

type StateBasedValidator struct {
	mock.Mock
}

StateBasedValidator is an autogenerated mock type for the StateBasedValidator type

func (*StateBasedValidator) PostValidate

func (_m *StateBasedValidator) PostValidate(cc string, blockNum uint64, txNum uint64, err error)

PostValidate provides a mock function with given fields: cc, blockNum, txNum, err

func (*StateBasedValidator) PreValidate

func (_m *StateBasedValidator) PreValidate(txNum uint64, block *common.Block)

PreValidate provides a mock function with given fields: txNum, block

func (*StateBasedValidator) Validate

func (_m *StateBasedValidator) Validate(cc string, blockNum uint64, txNum uint64, rwset []byte, prp []byte, ep []byte, endorsements []*peer.Endorsement) errors.TxValidationError

Validate provides a mock function with given fields: cc, blockNum, txNum, rwset, prp, ep, endorsements

type StateFetcher

type StateFetcher struct {
	FetchStateStub func() (validation.State, error)
	// contains filtered or unexported fields
}

func (*StateFetcher) FetchState

func (fake *StateFetcher) FetchState() (validation.State, error)

func (*StateFetcher) FetchStateCallCount

func (fake *StateFetcher) FetchStateCallCount() int

func (*StateFetcher) FetchStateCalls

func (fake *StateFetcher) FetchStateCalls(stub func() (validation.State, error))

func (*StateFetcher) FetchStateReturns

func (fake *StateFetcher) FetchStateReturns(result1 validation.State, result2 error)

func (*StateFetcher) FetchStateReturnsOnCall

func (fake *StateFetcher) FetchStateReturnsOnCall(i int, result1 validation.State, result2 error)

func (*StateFetcher) Invocations

func (fake *StateFetcher) Invocations() map[string][][]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL