MCPcopy Create free account
hub / github.com/hashintel/hash / into_report

Function into_report

libs/error-stack/tests/test_conversion.rs:90–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89#[test]
90fn into_report() {
91 let report = io_error().map_err(Report::from).expect_err("not an error");
92 assert!(report.contains::<io::Error>());
93 assert_eq!(report.current_context().kind(), io::ErrorKind::Other);
94}
95
96fn returning_boxed_error() -> Result<(), Box<dyn core::error::Error + Send + Sync>> {
97 io_error().attach_opaque(10_u32)?;

Callers

nothing calls this directly

Calls 2

io_errorFunction · 0.85
map_errMethod · 0.80

Tested by

no test coverage detected