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

Function extended

libs/error-stack/tests/test_display.rs:21–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20#[test]
21fn extended() {
22 let report = create_report()
23 .attach(PrintableA(0))
24 .attach_opaque(AttachmentA)
25 .change_context(ContextA(0))
26 .attach(PrintableB(0))
27 .attach_opaque(AttachmentB)
28 .change_context(ContextB(0));
29
30 assert_eq!(format!("{report:#}"), "context B: context A: root error");
31}

Callers

nothing calls this directly

Calls 8

PrintableAClass · 0.85
ContextAClass · 0.85
PrintableBClass · 0.85
ContextBClass · 0.85
create_reportFunction · 0.70
change_contextMethod · 0.45
attach_opaqueMethod · 0.45
attachMethod · 0.45

Tested by

no test coverage detected