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

Function test_file_diff_deleted

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

Source from the content-addressed store, hash-verified

443
444 #[test]
445 fn test_file_diff_deleted() {
446 let diff = FileDiff::deleted("old_file.rs");
447 assert_eq!(diff.old_path, "old_file.rs");
448 assert_eq!(diff.new_path, "/dev/null");
449 assert_eq!(diff.status, FileChangeStatus::Deleted);
450 assert_eq!(diff.stats.status, 'D');
451 }
452
453 #[test]
454 fn test_file_diff_modified() {

Callers

nothing calls this directly

Calls 1

deletedFunction · 0.85

Tested by

no test coverage detected