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

Function test_error_from_io

atomic-core/src/output/repo/file.rs:1555–1563  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1553
1554 #[test]
1555 fn test_error_from_io() {
1556 let io_err = std::io::Error::other("test error");
1557 let err: FileOutputError<std::io::Error> = io_err.into();
1558
1559 match err {
1560 FileOutputError::Io(_) => (),
1561 _ => panic!("Expected Io variant"),
1562 }
1563 }
1564
1565 #[test]
1566 fn test_error_from_pristine() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected