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

Function test_error_from_io

atomic-core/src/output/repo/repository/tests.rs:482–490  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

480
481 #[test]
482 fn test_error_from_io() {
483 let io_err = std::io::Error::other("test");
484 let err: MaterializeError<std::io::Error> = io_err.into();
485
486 match err {
487 MaterializeError::Io(_) => (),
488 _ => panic!("Expected Io variant"),
489 }
490 }
491
492 #[test]
493 fn test_error_from_pristine() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected