Closed teor2345 closed 2 years ago
Zebra is moving towards a standard test code layout, where:
tests
This speeds up non-test builds, particularly when only tests have changed.
But the orchard module in #1885 doesn't quite follow this structure yet.
orchard
Move to an arbitrary module in its own file:
arbitrary
Arbitrary for Address
Arbitrary for Halo2Proof
Arbitrary for TransmissionKey
Move to tests::{prop, vectors}, with each module in its own file:
tests::{prop, vectors}
address::tests
commitment::tests
note::ciphertexts::tests
note::nullifiers::tests
We can do this cleanup if it is ever needed.
Motivation
Zebra is moving towards a standard test code layout, where:
tests
moduleThis speeds up non-test builds, particularly when only tests have changed.
But the
orchard
module in #1885 doesn't quite follow this structure yet.Suggested Changes
Move to an
arbitrary
module in its own file:Arbitrary for Address
Arbitrary for Halo2Proof
Arbitrary for TransmissionKey
Move to
tests::{prop, vectors}
, with each module in its own file:address::tests
commitment::tests
note::ciphertexts::tests
note::nullifiers::tests