()
| 1150 | |
| 1151 | #[test] |
| 1152 | fn test_repository_status_tracked_paths() { |
| 1153 | let mut status = RepositoryStatus::new("dev".to_string(), None); |
| 1154 | |
| 1155 | status.add_entry(FileStatusEntry::new( |
| 1156 | PathBuf::from("tracked1.txt"), |
| 1157 | FileStatus::Clean, |
| 1158 | )); |
| 1159 | status.add_entry(FileStatusEntry::new( |
| 1160 | PathBuf::from("tracked2.txt"), |
| 1161 | FileStatus::Modified, |
| 1162 | )); |
| 1163 | status.add_entry(FileStatusEntry::new( |
| 1164 | PathBuf::from("untracked.txt"), |
| 1165 | FileStatus::Untracked, |
| 1166 | )); |
| 1167 | |
| 1168 | let tracked = status.tracked_paths(); |
| 1169 | assert_eq!(tracked.len(), 2); |
| 1170 | } |
| 1171 | |
| 1172 | // StatusOptions Tests |
| 1173 |
nothing calls this directly
no test coverage detected