diff --git a/src/builder.rs b/src/builder.rs index 27fbe01e7..c94ae510f 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -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 { - phantom: std::marker::PhantomData, - } - impl BuilderArb { prop_compose! { /// Produce a random valid Orchard bundle. @@ -1072,6 +1062,16 @@ pub mod testing { BuilderArb::::arb_bundle_inputs(k).prop_map(|inputs| inputs.into_bundle::()) } } + + /// `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 { + phantom: std::marker::PhantomData, + } } #[cfg(test)]