Skip to content

Commit

Permalink
Small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
andyleiserson committed Dec 4, 2024
1 parent 3e97f3d commit e8eaa7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ipa-core/src/protocol/hybrid/breakdown_reveal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ mod proptests {
prop_compose! {
fn inputs(max_len: usize)
(
len in 1..=max_len,
len in 0..=max_len,
)
(
len in Just(len),
Expand Down
14 changes: 11 additions & 3 deletions ipa-core/src/protocol/ipa_prf/aggregation/breakdown_reveal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,10 @@ pub mod tests {
)
(
len in Just(len),
inputs in prop::collection::vec((0..PROP_BUCKETS, 0u32..1 << PropTriggerValue::BITS).prop_map(Into::into), len),
inputs in prop::collection::vec((
0..PROP_BUCKETS,
0u32..1 << PropTriggerValue::BITS,
).prop_map(Into::into), len),
)
-> AggregatePropTestInputs {
let mut expected = [0; PROP_BUCKETS];
Expand All @@ -593,7 +596,8 @@ pub mod tests {
proptest! {
#![proptest_config(mpc_proptest_config_with_cases(100))]
#[test]
#[ignore] // this test is redundant with the version in hybrid::breakdown_reveal.
#[ignore] // This test is similar enough to the one in hybrid::breakdown_reveal
// that it is not worth running both.
fn breakdown_reveal_proptest(
input_struct in inputs(PROP_MAX_INPUT_LEN),
seed in any::<u64>(),
Expand All @@ -606,7 +610,11 @@ pub mod tests {
} = input_struct;
let result = TestWorld::with_seed(seed)
.malicious(inputs.into_iter(), |ctx, inputs| async move {
breakdown_reveal_aggregation::<_, _, _, PropHistogramValue, {PropBucketsBitVec::BITS as usize}>(
breakdown_reveal_aggregation::<
_, _, _,
PropHistogramValue,
{PropBucketsBitVec::BITS as usize},
>(
ctx,
inputs,
&PaddingParameters::no_padding(),
Expand Down

0 comments on commit e8eaa7d

Please sign in to comment.