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

Function attach_future

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

Source from the content-addressed store, hash-verified

59
60#[test]
61fn attach_future() {
62 let future = create_future()
63 .attach(PrintableA(0))
64 .attach_with(|| PrintableB(0))
65 .attach(ContextA(0))
66 .attach_with(|| ContextB(0));
67
68 let error = futures::executor::block_on(future);
69
70 let report = error.expect_err("Not an error");
71 test_messages(&report);
72 test_kinds(&report);
73}

Callers

nothing calls this directly

Calls 10

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

Tested by

no test coverage detected