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

Function test_file_diff_stats_modified

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

Source from the content-addressed store, hash-verified

142
143 #[test]
144 fn test_file_diff_stats_modified() {
145 let stats = FileDiffStats::modified("mod.rs", 8, 3);
146 assert_eq!(stats.path, "mod.rs");
147 assert_eq!(stats.insertions, 8);
148 assert_eq!(stats.deletions, 3);
149 assert_eq!(stats.status, 'M');
150 assert!(stats.is_modified());
151 }
152
153 #[test]
154 fn test_file_diff_stats_total_changes() {

Callers

nothing calls this directly

Calls 1

modifiedFunction · 0.85

Tested by

no test coverage detected