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

Function test_tracking_stats_totals

atomic-repository/src/tracking/tests.rs:222–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220
221#[test]
222fn test_tracking_stats_totals() {
223 let mut stats = TrackingStats::new();
224 stats.files_added = 5;
225 stats.directories_added = 2;
226 stats.files_removed = 1;
227
228 assert_eq!(stats.total_added(), 7);
229 assert_eq!(stats.total_removed(), 1);
230 assert!(stats.has_changes());
231}
232
233#[test]
234fn test_tracking_stats_skip() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected