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

Function test_from_io_error

atomic-cli/src/error.rs:1247–1254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1245
1246 #[test]
1247 fn test_from_io_error() {
1248 let io_err = std::io::Error::new(std::io::ErrorKind::PermissionDenied, "access denied");
1249 let cli_err: CliError = io_err.into();
1250 match cli_err {
1251 CliError::Io(_) => {}
1252 _ => panic!("Expected Io variant"),
1253 }
1254 }
1255
1256 #[test]
1257 fn test_from_anyhow_error() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected