2180b76a
test: regression tests for each conformance fix in this branch
Pins each fix locally so the bug is caught without the Docker conformance runner. Grouped by fix; multiple tests per fix because each fix touches several code paths (per scalar type, per shape). Fix 1 — varint 32-bit truncation (0c13fd7), 7 tests: int32 high-bits → 0, int32 sign-extend, uint32 low-32, sint32 zigzag after truncation, enum singular, packed-repeated int32 element-wise, repeated-scalar-selects-last after truncation. Fix 2 — wire types 6/7 reject (7442ea2), 5 tests: wt=6 known, wt=7 known, wt=6 unknown, wt=6 mid-stream after a valid field, positive control that wts 0/2/5 still parse. Fix 3 — WKT registry auto-register (50ed9b6), 6 tests: pb.lookup resolves all 11 WKT descriptors plus type-URL form; Any/Timestamp, Any/Duration, Any/Int32Value, Any/Struct, Any/user-type all round-trip via JSON input. Fix 4 — skip_field bounds checks (1712192), 5 tests: truncated I64, truncated I32, truncated LEN fast path, truncated LEN multi-byte length, complete unknown round-trips intact. Fix 5 — drop unknown enum names in JSON (a2f1209), 5 tests: unknown name elided in singular, dropped from repeated, dropped from map value, numeric unknown preserved, numeric-string unknown preserved.
Eugene Blikh <bigbes@gmail.com> — 2026-05-15 21:23:31 UTC
Commit 2180b76a781b1f114fbd1d634fe37c57788387df —
view raw patch
Parent(s):
a2f1209d
| File | Status | + | − |
|---|---|---|---|
test/conformance_test.lua
|
M | +306 |