-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix ALL THE COVERAGE #7220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ALL THE COVERAGE #7220
Conversation
- This either adds tests or "pragma: nocover" for all uncovered lines in cirq. - Most of it is overloads, not implemented methods, or test objects. - However, a few things were missing tests. Fixes: quantumlib#3939
The magic comment should be
done in 7b1c765 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if the tests pass. Please check if you are OK with my updates.
cirq-core/cirq/experiments/random_quantum_circuit_generation.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Pavol Juhas <pavol.juhas@gmail.com>
…Cirq-1 into fix_all_the_coverage
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7220 +/- ##
==========================================
+ Coverage 98.15% 98.66% +0.50%
==========================================
Files 1100 1106 +6
Lines 96253 95864 -389
==========================================
+ Hits 94473 94580 +107
+ Misses 1780 1284 -496 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Let us avoid test-only argument in `circuit_to_pdf_using_qcircuit_via_tex`. Also check if PDF is generated and auxiliary files are cleaned. Related to quantumlib#7220
Let us avoid test-only argument in `circuit_to_pdf_using_qcircuit_via_tex`. Mock `Document.generate_pdf` so we can test without the `latexmk` program. Related to quantumlib#7220
Let us avoid test-only argument in `circuit_to_pdf_using_qcircuit_via_tex`. Mock `Document.generate_pdf` so we can test without the `latexmk` program. Related to quantumlib#7220
* Fix ALL THE COVERAGE - This either adds tests or "pragma: nocover" for all uncovered lines in cirq. - Most of it is overloads, not implemented methods, or test objects. - However, a few things were missing tests. Fixes: quantumlib#3939 * Use coverage exclusion comment `# pragma: no cover` Ref: https://coverage.readthedocs.io/en/latest/excluding.html * Exclude coverage of the `pass` statement by default * Exclude coverage of `raise NotImplementedError` by default * Fix qcircuit pdf coverage * Update cirq-core/cirq/experiments/random_quantum_circuit_generation.py Co-authored-by: Pavol Juhas <pavol.juhas@gmail.com> * format --------- Co-authored-by: Pavol Juhas <juhas@google.com> Co-authored-by: Pavol Juhas <pavol.juhas@gmail.com>
…uantumlib#7227) Let us avoid test-only argument in `circuit_to_pdf_using_qcircuit_via_tex`. Mock `Document.generate_pdf` so we can test without the `latexmk` program. Related to quantumlib#7220
Fixes: #3939