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

Function sources

libs/error-stack/tests/test_debug.rs:351–367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

349 /// This should demonstrate that we're able to generate with multiple groups at the same time.
350 #[test]
351 fn sources() {
352 let _guard = prepare(false);
353
354 let mut root1 = create_report().attach(PrintableA(1)).expand();
355 let root2 = create_report().attach(PrintableB(2));
356 let root3 = create_report().attach(PrintableB(3));
357
358 root1.push(root2);
359 root1.push(root3);
360
361 let report = root1
362 .attach_opaque(AttachmentA(1))
363 .change_context(ContextA(2))
364 .attach_opaque(AttachmentB(2));
365
366 assert_snapshot!(format!("{report:?}"));
367 }
368
369 /// Generate the `Debug` for:
370 ///

Callers

nothing calls this directly

Calls 12

PrintableAClass · 0.85
PrintableBClass · 0.85
AttachmentAClass · 0.85
ContextAClass · 0.85
AttachmentBClass · 0.85
expandMethod · 0.80
prepareFunction · 0.70
create_reportFunction · 0.70
pushMethod · 0.65
attachMethod · 0.45
attach_opaqueMethod · 0.45
change_contextMethod · 0.45

Tested by

no test coverage detected