Skip to content
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

test: add output fixtures for call analysis #1093

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Jul 2, 2024

These fixtures were based on the output from the cmd/osv-scanner/fixtures/call-analysis-go-project fixture, though from the struct I think it's pretty complete; the most notable thing is it looks like call analysis does play favorites unlike most of the scanner: only one advisory of a vulnerability will be marked as called/uncalled regardless of how many aliases that vulnerability has.

@G-Rath
Copy link
Collaborator Author

G-Rath commented Jul 2, 2024

This unblocks support call analysis in #889

@G-Rath G-Rath force-pushed the tests/add-called-output-fixtures branch 3 times, most recently from 3ba0472 to eb0eb1f Compare July 3, 2024 00:09
@G-Rath G-Rath force-pushed the tests/add-called-output-fixtures branch from eb0eb1f to dff227a Compare July 9, 2024 00:28
@G-Rath G-Rath requested review from another-rex, cuixq and hogo6002 July 9, 2024 00:29
@codecov-commenter
Copy link

codecov-commenter commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.94%. Comparing base (fcc7afb) to head (dff227a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1093   +/-   ##
=======================================
  Coverage   65.94%   65.94%           
=======================================
  Files         159      159           
  Lines       12758    12758           
=======================================
  Hits         8413     8413           
  Misses       3885     3885           
  Partials      460      460           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@another-rex another-rex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@another-rex another-rex merged commit e35bd05 into google:main Jul 9, 2024
13 checks passed
@G-Rath G-Rath deleted the tests/add-called-output-fixtures branch July 9, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants