nx_budget_test.nx
buildroot/runtime/nx_budget_test.nx
about
nx_budget_test.nx -- smoke for nx_budget.
Exercises:
- construction with five resource ceilings
- request within ceiling grants and decrements headroom
- request beyond ceiling denies without state mutation
- release returns headroom; underflow clamps to 0
- pressure_q10 reports correct ratio
- bad kind returns BAD_KIND verdict
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_budget.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
| 14 | func main() -> i64 |