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

Function linear

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

Source from the content-addressed store, hash-verified

264
265 #[test]
266 fn linear() {
267 let _guard = prepare(false);
268
269 let report = create_report()
270 .attach(PrintableA(0))
271 .attach_opaque(AttachmentA)
272 .attach_opaque(AttachmentB)
273 .change_context(ContextA(0))
274 .attach(PrintableB(0))
275 .attach_opaque(AttachmentB)
276 .change_context(ContextB(0))
277 .attach("printable C");
278
279 assert_snapshot!(format!("{report:?}"));
280 }
281
282 #[test]
283 fn linear_ext() {

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