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

Qiskit / rustworkx / 7996586980
94%

Build:
DEFAULT BRANCH: main
Ran 21 Feb 2024 10:56PM UTC
Jobs 1
Files 96
Run time 8s
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

21 Feb 2024 10:42PM UTC coverage: 96.517% (-0.09%) from 96.602%
7996586980

push

github

web-flow
Add manual iterator implementations for custom vec iterables (#1107)

* Add manual iterator implementations for custom vec iterables

This adds manual `Iterator` implementors for the custom vec `Iterable`
pyclasses, which were previously using the Python default iterator
implementation that attempts calls to `__getitem__` with successive
integers until an `IndexError` is raised.

Doing this means that we no longer have any overhead from converting
Python-space integer indices to Rust-space ones, because we just store
a pointer to the backing vec internally and yield from that using an
index we track ourselves.

* Add release note

* Remove `__len__` from custom iterators

This matches the Python behaviour for the implicit sequence-protocol
iterators; they have only `__length_hint__` and not `__len__`.

* Add reversed iterators

* Add explicit tests

* Fixup release note

16821 of 17428 relevant lines covered (96.52%)

1207446.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7996586980.1 21 Feb 2024 10:56PM UTC 96
96.52
GitHub Action Run
Source Files on build 7996586980
  • Tree
  • List 96
  • Changed 28
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bf3f7036 on github
  • Prev Build on main (#7982100393)
  • Next Build on main (#8003862941)
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