()
| 512 | |
| 513 | #[test] |
| 514 | fn test_is_serialization() { |
| 515 | // Only postcard errors are serialization errors |
| 516 | let err = FormatError::Compress("x".into()); |
| 517 | assert!(!err.is_serialization()); |
| 518 | |
| 519 | let io_err: FormatError = std::io::Error::other("x").into(); |
| 520 | assert!(!io_err.is_serialization()); |
| 521 | } |
| 522 | |
| 523 | #[test] |
| 524 | fn test_is_compression() { |
nothing calls this directly
no outgoing calls
no test coverage detected