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

Function test_file_diff_display_path

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

Source from the content-addressed store, hash-verified

502
503 #[test]
504 fn test_file_diff_display_path() {
505 let added = FileDiff::added("new.rs");
506 assert_eq!(added.display_path(), "new.rs");
507
508 let deleted = FileDiff::deleted("old.rs");
509 assert_eq!(deleted.display_path(), "old.rs");
510
511 let modified = FileDiff::modified("changed.rs");
512 assert_eq!(modified.display_path(), "changed.rs");
513 }
514
515 // FileChangeStatus Tests
516

Callers

nothing calls this directly

Calls 3

addedFunction · 0.85
deletedFunction · 0.85
modifiedFunction · 0.85

Tested by

no test coverage detected