fabric: github.com/hyperledger/fabric/core/committer/txvalidator/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/core/committer/txvalidator/mocks"

Index

Package Files

application_capabilities.go capability_provider.go query_executor.go validator.go

type ApplicationCapabilities Uses

type ApplicationCapabilities struct {
    mock.Mock
}

ApplicationCapabilities is an autogenerated mock type for the ApplicationCapabilities type

func (*ApplicationCapabilities) ACLs Uses

func (_m *ApplicationCapabilities) ACLs() bool

ACLs provides a mock function with given fields:

func (*ApplicationCapabilities) CollectionUpgrade Uses

func (_m *ApplicationCapabilities) CollectionUpgrade() bool

CollectionUpgrade provides a mock function with given fields:

func (*ApplicationCapabilities) ForbidDuplicateTXIdInBlock Uses

func (_m *ApplicationCapabilities) ForbidDuplicateTXIdInBlock() bool

ForbidDuplicateTXIdInBlock provides a mock function with given fields:

func (*ApplicationCapabilities) KeyLevelEndorsement Uses

func (_m *ApplicationCapabilities) KeyLevelEndorsement() bool

KeyLevelEndorsement provides a mock function with given fields:

func (*ApplicationCapabilities) LifecycleV20 Uses

func (_m *ApplicationCapabilities) LifecycleV20() bool

LifecycleV20 provides a mock function with given fields:

func (*ApplicationCapabilities) MetadataLifecycle Uses

func (_m *ApplicationCapabilities) MetadataLifecycle() bool

MetadataLifecycle provides a mock function with given fields:

func (*ApplicationCapabilities) PrivateChannelData Uses

func (_m *ApplicationCapabilities) PrivateChannelData() bool

PrivateChannelData provides a mock function with given fields:

func (*ApplicationCapabilities) StorePvtDataOfInvalidTx Uses

func (_m *ApplicationCapabilities) StorePvtDataOfInvalidTx() bool

StorePvtDataOfInvalidTx provides a mock function with given fields:

func (*ApplicationCapabilities) Supported Uses

func (_m *ApplicationCapabilities) Supported() error

Supported provides a mock function with given fields:

func (*ApplicationCapabilities) V1_1Validation Uses

func (_m *ApplicationCapabilities) V1_1Validation() bool

V1_1Validation provides a mock function with given fields:

func (*ApplicationCapabilities) V1_2Validation Uses

func (_m *ApplicationCapabilities) V1_2Validation() bool

V1_2Validation provides a mock function with given fields:

func (*ApplicationCapabilities) V1_3Validation Uses

func (_m *ApplicationCapabilities) V1_3Validation() bool

V1_3Validation provides a mock function with given fields:

func (*ApplicationCapabilities) V2_0Validation Uses

func (_m *ApplicationCapabilities) V2_0Validation() bool

V2_0Validation provides a mock function with given fields:

type CapabilityProvider Uses

type CapabilityProvider struct {
    mock.Mock
}

CapabilityProvider is an autogenerated mock type for the CapabilityProvider type

func (*CapabilityProvider) Capabilities Uses

func (_m *CapabilityProvider) Capabilities() channelconfig.ApplicationCapabilities

Capabilities provides a mock function with given fields:

type QueryExecutor Uses

type QueryExecutor struct {
    mock.Mock
}

QueryExecutor is an autogenerated mock type for the QueryExecutor type

func (*QueryExecutor) Done Uses

func (_m *QueryExecutor) Done()

Done provides a mock function with given fields:

func (*QueryExecutor) ExecuteQuery Uses

func (_m *QueryExecutor) ExecuteQuery(namespace string, query string) (ledger.ResultsIterator, error)

ExecuteQuery provides a mock function with given fields: namespace, query

func (*QueryExecutor) ExecuteQueryOnPrivateData Uses

