mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-22 23:10:38 +00:00
Announce interop tests: 1. testAnnouncePack — 148-byte announce wire format 2. testAnnounceUnpack — verify field offsets + signature validation 3. testAnnounceWithRatchet — 180-byte announce with 32-byte ratchet key 4. testAppDataExtraction — msgpack and UTF-8 app_data formats 5. testDestHashFromIdentity — delivery + propagation dest hash computation 6. testNameHashes — lxmf.delivery, lxmf.propagation, nomadnetwork.node Protocol edge case tests: 1. testPacketFlagCombinations — all critical flag byte values 2. testHashMasking — Header1 and Header2 produce same packet hash 3. testHopsDoNotAffectHash — hops excluded from hash computation 4. testMTUBoundary — 500 byte MTU, header sizes (19/35) 5. testIdentityHashLength — 16 bytes truncated, 64 bytes pubkey 6. testEncryptDecryptRoundtrip — ECIES token encrypt/decrypt All 12 tests pass on native17.
This directory is intended for PlatformIO Test Runner and project tests. Unit Testing is a software testing method by which individual units of source code, sets of one or more MCU program modules together with associated control data, usage procedures, and operating procedures, are tested to determine whether they are fit for use. Unit testing finds problems early in the development cycle. More information about PlatformIO Unit Testing: - https://docs.platformio.org/en/latest/advanced/unit-testing/index.html