()
| 386 | /// context, are still handled gracefully. |
| 387 | #[test] |
| 388 | fn sources_transparent() { |
| 389 | let _guard = prepare(false); |
| 390 | |
| 391 | let report = { |
| 392 | let mut report = create_report().attach(PrintableA(1)).expand(); |
| 393 | |
| 394 | report.append({ |
| 395 | let mut report = create_report().attach(PrintableB(2)).expand(); |
| 396 | |
| 397 | report.push(create_report().attach(PrintableB(3))); |
| 398 | |
| 399 | report.attach(PrintableA(4)) |
| 400 | }); |
| 401 | |
| 402 | report |
| 403 | .attach_opaque(AttachmentA(1)) |
| 404 | .change_context(ContextA(2)) |
| 405 | .attach_opaque(AttachmentB(2)) |
| 406 | }; |
| 407 | |
| 408 | assert_snapshot!(format!("{report:?}")); |
| 409 | } |
| 410 | |
| 411 | #[test] |
| 412 | fn complex() { |
nothing calls this directly
no test coverage detected