nx_https_redirect_test.nx
buildroot/runtime/nx_https_redirect_test.nx
about
nx_https_redirect_test.nx -- gate for fetcher upgrade F-1 (redirect logic).
Deterministic (canned responses, no network): proves (1) the 3xx status set,
(2) Location extraction (exact bytes), (3) case-insensitive header match,
(4) absent Location -> 0, (5) a non-redirect 200 is not followed.
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_https_redirect.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
| 11 | func nx_assert_eq(label: *u8, got: nx_int, want: nx_int, pass_n: *nx_int, fail_n: *nx_int) |
| 17 | func t_slen(s: *u8) -> nx_int { var n: nx_int = 0; while s[n] != 0 as u8 { n = n + 1 } return n } called by 1: main |
| 18 | func t_bytes_eq(a: *u8, b: *u8, n: nx_int) -> nx_int called by 1: main |
| 24 | func main() -> nx_exit |