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

KarpelesLab / goro / 25772047510
13%

Build:
DEFAULT BRANCH: master
Ran 13 May 2026 01:17AM 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

13 May 2026 01:15AM UTC coverage: 12.014% (+0.6%) from 11.374%
25772047510

push

github

MagicalTux
vm: clone, instanceof, do-while, declare, var-var, generator iter

Six more coverage extensions, all via AST delegation:

* \`clone \$x\`, \`\$x instanceof T\`, void cast (used implicitly),
  first-class callables — push result via OpClassConst.
* \`do { … } while (…);\`, \`declare(strict_types=1)\`, \`declare(ticks=N)\`,
  top-level const, enum register, inline HTML — statement form via
  OpTryFinally + OP_REFRESH_SLOTS.
* Dynamic object property name (\`\$obj->{\$expr}\`) and dynamic
  method name (\`\$obj->{\$expr}()\`).

VM foreach over an object implementing the Iterator interface
(notably Generator) now drives the iteration via PHP-level
rewind/valid/current/key/next methods through the AST's
phpObjectIterator (re-exposed as compiler.NewObjectMethodIterator).
Previously the VM used NewIteratorInScope, which iterates over
object properties — wrong for generators and Iterator classes.

Tests: TestCloneInstanceofDoWhile, TestGeneratorIteration. The
unsupported-fallback sentinel is retired since the emitter no
longer has a reachable catch-all for valid scripts; fallback for
generators / by-ref params / by-ref return is still covered by
the integration test.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

41 of 44 new or added lines in 5 files covered. (93.18%)

21 existing lines in 6 files now uncovered.

13859 of 115356 relevant lines covered (12.01%)

2017.59 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
82.65
0.43% core/compiler/vmaccess.go
1
56.82
21.45% core/vm/ops_foreach.go

Coverage Regressions

Lines Coverage ∆ File
6
72.5
-15.0% core/vm/vmcompiler/register.go
4
85.36
-0.55% core/vm/vmcompiler/emit_expr.go
4
76.1
-0.72% core/vm/vmcompiler/emit_stmt.go
3
0.0
-100.0% core/vm/vmcompiler/unsupported.go
2
22.78
0.43% core/phpobj/zobject.go
2
71.43
-7.14% core/vm/vmcompiler/compile.go
Jobs
ID Job ID Ran Files Coverage
1 25772047510.1 13 May 2026 01:17AM UTC 398
12.01
GitHub Action Run
Source Files on build 25772047510
  • Tree
  • List 398
  • Changed 26
  • Source Changed 5
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25772047510
  • aaf48b2f on github
  • Prev Build on master (#25771801761)
  • Next Build on master (#25772374705)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc