6471b5d1
c_runtime: repeated string + repeated message acceptance at 1KB/10KB/100KB (ra6 3f)
The repeated string and repeated message (self-reference) dispatch landed implicitly with ra6 3e — encode_repeated_field already routes PB_KIND_MESSAGE through encode_submessage_field and unpacked string/bytes through encode_one_field, and decode_body's cached list_stack_idx[] handles every repeated element type. What was missing was the formal 3f acceptance: explicit-size byte-equality at 1KB / 10KB / 100KB for Person.emails and Person.friends, against mode=full. Adds 4 acceptance tests (encode + decode × emails + friends), each running both codegen modes. Sizing pins each case into a ±30% band around the named target so a future schema/wire shift fails loudly instead of silently drifting. bd-exy
Eugene Blikh <bigbes@gmail.com> — 2026-05-23 11:07:50 UTC
Commit 6471b5d160a4b8b92995844f37b9909b2d9cfcf6 —
view raw patch
Parent(s):
e875519e
| File | Status | + | − |
|---|---|---|---|
.beads/issues.jsonl
|
M | +1 | -1 |
test/c_runtime_decode_test.lua
|
M | +43 | |
test/c_runtime_encode_test.lua
|
M | +81 |