Commit Graph
1 Commits
Author SHA1 Message Date
DawnMagnet 62f73f51a1 Add comprehensive tests for bitserial serialization and deserialization
- Implemented tests for unsigned and signed integers with various bit widths.
- Added tests for boolean fields, float and double types including special values.
- Created tests for nested structs and fixed-size arrays with natural and custom bit widths.
- Included tests for hex and byte conversions, ensuring correct serialization and deserialization.
- Validated error handling for buffer size issues and hex parsing errors.
- Demonstrated a real protocol example with an IPv4 header.
- Conducted a comprehensive stress test covering all scalar types, nested structures, and arrays.
- Introduced a zero-allocation path for user-provided buffers.
- Added constexpr tests for compile-time serialization.
2026-04-28 21:07:25 +08:00