()
| 984 | |
| 985 | #[test] |
| 986 | fn test_repository_status_add_entry() { |
| 987 | let mut status = RepositoryStatus::new("dev".to_string(), None); |
| 988 | |
| 989 | status.add_entry(FileStatusEntry::new( |
| 990 | PathBuf::from("file1.txt"), |
| 991 | FileStatus::Modified, |
| 992 | )); |
| 993 | status.add_entry(FileStatusEntry::new( |
| 994 | PathBuf::from("file2.txt"), |
| 995 | FileStatus::Untracked, |
| 996 | )); |
| 997 | |
| 998 | assert_eq!(status.total_count(), 2); |
| 999 | assert!(!status.is_clean()); |
| 1000 | } |
| 1001 | |
| 1002 | #[test] |
| 1003 | fn test_repository_status_get() { |