INNER CODE UNIT · Rust

capture_stats_expose_distinct_drop_sources

domcyrus/rustnet · crates/rustnet-capture/src/lib.rs:650

    fn capture_stats_expose_distinct_drop_sources() {
        let stats = CaptureStats {
            received: 20,
            dropped: 3,
            if_dropped: 5,
        };

        assert_eq!(stats.capture_drops(), 3);
        assert_eq!(stats.interface_drops(), 5);
        assert_eq!(stats.total_dropped(), 8);
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…