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

Function attach_future

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

Source from the content-addressed store, hash-verified

80
81#[test]
82fn attach_future() {
83 let future = create_future()
84 .attach_opaque(PrintableA)
85 .attach_opaque_with(|| PrintableB(0))
86 .attach_opaque(AttachmentA)
87 .attach_opaque_with(|| AttachmentB);
88
89 let error = futures::executor::block_on(future);
90
91 let report = error.expect_err("Not an error");
92 test_messages(&report);
93 test_kinds(&report);
94}

Callers

nothing calls this directly

Calls 7

create_futureFunction · 0.85
PrintableBClass · 0.85
block_onFunction · 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