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

Function test_file_diff_modified

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

Source from the content-addressed store, hash-verified

452
453 #[test]
454 fn test_file_diff_modified() {
455 let diff = FileDiff::modified("changed.rs");
456 assert_eq!(diff.old_path, "changed.rs");
457 assert_eq!(diff.new_path, "changed.rs");
458 assert_eq!(diff.status, FileChangeStatus::Modified);
459 assert_eq!(diff.stats.status, 'M');
460 }
461
462 #[test]
463 fn test_file_diff_add_hunk() {

Callers

nothing calls this directly

Calls 1

modifiedFunction · 0.85

Tested by

no test coverage detected