Skip to content

Commit

Permalink
remove contagion from local test modules
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Dec 3, 2024
1 parent 65df9d5 commit 94b0763
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 0 additions & 2 deletions file_store/src/cli/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
pub mod bucket;
pub mod dump;
pub mod dump_mobile_rewards;
pub mod import_iot_rewards;
pub mod import_mobile_rewards;
pub mod info;

use crate::Result;
Expand Down
5 changes: 0 additions & 5 deletions file_store/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use clap::Parser;
use file_store::cli::{import_iot_rewards, import_mobile_rewards};
use file_store::{
cli::{bucket, dump, dump_mobile_rewards, info},
Result, Settings,
Expand Down Expand Up @@ -31,8 +30,6 @@ pub enum Cmd {
Dump(dump::Cmd),
Bucket(Box<bucket::Cmd>),
DumpMobileRewards(dump_mobile_rewards::Cmd),
ImportMobileRewards(import_mobile_rewards::Cmd),
ImportIotRewards(import_iot_rewards::Cmd),
}

impl Cmd {
Expand All @@ -42,8 +39,6 @@ impl Cmd {
Cmd::Dump(cmd) => cmd.run(&settings).await,
Cmd::Bucket(cmd) => cmd.run(&settings).await,
Cmd::DumpMobileRewards(cmd) => cmd.run(&settings).await,
Cmd::ImportMobileRewards(cmd) => cmd.run(&settings).await,
Cmd::ImportIotRewards(cmd) => cmd.run(&settings).await,
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions iot_packet_verifier/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,11 @@ impl<T: Send> PacketWriter<T> for &'_ mut Vec<T> {
Ok(())
}
}

#[cfg(test)]
#[test]
fn test_payload_size_to_dc() {
assert_eq!(1, payload_size_to_dc(1));
assert_eq!(1, payload_size_to_dc(24));
assert_eq!(2, payload_size_to_dc(25));
}

0 comments on commit 94b0763

Please sign in to comment.