()
| 531 | |
| 532 | #[test] |
| 533 | fn test_error_is_corruption() { |
| 534 | let err = ChangeStoreError::HashMismatch { |
| 535 | expected: "ABCDEF".to_string(), |
| 536 | computed: "123456".to_string(), |
| 537 | }; |
| 538 | assert!(err.is_corruption()); |
| 539 | |
| 540 | let err = ChangeStoreError::NotFound { |
| 541 | hash: "ABCDEF".to_string(), |
| 542 | }; |
| 543 | assert!(!err.is_corruption()); |
| 544 | } |
| 545 | |
| 546 | #[test] |
| 547 | fn test_error_display() { |
nothing calls this directly
no outgoing calls
no test coverage detected