|
Ran
|
Jobs
1
|
Files
788
|
Run time
5min
|
Badge
README BADGES
|
push
github
Add missing `__getitem__` and other attributes to `BitLocations` (#13997) (#14008) * Add: `__getitem__` and other attributes to `BitLocations` In an oversight after #13860, when switching to use the pyo3 friendly `BitLocations` which is not an instance of `namedtuple` we did not extend it to include sequence methods `__getitem__` and `__len__`, which results in breaking api changes. The following commits add those methods to `BitLocations` and also labels the class correctly as a `sequence` in PyO3. * Fix: Address review comments * Fix: More formatting issues in tests * Apply suggestions from code review Co-authored-by: Matthew Treinish <mtreinish@kortar.org> --------- Co-authored-by: Matthew Treinish <mtreinish@kortar.org> (cherry picked from commit 3a80a8143) Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com>
17 of 18 new or added lines in 1 file covered. (94.44%)
4 existing lines in 2 files now uncovered.72648 of 82453 relevant lines covered (88.11%)
495798.12 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
86.15 |
0.13% | crates/circuit/src/dag_circuit.rs |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
94.23 |
-0.23% | crates/qasm2/src/expr.rs |
| 3 |
91.98 |
0.0% | crates/qasm2/src/lex.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 13821191064.1 | 788 |
88.11 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|