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

Function linear_ext

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

Source from the content-addressed store, hash-verified

281
282 #[test]
283 fn linear_ext() {
284 let _guard = prepare(false);
285
286 let report = create_report()
287 .attach(PrintableA(0))
288 .attach_opaque(AttachmentA)
289 .attach_opaque(AttachmentB)
290 .change_context(ContextA(0))
291 .attach(PrintableB(0))
292 .attach_opaque(AttachmentB)
293 .change_context(ContextB(0))
294 .attach("printable C");
295
296 assert_snapshot!(format!("{report:#?}"));
297 }
298
299 #[derive(Debug)]
300 struct ContextC;

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected