code wiki / _hdl_build / nx_ims_page_selftest.nx

nx_ims_page_selftest.nx

buildroot/runtime/_hdl_build/nx_ims_page_selftest.nx

3084 B54 linesdepth 10pulls 14 transitivereach 0 importersview sourcekind tooltopic ims
docsdependenciesstructsconstsfunctions

about

nx_ims_page_selftest.nx -- smoke test for the reusable generator nx_ims_page. Renders a throwaway page for an EXISTING reachable slug ("nist_stem") so the walk furniture has a real wiki_links.tsv row to read, writes it to /tmp, and asserts the emitted bytes carry the furniture markers + the type label. NOT published. Proves the generator is data-driven (reads wiki_links.tsv + ims_typemap.tsv) and reusable. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_ims_page.nx nx_syscalls.nx nx_ims_page_selftest.nx

imports: nx_ims_page.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sh_corpus_store sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_wiki_doc_store_init sys_mmap ↻ nx_wiki_doc_store_add sys_mmap ↻ nx_wib_pool_alloc sys_mmap ↻ ip_render sys_mmap ↻ sh_links_load sys_mmap ↻ ncfg_open ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 ssc_retire_handle sh_wikilinks_prefix ncfg_count sys_mmap ↻ ncfg_count_key ss_hget sys_mmap ↻ ss_idx_find ss_r32 ss_len ss_kcmp

structs

none

consts

9const K_MAGIC_1781800000: i64 = 1781800000

functions

11func st_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
12func st_num(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
21func st_has(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main
34func main() -> i64