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

Function test_file_diff_new

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

Source from the content-addressed store, hash-verified

424
425 #[test]
426 fn test_file_diff_new() {
427 let diff = FileDiff::new("src/main.rs", FileChangeStatus::Modified);
428 assert_eq!(diff.old_path, "src/main.rs");
429 assert_eq!(diff.new_path, "src/main.rs");
430 assert_eq!(diff.status, FileChangeStatus::Modified);
431 assert!(diff.hunks.is_empty());
432 assert!(!diff.is_binary);
433 }
434
435 #[test]
436 fn test_file_diff_added() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected