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

Move the preallocate tests into their own files #1977

Merged
merged 4 commits into from
Apr 7, 2021

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Apr 6, 2021

Motivation

In #1920, we put the preallocate tests in the same files as the TrustedPreallocate impls.

But in Zebra, we try to put tests in their own files.

Solution

  • move the preallocate tests into their own files
  • move the MetaAddr proptest into its own file
  • do some minor formatting and cleanups

Review

Anyone can review. This code movement isn't urgent.

@preston-evans98 you might also want to review this, but don't worry if you're busy.

Related Issues

Cleanup after #1920.

Follow Up Work

Turn the InventoryHash and MetaAddr tests into proptests.

And move the MetaAddr proptest into its own file.

Also do some minor formatting and cleanups.
@teor2345 teor2345 added A-rust Area: Updates to Rust code C-cleanup Category: This is a cleanup P-Low labels Apr 6, 2021
@teor2345 teor2345 requested a review from a team April 6, 2021 00:42
@teor2345 teor2345 self-assigned this Apr 6, 2021
@teor2345 teor2345 added this to the 2021 Sprint 7 milestone Apr 6, 2021
Co-authored-by: Deirdre Connolly <[email protected]>
@teor2345 teor2345 merged commit 64662a7 into ZcashFoundation:main Apr 7, 2021
@teor2345
Copy link
Contributor Author

teor2345 commented Apr 7, 2021

This is blocking security fixes, so I merged it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rust Area: Updates to Rust code C-cleanup Category: This is a cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants