| 1031 | |
| 1032 | #[test] |
| 1033 | fn test_repository_status_get() { |
| 1034 | let mut status = RepositoryStatus::new("dev".to_string(), None); |
| 1035 | |
| 1036 | status.add_entry(FileStatusEntry::new( |
| 1037 | PathBuf::from("src/main.rs"), |
| 1038 | FileStatus::Modified, |
| 1039 | )); |
| 1040 | |
| 1041 | let entry = status.get(Path::new("src/main.rs")); |
| 1042 | assert!(entry.is_some()); |
| 1043 | assert_eq!(entry.unwrap().status(), FileStatus::Modified); |
| 1044 | |
| 1045 | let missing = status.get(Path::new("nonexistent.rs")); |
| 1046 | assert!(missing.is_none()); |
| 1047 | } |
| 1048 | |
| 1049 | #[test] |
| 1050 | fn test_repository_status_filters() { |