nx_iot_local_tuya_v33_test.nx
buildroot/runtime/nx_iot_local_tuya_v33_test.nx
about
nx_iot_local_tuya_v33_test.nx -- end-to-end smoke for the Tuya
v3.3 frame envelope primitive.
Coverage:
- CRC32 KAT against the canonical "123456789" -> 0xCBF43926
- CRC32 zero-length corner case
- sealed-enum decode verdict validity gate
- frame encode + decode roundtrip with a varied payload
- cmd / seq survival across roundtrip
- encode: out_cap too small -> -1
- decode: truncated buffer -> BUF_TOO_SMALL
- decode: corrupted header sentinel -> BAD_HEADER
- decode: corrupted tail sentinel -> BAD_TAIL
- decode: tampered CRC -> BAD_CRC
- decode: tampered payload (CRC mismatches) -> BAD_CRC
- decode: length field below minimum -> BAD_LEN
expect_exit: 0
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls_x86_64.nxnx_iot_local_tuya_v33.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
| 29 | func main() -> i64 |