MCPcopy
hub / github.com/hyperledger/fabric / mockQueryExecutor

Struct mockQueryExecutor

core/committer/txvalidator/v14/validator_test.go:1557–1559  ·  view source on GitHub ↗

mockQueryExecutor mock of the query executor, needed to simulate inability to access state db, e.g. the case where due to db failure it's not possible to query for state, for example if we would like to query the lccc for VSCC info and db is not avaible we expect to stop validating block and fail co

Source from the content-addressed store, hash-verified

1555// to stop validating block and fail commit procedure with
1556// an error.
1557type mockQueryExecutor struct {
1558 mock.Mock
1559}
1560
1561func (exec *mockQueryExecutor) GetState(namespace string, key string) ([]byte, error) {
1562 args := exec.Called(namespace, key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected