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

Macro for testing all layouts #90

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

cheme
Copy link
Contributor

@cheme cheme commented May 18, 2020

Currently there is two kinds of trie layout (with and without extension node), and testing code did add some redundancy.
This pr bring changes done in #81 to avoid this redundancy (#81 brings the number of trie kind to 4).

test_layouts macro does launch test for all possible layout.

This reduces code size and improve test coverage.

I did also remove trie_unhashed_no_ext fuzzer and some associated function (it is just doing trie root but return an unhashed result).

Commit 17eea1a also fix a prefix error that was in an untested (and unused) configuration before.

Fuzzers run on a single layout, using different layout should be done by switching layout into the fuzz_target definition file.

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