()
| 1261 | |
| 1262 | #[test] |
| 1263 | fn test_repository_status_new() { |
| 1264 | let merkle = Merkle::of(b"test state"); |
| 1265 | let status = RepositoryStatus::new("main".to_string(), Some(merkle)); |
| 1266 | |
| 1267 | assert_eq!(status.view(), "main"); |
| 1268 | assert_eq!(status.state(), Some(&merkle)); |
| 1269 | assert_eq!(status.total_count(), 0); |
| 1270 | assert!(status.is_clean()); |
| 1271 | } |
| 1272 | |
| 1273 | #[test] |
| 1274 | fn test_repository_status_add_entry() { |
nothing calls this directly
no outgoing calls
no test coverage detected