code wiki / (root) / nx_gtm_svc_test.nx

nx_gtm_svc_test.nx

buildroot/runtime/nx_gtm_svc_test.nx

11615 B220 linesdepth 5pulls 13 transitivereach 0 importersview sourcekind gate/prooftopic gtm
docsdependenciesstructsconstsfunctions

about

nx_gtm_svc_test.nx -- gate for the GTM service facade. Drives the dispatcher exactly as an agent or a workflow stage would -- build an argv, call, read the JSON -- and checks the envelope, the routed values, structured errors, and the exit-code contract. It also proves the facade adds NO domain logic: the numbers it emits equal the numbers the libraries compute directly. expect_exit: 0 license_tier: ORIGINAL

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_service.nx nx_supp_ingredient.nx nx_supp_channel.nx nx_trial_ethics.nx nx_gtm_svc.nx nx_gtm_svc_test.nx

imports: nx_syscalls.nxnx_service.nxnx_supp_ingredient.nxnx_supp_channel.nxnx_trial_ethics.nxnx_gtm_svc.nx

imported by: nobody (leaf or entry point)

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

main nx_json_new 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 ↻ mk_argv sys_mmap ↻ gtm_dispatch nsvc_arg gtm_describe nsvc_ok_open nj_putc nj_kv_int nj_key nj_putstr nj_putc ↻ nj_puti nj_putc ↻ sys_mmap ↻ nj_comma nj_putc ↻ nj_kv_str nj_key ↻ nj_putstr ↻ nj_kv_bool nj_key ↻ nj_puts nj_putc ↻

structs

none

consts

none

functions

14func t_puts(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
15func t_putn(v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64 = v; if m < 0 { m = 0 - m; sys_write(1, "-" as *u8, 1) } let t: *u8 = sys_mmap(28); var k: i64 = 0; if m == 0 { t[0] = 48 as u8; k = 1 } while m > 0 { t[k] = (48 + (m % 10)) as u8; m = m / 10; k = k + 1 } var i: i64 = 0; while i < k { bb[i] = t[k - 1 - i]; i = i + 1 } sys_write(1, bb, k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
18func j_has(j: *NxJson, needle: *u8) -> i64
called by 1: main
42func mk_argv(a0: *u8, a1: *u8, a2: *u8, a3: *u8, a4: *u8, a5: *u8) -> *i64
called by 1: main calls 1: sys_mmap
53func main() -> i64