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

Function test_diff_stats_into_iter

atomic-cli/src/commands/diff/tests.rs:235–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233
234 #[test]
235 fn test_diff_stats_into_iter() {
236 let mut stats = DiffStats::new();
237 stats.add_file(FileDiffStats::new("a.rs", 1, 0, 'M'));
238
239 for file_stats in stats {
240 assert_eq!(file_stats.path, "a.rs");
241 }
242 }
243
244 // DiffOutputConfig Tests
245

Callers

nothing calls this directly

Calls 1

add_fileMethod · 0.45

Tested by

no test coverage detected