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

Qiskit / coheriq / 41497057046
92%
main: 93%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-52-97a9f9f411b6aec7d08423c39d92b179d3d568b5
DEFAULT BRANCH: main
Ran 02 Nov 2026 06:05PM UTC
Jobs 1
Files 5
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

02 Nov 2026 06:04PM UTC coverage: 91.809% (+0.3%) from 91.525%
41497057046

push

github

web-flow
Resolve each decoration's lookup name independently (#49)

`acceleration_candidate` and `override` both did `nonlocal name` and wrote the
decorated function's `__name__` into the enclosing scope.  When the factory
they return is applied more than once and no explicit name was given, every
decoration after the first reused the first function's name:

    decorate = domain.acceleration_candidate()
    w1 = decorate(alpha)
    w2 = decorate(beta)
    # registered: {'alpha': beta};  w1() and w2() both call beta

On the engine side the symptom is worse, because a missing override is not an
error.  The first candidate dispatched to the second candidate's override, and
the second fell through to the reference implementation as though it had never
been overridden.  Both failures are silent.

Resolve into a local instead, so each decoration is independent, and read that
local everywhere the name is used -- the registration, the domain lookup, and
the engine's "not defined in domain" check.

Reusing a factory that *was* given an explicit name is unaffected: both
decorations register under that name, last write winning, exactly as two
separately-created factories with the same name already did.  Applying the
decorator directly was never affected either, which is why this went
unnoticed.

Assisted-by: Claude Opus 5

8 of 8 new or added lines in 2 files covered. (100.0%)

2 existing lines in 2 files now uncovered.

269 of 293 relevant lines covered (91.81%)

0.92 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
96.12
0.92% src/coheriq/domain.py
1
82.02
-0.2% src/coheriq/engine.py
Jobs
ID Job ID Ran Files Coverage
1 41497057046.1 02 Nov 2026 06:05PM UTC 5
91.81
GitHub Action Run
Source Files on build 41497057046
  • Tree
  • List 5
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #41497057046
  • 97a9f9f4 on github
  • Prev Build on gh-readonly-queue/main/pr-50-2bdcc29c93522a46129c545584b0d7e1fbdd300f (#41485539770)
  • 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