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

Function test_from_anyhow_error

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

Source from the content-addressed store, hash-verified

1255
1256 #[test]
1257 fn test_from_anyhow_error() {
1258 let anyhow_err = anyhow::anyhow!("something went wrong");
1259 let cli_err: CliError = anyhow_err.into();
1260 match cli_err {
1261 CliError::Internal(_) => {}
1262 _ => panic!("Expected Internal variant"),
1263 }
1264 }
1265
1266 // -------------------------------------------------------------------------
1267 // Edge Case Tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected