()
| 410 | |
| 411 | #[test] |
| 412 | fn complex() { |
| 413 | let _guard = prepare(false); |
| 414 | |
| 415 | let mut report = create_report().attach(PrintableA(0)).expand(); |
| 416 | report.append({ |
| 417 | let mut report = create_report().attach(PrintableB(1)).expand(); |
| 418 | |
| 419 | report.push( |
| 420 | create_report() |
| 421 | .attach_opaque(AttachmentB(0)) |
| 422 | .attach_opaque(AttachmentA(1)) |
| 423 | .attach(PrintableB(1)), |
| 424 | ); |
| 425 | |
| 426 | report.attach_opaque(AttachmentA(2)).attach("Test") |
| 427 | }); |
| 428 | |
| 429 | // force the generation of a tree node |
| 430 | let report = report.change_context(ContextA(2)).attach(PrintableA(2)); |
| 431 | |
| 432 | assert_snapshot!(format!("{report:?}")); |
| 433 | } |
| 434 | |
| 435 | #[test] |
| 436 | fn hook() { |
nothing calls this directly
no test coverage detected