code wiki / _hdl_build / nx_tpl_site_gate.nx

nx_tpl_site_gate.nx

buildroot/runtime/_hdl_build/nx_tpl_site_gate.nx

4484 B83 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic tpl
docsdependenciesstructsconstsfunctions

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

nx_gate.nx nx_tpl_site.nx nx_tpl_site_gate.nx

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

main ts_ingest ts_collect sys_getdents64 dirent_type dirent_name dirent_reclen ti_suffix ti_len ti_lc ti_cat ti_puts ti_len ↻ ts_sort ti_cat ↻ ss_readall sys_openat_rd sys_lseek sys_mmap sys_read sys_close ti_classify ti_has ti_find_ci ti_len ↻ ti_lc ↻ ti_count_ci ti_len ↻ ti_lc ↻ ti_seq ti_find_ci ↻ ti_cta_off ti_find_ci ↻ ti_cat ↻ ts_edges ti_find_ci ↻ ts_page_idx ts_nameeq ti_arch_name ti_cat ↻

structs

none

consts

none

functions

10func 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
11func sg2_has(hay: *u8, hn: i64, needle: *u8) -> i64
called by 1: main calls 1: sg2_slen
19func 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 }
called by 1: main calls 1: gw
21func main() -> i64