code wiki / (root) / nx_iot_clock_master_test.nx

nx_iot_clock_master_test.nx

buildroot/runtime/nx_iot_clock_master_test.nx

9491 B217 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic iot
docsdependenciesstructsconstsfunctions

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

nx_syscalls_x86_64.nx nx_iot_clock_master.nx nx_iot_clock_master_test.nx

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

main nx_iot_tick_verdict_is_val nx_iot_tick_min nx_iot_clock_init nx_iot_clock_tick nx_iot_clock_schedule nx_iot_clock_peek_next nx_iot_clock_drain_due nx_iot_tick_min ↻ nx_iot_clock_cancel

structs

none

consts

none

functions

34func main() -> i64