nx_bench_census_gate.nx
buildroot/runtime/nx_bench_census_gate.nx
about
nx_bench_census_gate.nx -- gates the benchmark-coverage census on in-memory fixtures (no file I/O):
5 live tools; registry grades A=PARITY B=EXCEED C=GAP D=UNMEASURED, E absent. Asserts the census
counts + coverage permille exactly (GAP counts as graded; UNMEASURED-row and no-row both = debt).
Exit 0 only on all-PASS. license_tier: ORIGINAL expect_exit: 0
dependencies 1 imports · 0 importers
imports: nx_bench_census_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 7 | const GATE_CHECKS: i64 = 6 |
| 8 | const FIX_LIVE: i64 = 5 // tools in the allowlist fixture |
| 9 | const FIX_GRADED: i64 = 3 // A(PARITY) B(EXCEED) C(GAP) |
| 10 | const FIX_EXCEED: i64 = 1 // B |
| 11 | const FIX_GAP: i64 = 1 // C |
| 12 | const FIX_UNMEAS: i64 = 2 // D(UNMEASURED row) + E(no row) |
| 13 | const FIX_COV: i64 = 600 // 3/5 * 1000 |
| 14 | const V_COUNTS_BYTES: i64 = 64 // counts array = 8 i64 slots |
functions
| 16 | func bg_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 17 | func bg_check(name: *u8, ok: i64, pass: *i64) -> i64 |
| 23 | func main(argc: i64, argv: *i64) -> i64 |