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

Function multiline_context

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

Source from the content-addressed store, hash-verified

309
310 #[test]
311 fn multiline_context() {
312 let _guard = prepare(false);
313
314 let report = Report::new(ContextC)
315 .change_context(ContextC)
316 .attach(PrintableB(0))
317 .attach_opaque(AttachmentB)
318 .change_context(ContextB(0))
319 .attach("printable C");
320
321 assert_snapshot!(format!("{report:#?}"));
322 }
323
324 #[test]
325 fn multiline() {

Callers

nothing calls this directly

Calls 6

PrintableBClass · 0.85
ContextBClass · 0.85
prepareFunction · 0.70
attachMethod · 0.45
change_contextMethod · 0.45
attach_opaqueMethod · 0.45

Tested by

no test coverage detected