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

Qiskit / rustworkx / 45100916640
95%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 02:44AM UTC
Jobs 1
Files 118
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

23 Nov 2026 02:14AM UTC coverage: 94.608%. Remained the same
45100916640

push

github

web-flow
Raise RuntimeError instead of PanicException when pruning on finish_vertex (#1670)

* Raise RuntimeError instead of PanicException when pruning on finish_vertex

Raising PruneSearch from the finish_vertex event of bfs_search, dfs_search
or dijkstra_search reached rustworkx-core, which panics because there is
nothing left to prune once a vertex is finished. The resulting
PanicException derives from BaseException, so it escaped a plain
'except Exception', and it also printed a panic message to stderr next to
the Python traceback.

The event is now checked in the PyO3 handlers, before the control flow
value reaches the core, and a RuntimeError is raised instead. The core
keeps its panic as an assertion for Rust callers.

The docstrings for the three searches already noted that an exception was
raised in that event but did not name the type, which is now RuntimeError.
They also referred to finish_vertex with :class: rather than :meth:.

Fixes #1383

* Centralize logic, avoid hot path, and trim tests

---------

Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
Co-authored-by: Ivan Carvalho <ivancarvalho@gatech.edu>

21 of 21 new or added lines in 4 files covered. (100.0%)

18337 of 19382 relevant lines covered (94.61%)

895508.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45100916640.1 23 Nov 2026 02:44AM UTC 118
94.61
GitHub Action Run
Source Files on build 45100916640
  • Tree
  • List 118
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45100916640
  • 4e0ebc35 on github
  • Prev Build on gh-readonly-queue/main/pr-1685-69d412ad9b915d5f86608c15d6277c6d9195ee0a (#44988064519)
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