()
| 434 | |
| 435 | #[test] |
| 436 | fn hook() { |
| 437 | let _guard = prepare(false); |
| 438 | |
| 439 | let report = create_report().attach_opaque(2_u32); |
| 440 | |
| 441 | Report::install_debug_hook::<u32>(|_, context| { |
| 442 | context.push_body("unsigned 32bit integer"); |
| 443 | }); |
| 444 | |
| 445 | assert_snapshot!(format!("{report:?}")); |
| 446 | } |
| 447 | |
| 448 | #[test] |
| 449 | fn hook_context() { |
no test coverage detected