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

Function multiple_sources

libs/error-stack/tests/test_serialize.rs:44–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43#[test]
44fn multiple_sources() {
45 let _guard = prepare();
46
47 let mut report_a = create_report().attach(PrintableC(1)).expand();
48 let report_b = create_report().attach(PrintableC(2));
49
50 report_a.push(report_b);
51
52 let report_a = report_a
53 .attach(PrintableC(3))
54 .change_context(ContextA(2))
55 .attach(PrintableC(4));
56
57 assert_ron_snapshot!(report_a);
58}
59
60#[test]
61fn multiple_sources_at_root() {

Callers

nothing calls this directly

Calls 8

PrintableCClass · 0.85
ContextAClass · 0.85
expandMethod · 0.80
prepareFunction · 0.70
create_reportFunction · 0.70
pushMethod · 0.65
attachMethod · 0.45
change_contextMethod · 0.45

Tested by

no test coverage detected