Skip to content

test(reader): cover DecimalEncodingDecoder (was untested)#84

Merged
dfa1 merged 1 commit into
mainfrom
test/decimal-decoder-coverage
Jun 20, 2026
Merged

test(reader): cover DecimalEncodingDecoder (was untested)#84
dfa1 merged 1 commit into
mainfrom
test/decimal-decoder-coverage

Conversation

@dfa1

@dfa1 dfa1 commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Add DecimalEncodingDecoderTest: accepts/encodingId, every DecimalType width
(1/2/4/8/16/32 bytes), unknown values_type, buffer-too-small, and the
missing/empty/invalid metadata guards. 100% line + branch.

values_type is encoded as an explicit field-1 varint so the proto3 default (0)
is present on the wire (DecimalMetadata(0).encode() omits it → reads as empty).

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

Add DecimalEncodingDecoderTest: accepts/encodingId, every DecimalType width
(1/2/4/8/16/32 bytes), unknown values_type, buffer-too-small, and the
missing/empty/invalid metadata guards. 100% line + branch.

values_type is encoded as an explicit field-1 varint so the proto3 default (0)
is present on the wire (DecimalMetadata(0).encode() omits it → reads as empty).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit b86d689 into main Jun 20, 2026
6 checks passed
@dfa1 dfa1 deleted the test/decimal-decoder-coverage branch June 20, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant