code wiki / _hdl_build / nx_tpl_site_gate.nx
nx_tpl_site_gate.nx
buildroot/runtime/_hdl_build/nx_tpl_site_gate.nx
about
nx_tpl_site_gate.nx -- referee for R-WHOLESITE (nx_tpl_site). Fixture = the REAL emitted andelinwest site
(web_assets/sites/andelinwest: index + 4 practice pages + shared nav, produced by nx_site_build R1). Proves:
a complete multi-page site collapses to ONE content-addressed site-graph record (pages + archetypes + seqs +
NAV EDGES incl subdir pages), idempotent re-run, budget trap fires, and an empty dir stores nothing (no
fabricated site). GREEN iff 7/7. Wrapper pre-cleans /tmp/sitecorpus_gate{,2} + /tmp/empty_site.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_gate.nxnx_tpl_site.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
| none |
functions
| 10 | func sg2_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: sg2_has |
| 11 | func sg2_has(hay: *u8, hn: i64, needle: *u8) -> i64 |
| 19 | func sg2_row(name: *u8, ok: i64) -> i64 { gw(" " as *u8); gw(name); if ok==1 { gw(" PASS\n" as *u8) } else { gw(" FAIL\n" as *u8) } return 0 } |
| 21 | func main() -> i64 |