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

Function normal

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

Source from the content-addressed store, hash-verified

6
7#[test]
8fn normal() {
9 let report = create_report()
10 .attach(PrintableA(0))
11 .attach_opaque(AttachmentA)
12 .change_context(ContextA(0))
13 .attach(PrintableB(0))
14 .attach_opaque(AttachmentB)
15 .change_context(ContextB(0));
16
17 assert_eq!(report.to_string(), "context B");
18}
19
20#[test]
21fn extended() {

Callers 1

runMethod · 0.85

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