()
| 379 | |
| 380 | #[test] |
| 381 | fn test_io_error() { |
| 382 | let err = OutputError::io(std::io::Error::new( |
| 383 | std::io::ErrorKind::NotFound, |
| 384 | "file not found", |
| 385 | )); |
| 386 | |
| 387 | assert!(err.is_io()); |
| 388 | assert!(!err.is_not_found()); |
| 389 | assert!(err.to_string().contains("I/O error")); |
| 390 | } |
| 391 | |
| 392 | #[test] |
| 393 | fn test_working_copy_error() { |
nothing calls this directly
no outgoing calls
no test coverage detected