()
| 476 | |
| 477 | #[test] |
| 478 | fn hook_multiple() { |
| 479 | let _guard = prepare(false); |
| 480 | |
| 481 | let report = create_report().attach_opaque(1_u32).attach_opaque(2_u64); |
| 482 | |
| 483 | Report::install_debug_hook::<u32>(|_, context| { |
| 484 | context.push_body("unsigned 32bit integer"); |
| 485 | }); |
| 486 | Report::install_debug_hook::<u64>(|_, context| { |
| 487 | context.push_body("unsigned 64bit integer"); |
| 488 | }); |
| 489 | |
| 490 | assert_snapshot!(format!("{report:?}")); |
| 491 | } |
| 492 | |
| 493 | #[test] |
| 494 | fn hook_decr() { |
nothing calls this directly
no test coverage detected