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

Function attach_result

libs/error-stack/tests/test_attach.rs:69–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68#[test]
69fn attach_result() {
70 let error = create_error()
71 .attach_opaque(PrintableA)
72 .attach_opaque_with(|| PrintableB(0))
73 .attach_opaque(AttachmentA)
74 .attach_opaque_with(|| AttachmentB);
75
76 let report = error.expect_err("Not an error");
77 test_messages(&report);
78 test_kinds(&report);
79}
80
81#[test]
82fn attach_future() {

Callers

nothing calls this directly

Calls 6

create_errorFunction · 0.85
PrintableBClass · 0.85
test_messagesFunction · 0.70
test_kindsFunction · 0.70
attach_opaque_withMethod · 0.45
attach_opaqueMethod · 0.45

Tested by

no test coverage detected