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

Qiskit / coheriq / 41546885011
93%

Build:
DEFAULT BRANCH: main
Ran 02 Nov 2026 11:38PM 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 11:30PM UTC coverage: 92.739% (+0.9%) from 91.809%
41546885011

push

github

web-flow
Report the right type, and stay in the CoheriqError hierarchy (#52)

Two pre-existing problems in how `acceleration_candidate` and `override`
resolve a lookup name.

A non-string `name` reported the type of the decorated function rather
than of `name` itself, so `name=123` complained `got function instead`.
The branch is only reachable when `name` is given, since a name derived
from `__name__` is always a string, so `type(f)` was never the right
thing to report there.

Reading `f.__name__` unguarded raised a bare `AttributeError` naming a
dunder.  That escaped the CoheriqError hierarchy, so a caller wrapping
setup in `except CoheriqError` did not catch it.  It affected two
different situations: a caller error such as passing an int, and
legitimate callables that carry no `__name__`, which includes
`functools.partial` objects and instances of classes defining
`__call__`.  Both now raise CoheriqDomainError or CoheriqEngineError and
point at the explicit `name` argument, which has always worked for them.

The new exception is raised `from None`.  The AttributeError only
restates the attribute the message already names, and "During handling
of the above exception" would suggest coheriq hit a bug when the except
branch is in fact the designed path.

The decorator-side validation had no test, which is how the wrong type
survived; `test_nonstring_name` covers the constructor's name instead.

Assisted-by: Claude Opus 5

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

281 of 303 relevant lines covered (92.74%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41546885011.1 02 Nov 2026 11:38PM UTC 5
92.74
GitHub Action Run
Source Files on build 41546885011
  • 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 #41546885011
  • d24efa4c on github
  • Prev Build on gh-readonly-queue/main/pr-49-28d877d82218d05b15e5725387e843d56ccb43f6 (#41497057046)
  • 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