Skip to content

Fix InlineCodeUnits byte size - #95

Merged
quinnj merged 1 commit into
mainfrom
fix/codeunits-sizeof
Sep 4, 2026
Merged

quinnj merged 1 commit into
mainfrom
fix/codeunits-sizeof

Conversation

@quinnj

@quinnj quinnj commented Sep 4, 2026

Copy link
Copy Markdown
Member

sizeof(codeunits(x)) currently reports the fixed storage size in 2.0 instead of the logical byte count. CSV.write uses this value and writes padding plus the capacity byte.

This defines the expected byte size for InlineCodeUnits and adds a regression test.

Validated with the full InlineStrings suite, a focused CSV.write round trip, and the OMOPVocabMapper suite.

Co-authored by Codex

@codecov

codecov Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.46%. Comparing base (638139c) to head (939d535).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   91.44%   91.46%   +0.01%     
==========================================
  Files           5        5              
  Lines         725      726       +1     
==========================================
+ Hits          663      664       +1     
  Misses         62       62              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@quinnj
quinnj merged commit cbf1f72 into main Sep 4, 2026
14 checks passed
@quinnj
quinnj deleted the fix/codeunits-sizeof branch September 4, 2026 19:45
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