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

Function test_pull_stats_tracking

atomic-cli/src/commands/pull/mod.rs:237–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235 /// Verify PullStats tracking methods work correctly.
236 #[test]
237 fn test_pull_stats_tracking() {
238 let mut stats = PullStats::new();
239 assert!(!stats.has_downloads());
240
241 stats.record_change_downloaded(1024);
242 assert!(stats.has_downloads());
243 assert_eq!(stats.changes_downloaded, 1);
244 assert_eq!(stats.bytes_transferred, 1024);
245 }
246}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected