()
| 996 | |
| 997 | #[test] |
| 998 | fn test_repository_status_add_entry() { |
| 999 | let mut status = RepositoryStatus::new("dev".to_string(), None); |
| 1000 | |
| 1001 | status.add_entry(FileStatusEntry::new( |
| 1002 | PathBuf::from("file1.txt"), |
| 1003 | FileStatus::Modified, |
| 1004 | )); |
| 1005 | status.add_entry(FileStatusEntry::new( |
| 1006 | PathBuf::from("file2.txt"), |
| 1007 | FileStatus::Untracked, |
| 1008 | )); |
| 1009 | |
| 1010 | assert_eq!(status.total_count(), 2); |
| 1011 | assert!(!status.is_clean()); |
| 1012 | } |
| 1013 | |
| 1014 | #[test] |
| 1015 | fn test_repository_status_get() { |