()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected