()
| 335 | |
| 336 | #[test] |
| 337 | fn test_has_change() { |
| 338 | let (store, _temp) = create_test_store(); |
| 339 | |
| 340 | let change = create_test_change("Test has_change"); |
| 341 | let hash = store.save_change(&change).expect("Failed to save change"); |
| 342 | |
| 343 | // Should exist |
| 344 | assert!(store.has_change(&hash)); |
| 345 | |
| 346 | // Should not exist |
| 347 | let fake_hash = Hash::of(b"nonexistent"); |
| 348 | assert!(!store.has_change(&fake_hash)); |
| 349 | } |
| 350 | |
| 351 | #[test] |
| 352 | fn test_has_change_from_cache() { |
nothing calls this directly
no test coverage detected