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
| 1555 | // to stop validating block and fail commit procedure with |
| 1556 | // an error. |
| 1557 | type mockQueryExecutor struct { |
| 1558 | mock.Mock |
| 1559 | } |
| 1560 | |
| 1561 | func (exec *mockQueryExecutor) GetState(namespace string, key string) ([]byte, error) { |
| 1562 | args := exec.Called(namespace, key) |
nothing calls this directly
no outgoing calls
no test coverage detected