MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_io_error

Function test_io_error

atomic-core/src/output/repo/error.rs:381–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected