NethermindEth / blockifier

Blockifier is a Rust implementation for the transaction-executing component in the StarkNet sequencer, in charge of creating state diffs and blocks.
Apache License 2.0
1 stars 4 forks source link

refactor: test_get_execution_info #106

Closed xrvdg closed 2 months ago

xrvdg commented 3 months ago

Closes #98

By using pattern matching instead of if-else branches we can drop the argument is_legacy, turn a mutable variable into a immutable one, and make the decision table behind expected_resource_bounds apparent.

codecov-commenter commented 3 months ago

Codecov Report

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

Project coverage is 80.04%. Comparing base (e900e3d) to head (7d61172).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## native2.6.3 #106 +/- ## =============================================== - Coverage 80.06% 80.04% -0.02% =============================================== Files 77 77 Lines 10594 10584 -10 Branches 10594 10584 -10 =============================================== - Hits 8482 8472 -10 Misses 1646 1646 Partials 466 466 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.