commit 5d069ecec1e4045be2a51cf8ed27b31552384b34
parent bd7e16c21befc30890f0e99c14448d415cbbe83e
Author: triesap <tyson@radroots.org>
Date: Wed, 1 Jul 2026 21:17:24 +0000
replica_db_schema: remove production dead code probe
Delete the artificial coverage branch helper and its production dead-code suppression instead of preserving warning hygiene through allow(dead_code).
Validation: cargo extbuild run -- cargo fmt --all; cargo extbuild run -- cargo check -p radroots_replica_db_schema --all-features; cargo extbuild run -- cargo test -p radroots_replica_db_schema --all-features
Diffstat:
1 file changed, 0 insertions(+), 21 deletions(-)
diff --git a/crates/replica_db_schema/src/lib.rs b/crates/replica_db_schema/src/lib.rs
@@ -3,24 +3,3 @@ pub mod dto;
pub mod models;
pub use models::*;
-
-#[cfg_attr(not(test), allow(dead_code))]
-fn coverage_branch_probe(value: Option<&str>) -> usize {
- match value {
- Some("") => 0,
- Some(raw) => raw.len(),
- None => 0,
- }
-}
-
-#[cfg(test)]
-mod tests {
- use super::coverage_branch_probe;
-
- #[test]
- fn coverage_branch_probe_exercises_branches() {
- assert_eq!(coverage_branch_probe(None), 0);
- assert_eq!(coverage_branch_probe(Some("")), 0);
- assert_eq!(coverage_branch_probe(Some("probe")), 5);
- }
-}