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

Function report

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

Source from the content-addressed store, hash-verified

57
58#[test]
59fn report() {
60 let report = io_error().map_err(Report::new).expect_err("not an error");
61 assert!(report.contains::<io::Error>());
62 assert_eq!(report.current_context().kind(), io::ErrorKind::Other);
63}
64
65#[test]
66fn error() {

Callers

nothing calls this directly

Calls 2

io_errorFunction · 0.85
map_errMethod · 0.80

Tested by

no test coverage detected