8000 test: Improve Test Coverage for `package_list_parser.py` · Issue #4875 · intel/cve-bin-tool · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test: Improve Test Coverage for package_list_parser.py #4875

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

Closed
JigyasuRajput opened this issue Mar 2, 2025 · 3 comments · Fixed by #4909
Closed

test: Improve Test Coverage for package_list_parser.py #4875

JigyasuRajput opened this issue Mar 2, 2025 · 3 comments · Fixed by #4909
Assignees

Comments

@JigyasuRajput
Copy link
Contributor
JigyasuRajput commented Mar 2, 2025

Description:

cve_bin_tool/package_list_parser.py lacks sufficient test coverage.

Functions Needing Tests:

  1. parse_list(self) ~ report

    • Parses package lists from different package managers (dpkg, rpm, pacman, pip).
    • Needs tests for different distributions, missing packages, and JSON output parsing.
  2. add_vendor(self, vendor_package_pairs) ~ report

    • Associates vendors with package names using CVE database data.
    • Needs tests for vendor matching and edge cases where no vendor is found.
  3. parse_data(self) ~ report

    • Converts parsed package data into structured output.
    • Needs tests for handling missing or malformed data.
  4. check_file(self) ~ report

    • Validates the package list file before parsing.
    • Needs tests for handling missing files, incorrect formats, and invalid package lists.
@JigyasuRajput
Copy link
Contributor Author

There was a hiccup, I need to update this issue

@JigyasuRajput JigyasuRajput changed the title test: Increase Test Coverage for helper_script.py test: Increase Improve Test Coverage for package_list_parser.py Mar 2, 2025
@JigyasuRajput
Copy link
Contributor Author

updated the issue!
I checked the old reports by mistake

@JigyasuRajput JigyasuRajput changed the title test: Increase Improve Test Coverage for package_list_parser.py test: Improve Test Coverage for package_list_parser.py Mar 2, 2025
@JigyasuRajput
Copy link
Contributor Author

Hey! I'm working on this issue

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 a pull request may close this issue.

1 participant
0