()
| 520 | |
| 521 | #[test] |
| 522 | fn test_error_is_not_found() { |
| 523 | let err = ChangeStoreError::NotFound { |
| 524 | hash: "ABCDEF".to_string(), |
| 525 | }; |
| 526 | assert!(err.is_not_found()); |
| 527 | |
| 528 | let err = ChangeStoreError::Io(std::io::Error::other("test")); |
| 529 | assert!(!err.is_not_found()); |
| 530 | } |
| 531 | |
| 532 | #[test] |
| 533 | fn test_error_is_corruption() { |
nothing calls this directly
no outgoing calls
no test coverage detected