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

Improve x/evm genesis state testing #69

Merged
merged 5 commits into from
Jul 19, 2024
Merged

Conversation

nddeluca
Copy link
Member

@nddeluca nddeluca commented Jul 19, 2024

Improves test coverage of genesis state and tests explicit errors for all validations, ensuring no false positives for changed logic or modified test data.

No behavior changes to validation logic are made here -- only slight refactors of order and error wrapping.

extra param sorting and uniqueness tests; remove legacy validations used
for old param store; add enabled precompiles to params constructor and
default params
complexity of test cases; prevent access of key before validation; and
use empty struct map for uniq checks
was the same, however did not check it was actually a copy, so instead
of improving tests, remove the unused code
that did not match test name; increase test coverage and confidence;
refactor uniqueness check to use struct map and to not access account
fields until after validations have run
@nddeluca nddeluca requested a review from karzak July 19, 2024 16:22
@nddeluca nddeluca merged commit 92626e4 into main Jul 19, 2024
25 checks passed
@nddeluca nddeluca deleted the nd-evm-genesis-test-improvements branch July 19, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant