()
| 269 | |
| 270 | #[test] |
| 271 | fn test_has_change() { |
| 272 | let (store, _temp) = create_test_store(); |
| 273 | |
| 274 | let change = create_test_change("Test has_change"); |
| 275 | let hash = store.save_change(&change).expect("Failed to save change"); |
| 276 | |
| 277 | // Should exist |
| 278 | assert!(store.has_change(&hash)); |
| 279 | |
| 280 | // Should not exist |
| 281 | let fake_hash = Hash::of(b"nonexistent"); |
| 282 | assert!(!store.has_change(&fake_hash)); |
| 283 | } |
| 284 | |
| 285 | #[test] |
| 286 | fn test_has_change_from_cache() { |
nothing calls this directly
no test coverage detected