• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / goro / 26062109376
13%

Build:
DEFAULT BRANCH: master
Ran 18 May 2026 09:48PM UTC
Jobs 1
Files 398
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 May 2026 09:41PM UTC coverage: 12.304% (+0.003%) from 12.301%
26062109376

push

github

MagicalTux
vm: lower switch() statements natively

Stashes the cond expression in a synthetic local (__switch_cond_N
with a per-emitter sequence number) so the dispatch chain reads it
once. Each non-default case is compared via LOAD_LOCAL + emit(case)
+ CMP_EQ + JMP_IF_TRUE; the no-match path jumps to the default body
or to the loop break target.

Block bodies are emitted in source order, allowing PHP's standard
fall-through semantics — once a case matches, execution continues
into subsequent blocks until break/continue.

Break and continue with depth 1 inside switch jump to the switch's
end; multi-level break/continue propagates via the loops stack just
like for/while/foreach.

IsSwitchNode now returns false unconditionally; runMatch / runSwitch
are removed from IsSlotSafe's slot-unsafe set so bodies that only
use match/switch stay slot-safe.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

63 of 75 new or added lines in 3 files covered. (84.0%)

35 existing lines in 3 files now uncovered.

14369 of 116783 relevant lines covered (12.3%)

2581.67 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
75.39
0.81% core/vm/vmcompiler/emit_stmt.go
4
77.59
-0.56% core/compiler/vmaccess.go

Coverage Regressions

Lines Coverage ∆ File
30
28.33
-16.67% core/compiler/compile-switch.go
4
0.0
-18.18% core/phperr/break.go
1
77.59
-0.56% core/compiler/vmaccess.go
Jobs
ID Job ID Ran Files Coverage
1 26062109376.1 18 May 2026 09:48PM UTC 398
12.3
GitHub Action Run
Source Files on build 26062109376
  • Tree
  • List 398
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26062109376
  • 4a62368c on github
  • Prev Build on master (#26061366299)
  • Next Build on master (#26064566188)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc