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

Qiskit / rustworkx / 9139666696
94%

Build:
DEFAULT BRANCH: main
Ran 18 May 2024 12:14PM UTC
Jobs 1
Files 98
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

18 May 2024 12:01PM UTC coverage: 96.474% (-0.04%) from 96.509%
9139666696

push

github

web-flow
Loosen trait constraints and simplify structure for longest_path (#1195)

In the recently merged #1192 a new generic DAG longest_path function was
added to rustworkx-core. However, the trait bounds on the function were
a bit tighter than they needed to be. The traits were forcing NodeId to
be of a NodeIndex type and this wasn't really required. The only
requirement that the NodeId type can be put on a hashmap and do a
partial compare (that implements Hash, Eq, and PartialOrd). Also the
IntoNeighborsDirected wasn't required because it's methods weren't ever
used. This commit loosens the traits bounds to facilitate this. At the
same time this also simplifies the code structure a bit to reduce the
separation of the rust code structure in the rustworkx crate using
longest_path().

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

6 existing lines in 1 file now uncovered.

16744 of 17356 relevant lines covered (96.47%)

1215562.32 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
6
95.53
-3.35% src/shortest_path/all_pairs_bellman_ford.rs
Jobs
ID Job ID Ran Files Coverage
1 9139666696.1 18 May 2024 12:14PM UTC 98
96.47
GitHub Action Run
Source Files on build 9139666696
  • Tree
  • List 98
  • Changed 23
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9139666696
  • 0ec113b0 on github
  • Prev Build on main (#9104623275)
  • Next Build on main (#9183738698)
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

© 2025 Coveralls, Inc