ethereum / evmone

Fast Ethereum Virtual Machine implementation
Apache License 2.0
864 stars 286 forks source link

test: Support chain_id in loading multi-transaction state tests #1023

Closed gumb0 closed 2 months ago

gumb0 commented 2 months ago

Also set default chain_id to 1 - see confirmation that this is expected behavior https://discord.com/channels/595666850260713488/753271902520213625/1280839101687533619

Pulled out of #961, required for 7702 tests.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.19%. Comparing base (eaecdd5) to head (f483c91). Report is 2 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1023 +/- ## ======================================= Coverage 94.19% 94.19% ======================================= Files 149 149 Lines 15887 15888 +1 ======================================= + Hits 14964 14965 +1 Misses 923 923 ``` | [Flag](https://app.codecov.io/gh/ethereum/evmone/pull/1023/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum) | Coverage Δ | | |---|---|---| | [eof_execution_spec_tests](https://app.codecov.io/gh/ethereum/evmone/pull/1023/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum) | `17.25% <60.00%> (+<0.01%)` | :arrow_up: | | [ethereum_tests](https://app.codecov.io/gh/ethereum/evmone/pull/1023/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum) | `27.33% <60.00%> (+<0.01%)` | :arrow_up: | | [ethereum_tests_silkpre](https://app.codecov.io/gh/ethereum/evmone/pull/1023/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum) | `19.13% <40.00%> (+0.01%)` | :arrow_up: | | [execution_spec_tests](https://app.codecov.io/gh/ethereum/evmone/pull/1023/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum) | `20.42% <60.00%> (+<0.01%)` | :arrow_up: | | [unittests](https://app.codecov.io/gh/ethereum/evmone/pull/1023/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum) | `88.96% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files with missing lines](https://app.codecov.io/gh/ethereum/evmone/pull/1023?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum) | Coverage Δ | | |---|---|---| | [test/statetest/statetest\_loader.cpp](https://app.codecov.io/gh/ethereum/evmone/pull/1023?src=pr&el=tree&filepath=test%2Fstatetest%2Fstatetest_loader.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum#diff-dGVzdC9zdGF0ZXRlc3Qvc3RhdGV0ZXN0X2xvYWRlci5jcHA=) | `96.85% <100.00%> (+0.01%)` | :arrow_up: | | [test/unittests/statetest\_loader\_test.cpp](https://app.codecov.io/gh/ethereum/evmone/pull/1023?src=pr&el=tree&filepath=test%2Funittests%2Fstatetest_loader_test.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum#diff-dGVzdC91bml0dGVzdHMvc3RhdGV0ZXN0X2xvYWRlcl90ZXN0LmNwcA==) | `100.00% <100.00%> (ø)` | | | [test/unittests/statetest\_loader\_tx\_test.cpp](https://app.codecov.io/gh/ethereum/evmone/pull/1023?src=pr&el=tree&filepath=test%2Funittests%2Fstatetest_loader_tx_test.cpp&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum#diff-dGVzdC91bml0dGVzdHMvc3RhdGV0ZXN0X2xvYWRlcl90eF90ZXN0LmNwcA==) | `100.00% <100.00%> (ø)` | |