()
| 579 | #[test] |
| 580 | #[cfg(nightly)] |
| 581 | fn hook_provider() { |
| 582 | let _guard = prepare(false); |
| 583 | |
| 584 | let report = create_report().change_context(ContextD { |
| 585 | code: 420, |
| 586 | reason: "Invalid User Input", |
| 587 | }); |
| 588 | |
| 589 | Report::install_debug_hook::<usize>(|value, context| { |
| 590 | context.push_body(format!("usize: {value}")); |
| 591 | }); |
| 592 | Report::install_debug_hook::<&'static str>(|value, context| { |
| 593 | context.push_body(format!("&'static str: {value}")); |
| 594 | }); |
| 595 | |
| 596 | assert_snapshot!(format!("{report:?}")); |
| 597 | } |
| 598 | |
| 599 | #[test] |
| 600 | fn charset_ascii() { |
nothing calls this directly
no test coverage detected