nx_print_response_test.nx
buildroot/runtime/nx_print_response_test.nx
about
nx_print_response_test.nx -- exercise the response-mapper +
pause/cancel request builders.
Closed-form invariants:
(a) NONE -> NONE response, no bytes written
(b) STUCK / FLOW / RUNAWAY / BED / HOTEND / RUNOUT -> PAUSE
(c) CHAMBER -> NOTIFY (no bytes written)
(d) Z_BACKWARD / LAYER_SHIFT -> HARD_STOP (cancel)
(e) Built pause request contains "POST /printer/print/pause"
(f) Built cancel request contains "POST /printer/print/cancel"
(g) Built request contains Host header + Content-Length: 0
(h) Buffer overflow returns -1
expect_exit: 0
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_print_runtime_monitor.nxnx_print_response.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
| 22 | func contains_substring(hay: *u8, hay_len: i64, needle: *u8) -> i64 called by 1: main |
| 40 | func main() -> i64 |