nx_iot_clock_master_test.nx
buildroot/runtime/nx_iot_clock_master_test.nx
about
nx_iot_clock_master_test.nx -- end-to-end smoke for the clock-
master atomic-scene scheduler.
S-class invariants exercised:
S0 -- determinism: same input produces same drained order
S3 -- atomicity: drain_due returns ALL entries due in one call
S7 -- sealed-enum verdicts: every operation reports a verdict
Coverage:
- tick verdict validity gate (full sealed enum)
- init writes a coherent state
- tick_advance: no-advance when wall-ms hasn't moved
- tick_advance: single-tick on exactly period_ms elapsed
- tick_advance: multi-tick on multiple periods elapsed
- schedule: into empty queue lands at pos 0
- schedule: sorted-by-target_tick insertion preserves order
- schedule: FIFO within equal target_tick
- schedule: overflow when queue saturated
- drain_due: nothing when no entries due
- drain_due: all-or-nothing atomic dispatch in target-tick order
- drain_due: surviving entries shift left correctly
- cancel: removes a specific entry by id
- cancel: not-found verdict on miss
- peek_next: empty queue returns -1 + NOT_FOUND
- peek_next: populated queue returns head target_tick
expect_exit: 0
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls_x86_64.nxnx_iot_clock_master.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
| 34 | func main() -> i64 |