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

KarpelesLab / goro / 26138649539
12%

Build:
DEFAULT BRANCH: master
Ran 20 May 2026 03:04AM 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

20 May 2026 03:03AM UTC coverage: 12.413% (+0.03%) from 12.388%
26138649539

push

github

MagicalTux
vm: re-enable NoDiscard native emit + wrap native methods with attrs

Two changes together:

1. dispatch.go's CallInstanceMethod now wraps native instance methods
   that carry attributes (e.g. NoDiscard on DateTimeImmutable::
   setTimestamp) in a MethodCallable. Previously the bare NativeMethod
   was passed to CallZVal, losing the attribute set — hasNoDiscardAttr
   returned false → lastCallable wasn't set → no warning. The wrapping
   includes Class + AliasName so NoDiscard error messages report the
   correct ClassName::methodName().

2. emit_stmt.go re-enables the native OP_NODISCARD_ENTER/EXIT bracket
   emit (was reverted in 647229d1 due to this exact bug). With (1) in
   place, the native emit now produces the expected warning for both
   user functions and builtin methods.

Fixes attributes/nodiscard/005 (native method) without regressing
attributes/nodiscard/error_code_001 (user function with handler).

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

7 of 20 new or added lines in 2 files covered. (35.0%)

43 existing lines in 3 files now uncovered.

14607 of 117677 relevant lines covered (12.41%)

2569.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
53.56
-1.19% core/compiler/dispatch.go
2
74.81
0.19% core/vm/vmcompiler/emit_stmt.go

Coverage Regressions

Lines Coverage ∆ File
27
71.43
12.47% core/vm/vmcompiler/emit_object.go
11
4.52
-3.55% core/compiler/compile-attributed.go
5
23.56
-0.01% core/compiler/compile-object.go
Jobs
ID Job ID Ran Files Coverage
1 26138649539.1 20 May 2026 03:04AM UTC 398
12.41
GitHub Action Run
Source Files on build 26138649539
  • Tree
  • List 398
  • Changed 10
  • Source Changed 5
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26138649539
  • 3cacea82 on github
  • Prev Build on master (#26138154870)
  • Next Build on master (#26138479493)
  • 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