Skip to content

test: Add edge case coverage and document new LIMITATION#17

Merged
mpyw merged 1 commit intomainfrom
test/add-edge-case-coverage
Dec 26, 2025
Merged

test: Add edge case coverage and document new LIMITATION#17
mpyw merged 1 commit intomainfrom
test/add-edge-case-coverage

Conversation

@mpyw
Copy link
Copy Markdown
Owner

@mpyw mpyw commented Dec 26, 2025

Summary

  • Added test cases for edge cases discovered during code review
  • Documented new LIMITATION: IIFE unreachable return false positive

New test cases

  1. Closure in loop with varying ctx - Verifies each loop iteration is checked independently
  2. Multiple MakeClosure in different branches - Verifies each branch's closure is checked
  3. IIFE with unreachable return - Documents false positive when unreachable code exists

Test plan

  • ./test_all.sh passes
  • No regressions

🤖 Generated with Claude Code

Added test cases:
- Closure in loop with varying ctx
- Multiple MakeClosure in different branches
- IIFE with unreachable return (documented as LIMITATION)

The IIFE unreachable return is a false positive because SSA doesn't
always eliminate unreachable code (e.g., `if true { ... } else { ... }`).
All return paths are checked even if some are unreachable.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mpyw mpyw merged commit d1e4284 into main Dec 26, 2025
6 checks passed
@mpyw mpyw deleted the test/add-edge-case-coverage branch December 26, 2025 03:12
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.88%. Comparing base (c995a1c) to head (5fe2430).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   88.46%   88.88%   +0.42%     
==========================================
  Files           7        7              
  Lines         468      468              
==========================================
+ Hits          414      416       +2     
+ Misses         31       30       -1     
+ Partials       23       22       -1     
Flag Coverage Δ
unittests 88.88% <ø> (+0.42%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

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