-
Notifications
You must be signed in to change notification settings - Fork 314
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
Minor advisor test improvements #9603
Conversation
b846480
to
f3c82d1
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9603 +/- ##
=========================================
Coverage 68.03% 68.03%
- Complexity 1285 1287 +2
=========================================
Files 249 249
Lines 8826 8826
Branches 920 920
=========================================
Hits 6005 6005
Misses 2432 2432
Partials 389 389
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
How about a follow-up commit in this PR that turns identifierToPackage()
into fun Identifier.toPackage()
?
packageFindings.keys.forAll { coordinates -> | ||
packageFindings.getValue(coordinates).vulnerabilities shouldNot beEmpty() |
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.
Shouldn't this variable renaming still go to the previous commit?
Currently, (Maybe I can do this in a follow-up PR) _edit: or maybe |
f3c82d1
to
faf772b
Compare
Improve readability of assertion failures within `forAll`. Note that assertions for the keys of type `Package` are covered by the test case below. Signed-off-by: Frank Viernau <[email protected]>
Prepare for re-use. Signed-off-by: Frank Viernau <[email protected]>
This slightly simplifies conversion and allows to re-use `identifierToPackage()`. Signed-off-by: Frank Viernau <[email protected]>
Improve output of assertion failures within `forAll`. Signed-off-by: Frank Viernau <[email protected]>
faf772b
to
21e67c3
Compare
No, you would call it like
Yes. |
See individual commits.