()
| 374 | |
| 375 | #[test] |
| 376 | fn disabled_summary_is_empty() { |
| 377 | // Default test environment doesn't set IX_PERF_COUNTERS, so summary() |
| 378 | // should return an empty string regardless of recorded counts. |
| 379 | let p = PerfCounters::default(); |
| 380 | p.record_whnf_hit(); |
| 381 | p.record_whnf_miss(); |
| 382 | if !enabled() { |
| 383 | assert_eq!(p.summary(), ""); |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | #[test] |
| 388 | fn rate_formatting_handles_zero_probes() { |
nothing calls this directly
no test coverage detected