Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eof: Improve RJUMPV tests #755

Merged
merged 1 commit into from
Dec 21, 2023
Merged

eof: Improve RJUMPV tests #755

merged 1 commit into from
Dec 21, 2023

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented Dec 21, 2023

  • Replace CODECOPY with DATACOPY
  • Use calldata argument instead of modifying code byte
  • Split long jumps case into separate cases for min negative and max positive jumps

@gumb0 gumb0 added the EOF label Dec 21, 2023
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1ac539f) 97.90% compared to head (7fdc926) 97.90%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #755   +/-   ##
=======================================
  Coverage   97.90%   97.90%           
=======================================
  Files         110      110           
  Lines       10535    10537    +2     
=======================================
+ Hits        10314    10316    +2     
  Misses        221      221           
Flag Coverage Δ
blockchaintests 60.38% <ø> (ø)
statetests 62.37% <ø> (ø)
statetests-silkpre 26.22% <0.00%> (-0.02%) ⬇️
unittests 95.89% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
test/unittests/evm_eof_rjump_test.cpp 100.00% <100.00%> (ø)

- Replace CODECOPY with DATACOPY
- Use calldata argument instead of modifying code byte
- Split long jumps case into separate cases for min negative and max positive jumps
@gumb0 gumb0 force-pushed the eof/rjumpv-tests-improve branch from d61d97a to 7fdc926 Compare December 21, 2023 14:49
@gumb0 gumb0 requested review from chfast, pdobacz and rodiazet December 21, 2023 15:05
@gumb0 gumb0 merged commit b2337d4 into master Dec 21, 2023
3 checks passed
@gumb0 gumb0 deleted the eof/rjumpv-tests-improve branch December 21, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants