code wiki / (root) / nx_iot_local_tuya_v33_test.nx

nx_iot_local_tuya_v33_test.nx

buildroot/runtime/nx_iot_local_tuya_v33_test.nx

9112 B208 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic iot
docsdependenciesstructsconstsfunctions

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

nx_syscalls_x86_64.nx nx_iot_local_tuya_v33.nx nx_iot_local_tuya_v33_test.nx

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

main nx_tuya_crc32 nx_tuya_decode_verdict_is_ nx_tuya_frame_encode nx_tuya_write_be32 nx_tuya_crc32 ↻ nx_tuya_read_be32 nx_tuya_frame_decode nx_tuya_read_be32 ↻ nx_tuya_crc32 ↻ nx_tuya_write_be32 ↻

structs

none

consts

none

functions

29func main() -> i64