-
Notifications
You must be signed in to change notification settings - Fork 36
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
Gate Code for Testing Purposes Under testing Modules #688
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm in favour of the testing
modules, and the code changes you've made, but I'd rather not see a test_utils
feature.
- We don't really care about a narrow API - our only consumer is
zero
. - We don't care about excluding symbols from production builds - dead code elimination is already done by the compiler.
- Development complexity is increased.
- Now I've got to tell my editor to use
--features test_utils
- A more complex feature matrix, where we need to add e.g clippy coverage (which is easy to neglect c.f this PR ;) )
- Now I've got to tell my editor to use
Thanks for reviewing! We don’t need to use |
However, I would argue that without a feature gate or conditional compilation like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking comment, LGTM
pub fn verify_proof< | ||
F: RichField + Extendable<D>, | ||
C: GenericConfig<D, F = F>, | ||
const D: usize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case we could gate behind a testing module the intermediate verify_foo
methods in fixed_recursive_verifier
too (i.e. verify_root
. / verify_segment_aggregation
/ verify_batch_aggregation
), as well as prove_all_segments
This PR gates test-specific code under the testing modules.
Please use GitHub’s “Hide whitespace changes” feature for easier reviewing.