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

Function test_diff_stats_has_changes

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

Source from the content-addressed store, hash-verified

196
197 #[test]
198 fn test_diff_stats_has_changes() {
199 let mut stats = DiffStats::new();
200 assert!(!stats.has_changes());
201
202 stats.add_file(FileDiffStats::new("file.rs", 1, 0, 'M'));
203 assert!(stats.has_changes());
204 }
205
206 #[test]
207 fn test_diff_stats_max_path_length() {

Callers

nothing calls this directly

Calls 1

add_fileMethod · 0.45

Tested by

no test coverage detected