nx_print_session_test.nx
buildroot/runtime/nx_print_session_test.nx
about
nx_print_session_test.nx -- end-to-end push-and-play test.
One function call, full bulletproof pipeline.
Closed-form invariants:
(a) SAFE case: tetrahedron + Qidi + PLA + 0.2mm layer + 0.4mm
line + 20% infill -> NX_SESSION_OK, emitter populated,
n_layers >= 4, emitter.len > 500 bytes.
(b) REFUSED case 1: 500mm tetrahedron exceeds Qidi build volume
-> NX_SESSION_REFUSED, preflight_reason == MESH_TOO_LARGE,
NO emitter (or empty), n_layers == 0.
(c) REFUSED case 2: non-manifold mesh (T3 removed) -> REFUSED
+ NOT_MANIFOLD reason.
(d) REFUSED case 3: bad layer height (0.5mm on 0.4mm nozzle) ->
REFUSED + LAYER_TOO_THICK reason.
(e) Verdict names non-NULL.
expect_exit: 0
license_tier: ORIGINAL
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_mesh.nxnx_machine_graph.nxnx_material_profile.nxnx_preflight.nxnx_gcode_emit.nxnx_print_session.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
| 28 | const Q14: i64 = 16384 |
functions
| 30 | func main() -> i64 |