Skip to content

Add suppport for match statements

f843c7d
Select commit
Loading
Failed to load commit list.
Draft

Add support for match statements where pattern is const #167

Add suppport for match statements
f843c7d
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Feb 22, 2026 in 1s

29.12% (+1.21%) compared to 8e7b2a8

View this Pull Request on Codecov

29.12% (+1.21%) compared to 8e7b2a8

Details

Codecov Report

❌ Patch coverage is 81.46930% with 169 lines in your changes missing coverage. Please review.
✅ Project coverage is 29.12%. Comparing base (8e7b2a8) to head (f843c7d).

Files with missing lines Patch % Lines
semantics/type_narrowing/type_narrowing.go 90.53% 24 Missing and 6 partials ⚠️
bir/bir_gen.go 73.46% 24 Missing and 2 partials ⚠️
ast/match_patterns.go 8.00% 23 Missing ⚠️
semantics/type_resolver.go 88.16% 14 Missing and 6 partials ⚠️
ast/node_builder.go 69.81% 13 Missing and 3 partials ⚠️
test_util/testphases/phases.go 74.41% 5 Missing and 6 partials ⚠️
ast/pretty_printer.go 82.45% 7 Missing and 3 partials ⚠️
ast/expressions.go 20.00% 8 Missing ⚠️
ast/statements.go 0.00% 7 Missing ⚠️
semantics/control_flow_analyzer.go 77.41% 6 Missing and 1 partial ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #167      +/-   ##
==========================================
+ Coverage   27.90%   29.12%   +1.21%     
==========================================
  Files         254      257       +3     
  Lines       53858    54627     +769     
==========================================
+ Hits        15031    15909     +878     
+ Misses      37890    37758     -132     
- Partials      937      960      +23     

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