silkrpc
silkrpc copied to clipboard
Refactor TraceCallExecutor unit tests
Unit tests for TraceCallExecutor should be refactored to improve readability and semantics:
- add constructor in
EVMExecutorwithsilkworm::Stateas input parameter instead ofcore::rawdb::DatabaseReader - add constructor in
TraceCallExecutorwithsilkworm::StateandEVMExecutoras input parameters instead ofcore::rawdb::DatabaseReaderor changeTraceCallExecutor::execute - if possible, refactor
EVMExecutorandTraceCallExecutorto avoid templates - mock
silkworm::Stateusing Gmock - refactor unit tests
- rename
TraceCallExecutorasTraceExecutor