-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add coverage test suite #2608
Add coverage test suite #2608
Conversation
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.
Good work! A couple of high-level comments:
Why aren't filenames included in expected
files? Looks like you're parsing file locations but only keep line numbers. Coverage data will give you information on external files (including Kani library or std functions), which we also need to store in order to make a correct comparison.
I'd also encourage you to use types to represent coverage data. That'd allow us to split this code into two parts: parsing and checking.
// Iterate through the blocks and find the ones containing "UNREACHABLE" or "SATISFIED" | ||
for block in blocks { | ||
if block.contains("UNREACHABLE") || block.contains("SATISFIED") { | ||
blocks_with_unreachable_or_satisfied.push(block); |
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.
Should be looking for UNSATISFIED
and SATISFIED
because those are the only two possible results for cover checks.
} | ||
} | ||
} | ||
if block.contains("UNREACHABLE") { |
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.
Same comment here.
Description of changes:
Adds coverage test suite
Resolved issues:
Resolves #ISSUE-NUMBER
Related RFC:
Optional #ISSUE-NUMBER.
Call-outs:
Testing:
How is this change tested?
Is this a refactor change?
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.