Skip to content

[codex] add interp regression coverage for recent marshaling changes#40

Merged
siyul-park merged 1 commit into
mainfrom
codex/daily-test-coverage-hostobject
May 26, 2026
Merged

[codex] add interp regression coverage for recent marshaling changes#40
siyul-park merged 1 commit into
mainfrom
codex/daily-test-coverage-hostobject

Conversation

@siyul-park

Copy link
Copy Markdown
Owner

What changed

  • add TestInterpreter_Alloc/interns strings to cover the recent Interpreter.Alloc(types.String) interning path
  • add TestInterpreter_Unmarshal/host object pointer target to cover round-tripping pointer-hostable defined scalars after HostObject mutation

Why

Recent marshaling changes introduced new behavior for pointer-hostable defined scalars and direct string interning in the interpreter heap. These paths were changed recently but were not protected by focused regression tests.

Validation

  • go test ./interp -run 'TestInterpreter_(Alloc|Unmarshal)$'
  • go test ./interp
  • make lint

Changed paths tested

  • interp/interp.go: direct string interning through Alloc and release cleanup
  • interp/marshal.go: pointer-hostable scalar HostObject unmarshaling path
  • interp/interp_test.go

Skipped targets

  • types/map.go and threaded map fast paths: recent map refactor already added broad package coverage nearby; I did not find a smaller changed branch with a clearer fail-before regression than the interp marshaling paths above.
  • additional marshal.go helper branches: several remaining uncovered helpers are generic error or unsupported-type paths and would require more synthetic setup than warranted for this narrow coverage pass.

@codecov

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.82%. Comparing base (784f1a8) to head (7a0746b).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #40      +/-   ##
==========================================
+ Coverage   54.79%   54.82%   +0.03%     
==========================================
  Files          57       57              
  Lines       10677    10677              
==========================================
+ Hits         5850     5854       +4     
+ Misses       4174     4171       -3     
+ Partials      653      652       -1     

☔ View full report in Codecov by Sentry.
📢 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.

@siyul-park siyul-park marked this pull request as ready for review May 26, 2026 11:06
@siyul-park siyul-park merged commit d3e1975 into main May 26, 2026
5 checks passed
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