()
| 502 | |
| 503 | #[test] |
| 504 | fn test_is_io() { |
| 505 | let io_err: FormatError = |
| 506 | std::io::Error::new(std::io::ErrorKind::BrokenPipe, "broken").into(); |
| 507 | assert!(io_err.is_io()); |
| 508 | |
| 509 | let other = FormatError::HashTableFull; |
| 510 | assert!(!other.is_io()); |
| 511 | } |
| 512 | |
| 513 | #[test] |
| 514 | fn test_is_serialization() { |
nothing calls this directly
no outgoing calls
no test coverage detected