code wiki / _hdl_build / nx_search_snip_base_20260912.nx

nx_search_snip_base_20260912.nx

buildroot/runtime/_hdl_build/nx_search_snip_base_20260912.nx

36914 B485 linesdepth 6pulls 16 transitivereach 0 importersview sourcekind tooltopic search
docsdependenciesstructsconstsfunctions

about

nx_docportal_search_serve_gate.nx -- GATE for R2 (dss_serve). Writes a test PUBLIC shard, then feeds crafted GET /search requests to dss_serve and asserts the rendered branded page: 200 + Content-Length, result count, the hit's text present, empty-query prompt, no-match=0, and XSS-escaping of the echoed query (defensive at the boundary). All over the REAL sovereign seg_store path, no tsv. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_docportal_search_serve.nx nx_g_puts_lib.nx nx_gate_verdict.nx nx_search_snip_base_20260912.n

imports: nx_docportal_search_serve.nxnx_g_puts_lib.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main g_puts sys_write ss_begin ss_begin_cap sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ss_add ss_add2 ss_w32 ss_len g_strlen ss_commit ss_segid_ok ss_commit_body ss_segid_ok ↻ sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg ss_sr_new sys_mmap ↻ ss_segid_ok ↻ ss_sr_map sys_mmap ↻

structs

none

consts

none

functions

16func g_strlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: g_containsmain
17func g_num(v: i64) -> i64
27func g_contains(hay: *u8, hn: i64, needle: *u8) -> i64
called by 1: main calls 1: g_strlen
40func g_streq(a: *u8, b: *u8) -> i64
called by 1: main
47func g_check(name: *u8, cond: i64, ctr: *i64) -> i64 { return gv_check(name, cond, ctr) }
called by 1: main calls 1: gv_check
48func g_check_unused(name: *u8, cond: i64, pass: *i64, total: *i64) -> i64
calls 1: g_puts
55func main(argc: i64, argv: *i64) -> i64