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

Function attach_result

libs/error-stack/tests/test_attach_printable.rs:48–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47#[test]
48fn attach_result() {
49 let error = create_error()
50 .attach(PrintableA(0))
51 .attach_with(|| PrintableB(0))
52 .attach(ContextA(0))
53 .attach_with(|| ContextB(0));
54
55 let report = error.expect_err("Not an error");
56 test_messages(&report);
57 test_kinds(&report);
58}
59
60#[test]
61fn attach_future() {

Callers

nothing calls this directly

Calls 9

create_errorFunction · 0.85
PrintableAClass · 0.85
PrintableBClass · 0.85
ContextAClass · 0.85
ContextBClass · 0.85
test_messagesFunction · 0.70
test_kindsFunction · 0.70
attach_withMethod · 0.45
attachMethod · 0.45

Tested by

no test coverage detected