Skip to content

Commit

Permalink
Move BuilderArb struct declaration down to try to reduce git diff
Browse files Browse the repository at this point in the history
  • Loading branch information
dmidem committed Jun 3, 2024
1 parent 5ca986f commit 465a6aa
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -995,16 +995,6 @@ pub mod testing {
}
}

/// `BuilderArb` serves as a utility structure in property-based testing, designed specifically to adapt
/// `arb_...` functions for compatibility with both variations of the Orchard protocol: Vanilla and ZSA.
/// This adaptation is necessary due to the proptest crate's limitation, which prevents the direct
/// transformation of `arb_...` functions into generic forms suitable for testing different protocol
/// flavors.
#[derive(Debug)]
pub struct BuilderArb<D: OrchardDomain> {
phantom: std::marker::PhantomData<D>,
}

impl<D: OrchardDomain + OrchardCircuit + OrchardHash> BuilderArb<D> {
prop_compose! {
/// Produce a random valid Orchard bundle.
Expand Down Expand Up @@ -1072,6 +1062,16 @@ pub mod testing {
BuilderArb::<D>::arb_bundle_inputs(k).prop_map(|inputs| inputs.into_bundle::<V, D>())
}
}

/// `BuilderArb` serves as a utility structure in property-based testing, designed specifically to adapt
/// `arb_...` functions for compatibility with both variations of the Orchard protocol: Vanilla and ZSA.
/// This adaptation is necessary due to the proptest crate's limitation, which prevents the direct
/// transformation of `arb_...` functions into generic forms suitable for testing different protocol
/// flavors.
#[derive(Debug)]
pub struct BuilderArb<D: OrchardDomain> {
phantom: std::marker::PhantomData<D>,
}
}

#[cfg(test)]
Expand Down

0 comments on commit 465a6aa

Please sign in to comment.