func (_m *QueryExecutor) ExecuteQueryOnPrivateData(namespace string, collection string, query string) (ledger.ResultsIterator, error)

ExecuteQueryOnPrivateData provides a mock function with given fields: namespace, collection, query

func (*QueryExecutor) ExecuteQueryWithMetadata Uses

func (_m *QueryExecutor) ExecuteQueryWithMetadata(namespace string, query string, metadata map[string]interface{}) (coreledger.QueryResultsIterator, error)

ExecuteQueryWithMetadata provides a mock function with given fields: namespace, query, metadata

func (*QueryExecutor) GetPrivateData Uses

func (_m *QueryExecutor) GetPrivateData(namespace string, collection string, key string) ([]byte, error)

GetPrivateData provides a mock function with given fields: namespace, collection, key

func (*QueryExecutor) GetPrivateDataHash Uses

func (_m *QueryExecutor) GetPrivateDataHash(namespace string, collection string, key string) ([]byte, error)

GetPrivateDataHash provides a mock function with given fields: namespace, collection, key

func (*QueryExecutor) GetPrivateDataMetadata Uses

func (_m *QueryExecutor) GetPrivateDataMetadata(namespace string, collection string, key string) (map[string][]byte, error)

GetPrivateDataMetadata provides a mock function with given fields: namespace, collection, key

func (*QueryExecutor) GetPrivateDataMetadataByHash Uses

func (_m *QueryExecutor) GetPrivateDataMetadataByHash(namespace string, collection string, keyhash []byte) (map[string][]byte, error)

GetPrivateDataMetadataByHash provides a mock function with given fields: namespace, collection, keyhash

func (*QueryExecutor) GetPrivateDataMultipleKeys Uses

func (_m *QueryExecutor) GetPrivateDataMultipleKeys(namespace string, collection string, keys []string) ([][]byte, error)

GetPrivateDataMultipleKeys provides a mock function with given fields: namespace, collection, keys

func (*QueryExecutor) GetPrivateDataRangeScanIterator Uses

func (_m *QueryExecutor) GetPrivateDataRangeScanIterator(namespace string, collection string, startKey string, endKey string) (ledger.ResultsIterator, error)

GetPrivateDataRangeScanIterator provides a mock function with given fields: namespace, collection, startKey, endKey

func (*QueryExecutor) GetState Uses

func (_m *QueryExecutor) GetState(namespace string, key string) ([]byte, error)

GetState provides a mock function with given fields: namespace, key

func (*QueryExecutor) GetStateMetadata Uses

func (_m *QueryExecutor) GetStateMetadata(namespace string, key string) (map[string][]byte, error)

GetStateMetadata provides a mock function with given fields: namespace, key

func (*QueryExecutor) GetStateMultipleKeys Uses

func (_m *QueryExecutor) GetStateMultipleKeys(namespace string, keys []string) ([][]byte, error)

GetStateMultipleKeys provides a mock function with given fields: namespace, keys

func (*QueryExecutor) GetStateRangeScanIterator Uses

func (_m *QueryExecutor) GetStateRangeScanIterator(namespace string, startKey string, endKey string) (ledger.ResultsIterator, error)

GetStateRangeScanIterator provides a mock function with given fields: namespace, startKey, endKey

func (*QueryExecutor) GetStateRangeScanIteratorWithMetadata Uses

func (_m *QueryExecutor) GetStateRangeScanIteratorWithMetadata(namespace string, startKey string, endKey string, metadata map[string]interface{}) (coreledger.QueryResultsIterator, error)

GetStateRangeScanIteratorWithMetadata provides a mock function with given fields: namespace, startKey, endKey, metadata

type Validator Uses

type Validator struct {
    mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func (*Validator) Validate Uses

func (_m *Validator) Validate(block *common.Block) error

Validate provides a mock function with given fields: block

Package mocks imports 5 packages (graph). Updated 2019-11-16. Refresh now. Tools for package owners.