MCPcopy Create free account
hub / github.com/argumentcomputer/ix / disabled_summary_is_empty

Function disabled_summary_is_empty

crates/kernel/src/perf.rs:376–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

enabledFunction · 0.85
record_whnf_hitMethod · 0.80
record_whnf_missMethod · 0.80

Tested by

no test coverage detected