-
Notifications
You must be signed in to change notification settings - Fork 283
Fix assert and key error in --decisions flag #642
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
Conversation
Branch numbers do not always start with 0 and are consecutive. For example, a move reference ( for(auto &&it : vector) ) has only branch 3 and 4. 8000
This change does not concern the primary goal of this PR to fix the errors. My original change would remove empty line generation from the decisions flag, which results in test case failures because of the expected output references.
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.
Thank you for working on this! As you've experienced, the decision coverage analysis is new and still has LOTS of bugs. Please continue to fix any issues you see. It's great that you identified these two details, though I have two comments.
Codecov Report
@@ Coverage Diff @@
## master #642 +/- ##
=======================================
Coverage 95.11% 95.12%
=======================================
Files 24 24
Lines 3317 3322 +5
Branches 619 620 +1
=======================================
+ Hits 3155 3160 +5
Misses 92 92
Partials 70 70
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I've started the workflow. How to update the reference is described in the contributors guide. You can run following command: python3 -m nox --session 'docker_qa_compiler(all)' -- -k "decisions-neg-delta" --update_reference |
Investigating why the pipeline isn't shown in PR.
@klausweinbauer Can you add a commit to check if the pipeline is started? |
Added a test commit |
@klausweinbauer My fault, for new tests you should use |
Data for clang and gcc-5 is missing. |
Okay, I will add this |
Thank you for working on this. |
This PR should fix issues with the --decisions flag generating
assert count_false >= 0
andKeyError: 0
. I encountered the same errors described in #637 and #640, which now works in my case. Let me know if there is still an issue.Closes #637
Closes #640