()
| 1014 | |
| 1015 | #[test] |
| 1016 | fn test_repository_status_add_entry() { |
| 1017 | let mut status = RepositoryStatus::new("dev".to_string(), None); |
| 1018 | |
| 1019 | status.add_entry(FileStatusEntry::new( |
| 1020 | PathBuf::from("file1.txt"), |
| 1021 | FileStatus::Modified, |
| 1022 | )); |
| 1023 | status.add_entry(FileStatusEntry::new( |
| 1024 | PathBuf::from("file2.txt"), |
| 1025 | FileStatus::Untracked, |
| 1026 | )); |
| 1027 | |
| 1028 | assert_eq!(status.total_count(), 2); |
| 1029 | assert!(!status.is_clean()); |
| 1030 | } |
| 1031 | |
| 1032 | #[test] |
| 1033 | fn test_repository_status_get() { |