fabric: github.com/hyperledger/fabric/core/handlers/validation/builtin/v13/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/core/handlers/validation/builtin/v13/mocks"

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

capabilities.go identity_deserializer.go policy_evaluator.go state.go state_based_validator.go state_fetcher.go

type Capabilities Uses

type Capabilities struct {
    mock.Mock
}

Capabilities is an autogenerated mock type for the Capabilities type

func (*Capabilities) ACLs Uses

func (_m *Capabilities) ACLs() bool

ACLs provides a mock function with given fields:

func (*Capabilities) CollectionUpgrade Uses

func (_m *Capabilities) CollectionUpgrade() bool

CollectionUpgrade provides a mock function with given fields:

func (*Capabilities) ForbidDuplicateTXIdInBlock Uses

func (_m *Capabilities) ForbidDuplicateTXIdInBlock() bool

ForbidDuplicateTXIdInBlock provides a mock function with given fields:

func (*Capabilities) KeyLevelEndorsement Uses

func (_m *Capabilities) KeyLevelEndorsement() bool

KeyLevelEndorsement provides a mock function with given fields:

func (*Capabilities) MetadataLifecycle Uses

func (_m *Capabilities) MetadataLifecycle() bool

MetadataLifecycle provides a mock function with given fields:

func (*Capabilities) PrivateChannelData Uses

func (_m *Capabilities) PrivateChannelData() bool

PrivateChannelData provides a mock function with given fields:

func (*Capabilities) StorePvtDataOfInvalidTx Uses

func (_m *Capabilities) StorePvtDataOfInvalidTx() bool

StorePvtDataOfInvalidTx provides a mock function with given fields:

func (*Capabilities) Supported Uses

func (_m *Capabilities) Supported() error

Supported provides a mock function with given fields:

func (*Capabilities) V1_1Validation Uses

func (_m *Capabilities) V1_1Validation() bool

V1_1Validation provides a mock function with given fields:

func (*Capabilities) V1_2Validation Uses

func (_m *Capabilities) V1_2Validation() bool

V1_2Validation provides a mock function with given fields:

func (*Capabilities) V1_3Validation Uses

func (_m *Capabilities) V1_3Validation() bool

V1_3Validation provides a mock function with given fields:

func (*Capabilities) V2_0Validation Uses

func (_m *Capabilities) V2_0Validation() bool

V2_0Validation provides a mock function with given fields:

type IdentityDeserializer Uses

type IdentityDeserializer struct {
    mock.Mock
}

IdentityDeserializer is an autogenerated mock type for the IdentityDeserializer type

func (*IdentityDeserializer) DeserializeIdentity Uses

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

DeserializeIdentity provides a mock function with given fields: serializedIdentity

type PolicyEvaluator Uses

type PolicyEvaluator struct {
    mock.Mock
}

PolicyEvaluator is an autogenerated mock type for the PolicyEvaluator type

func (*PolicyEvaluator) Evaluate Uses

func (_m *PolicyEvaluator) Evaluate(policyBytes []byte, signatureSet []*protoutil.SignedData) error

Evaluate provides a mock function with given fields: policyBytes, signatureSet

type State Uses

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 Uses

func (fake *State) Done()

func (*State) DoneCallCount Uses

func (fake *State) DoneCallCount() int

func (*State) DoneCalls Uses

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

func (*State) GetPrivateDataMetadataByHash Uses

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

func (*State) GetPrivateDataMetadataByHashArgsForCall Uses

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

func (*State) GetPrivateDataMetadataByHashCallCount Uses

func (fake *State) GetPrivateDataMetadataByHashCallCount() int

func (*State) GetPrivateDataMetadataByHashCalls Uses

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

func (*State) GetPrivateDataMetadataByHashReturns Uses

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

func (*State) GetPrivateDataMetadataByHashReturnsOnCall Uses

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

func (*State) GetStateMetadata Uses

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

func (*State) GetStateMetadataArgsForCall Uses

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

func (*State) GetStateMetadataCallCount Uses

func (fake *State) GetStateMetadataCallCount() int

func (*State) GetStateMetadataCalls Uses

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

func (*State) GetStateMetadataReturns Uses

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

func (*State) GetStateMetadataReturnsOnCall Uses

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

func (*State) GetStateMultipleKeys Uses

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

func (*State) GetStateMultipleKeysArgsForCall Uses

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

func (*State) GetStateMultipleKeysCallCount Uses

func (fake *State) GetStateMultipleKeysCallCount() int

func (*State) GetStateMultipleKeysCalls Uses

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

func (*State) GetStateMultipleKeysReturns Uses

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

func (*State) GetStateMultipleKeysReturnsOnCall Uses

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

func (*State) GetStateRangeScanIterator Uses

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

func (*State) GetStateRangeScanIteratorArgsForCall Uses

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

func (*State) GetStateRangeScanIteratorCallCount Uses

func (fake *State) GetStateRangeScanIteratorCallCount() int

func (*State) GetStateRangeScanIteratorCalls Uses

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

func (*State) GetStateRangeScanIteratorReturns Uses

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

func (*State) GetStateRangeScanIteratorReturnsOnCall Uses

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

func (*State) Invocations Uses

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

type StateBasedValidator Uses

type StateBasedValidator struct {
    mock.Mock
}

StateBasedValidator is an autogenerated mock type for the StateBasedValidator type

func (*StateBasedValidator) PostValidate Uses

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 Uses

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

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

func (*StateBasedValidator) Validate Uses

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 Uses

type StateFetcher struct {
    mock.Mock
}

StateFetcher is an autogenerated mock type for the StateFetcher type

func (*StateFetcher) FetchState Uses

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

FetchState provides a mock function with given fields:

Package mocks imports 8 packages (graph). Updated 2020-02-05. Refresh now. Tools for package owners.