| 1289 | |
| 1290 | #[test] |
| 1291 | fn test_repository_status_get() { |
| 1292 | let mut status = RepositoryStatus::new("dev".to_string(), None); |
| 1293 | |
| 1294 | status.add_entry(FileStatusEntry::new( |
| 1295 | PathBuf::from("src/main.rs"), |
| 1296 | FileStatus::Modified, |
| 1297 | )); |
| 1298 | |
| 1299 | let entry = status.get(Path::new("src/main.rs")); |
| 1300 | assert!(entry.is_some()); |
| 1301 | assert_eq!(entry.unwrap().status(), FileStatus::Modified); |
| 1302 | |
| 1303 | let missing = status.get(Path::new("nonexistent.rs")); |
| 1304 | assert!(missing.is_none()); |
| 1305 | } |
| 1306 | |
| 1307 | #[test] |
| 1308 | fn test_repository_status_filters() { |