MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_transfer_stats_default

Function test_transfer_stats_default

atomic-remote/src/streaming/tests.rs:597–603  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

595
596#[test]
597fn test_transfer_stats_default() {
598 let stats = TransferStats::default();
599 assert_eq!(stats.total_chunks(), 0);
600 assert_eq!(stats.total_bytes(), 0);
601 assert!((stats.savings_pct() - 0.0).abs() < f64::EPSILON);
602 assert_eq!(stats.bytes_per_second(), 0);
603}
604
605#[test]
606fn test_transfer_stats_with_values() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected