nx_blob_store_mcu_test.nx
buildroot/runtime/nx_blob_store_mcu_test.nx
about
nx_blob_store_mcu_test.nx -- smoke for MCU-tier blob_store variant.
Exercises:
1. Allocation + canary + initial state
2. Put + get roundtrip on a known sequence
3. DEDUP: same bytes twice -> same hash + count unchanged
4. Distinct bytes -> distinct hashes
5. has_blob positive + negative
6. SHA-256 determinism across two MCU stores
7. Bad-input gates (null bytes with len>0, negative len, null
out_hash, null hash on get, null out_buf, undersized buffer)
8. MCU-specific OVERSIZED GATE: blob > 256 bytes -> NX_BLOB_MCU_TOO_BIG
9. CAPACITY GATE: put 4 distinct + try 5th -> NX_BLOB_MCU_FULL
10. TAMPER detection: canary stomp -> ops refuse
11. Empty-blob roundtrip + dedup
12. Sealed-enum verdict gate
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_blob_store.nxnx_blob_store_mcu.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 _fill(buf: *u8, len: i64, seed: i64) -> i64 called by 1: main |
| 31 | func main() -> i64 |