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: added unit tests for format_checkers script #1709

Merged
merged 5 commits into from
Jun 30, 2022

Conversation

yashugarg
Copy link
Contributor

fixes #1708

@yashugarg yashugarg force-pushed the test-format-checkers branch from b3e942e to 46ac054 Compare June 20, 2022 22:56
@yashugarg yashugarg marked this pull request as draft June 20, 2022 22:57
@yashugarg yashugarg force-pushed the test-format-checkers branch from 46ac054 to e0dcd56 Compare June 21, 2022 16:19
@yashugarg yashugarg force-pushed the test-format-checkers branch from e0dcd56 to f7eba9c Compare June 21, 2022 16:49
@codecov-commenter
Copy link

codecov-commenter commented Jun 21, 2022

Codecov Report

Merging #1709 (ebd0ec7) into main (a6c3bd7) will increase coverage by 0.89%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1709      +/-   ##
==========================================
+ Coverage   79.43%   80.32%   +0.89%     
==========================================
  Files         299      300       +1     
  Lines        6364     6404      +40     
  Branches     1044     1045       +1     
==========================================
+ Hits         5055     5144      +89     
+ Misses       1093     1043      -50     
- Partials      216      217       +1     
Flag Coverage Δ
longtests 80.32% <100.00%> (+0.89%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cve_bin_tool/format_checkers.py 100.00% <100.00%> (+100.00%) ⬆️
test/test_format_checker.py 100.00% <100.00%> (ø)
cve_bin_tool/nvd_api.py 75.20% <0.00%> (-8.80%) ⬇️
cve_bin_tool/cli.py 69.29% <0.00%> (+0.39%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@yashugarg yashugarg marked this pull request as ready for review June 23, 2022 08:33
@yashugarg
Copy link
Contributor Author

@BreadGenie @terriko
I'm done with the work
Please review the PR!

Copy link
Contributor

@BreadGenie BreadGenie left a comment

Choose a reason for hiding this comment

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

Some nitpicks
Everything else looks good to me

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

Looks good to me. I'm re-running the windows CI stuff that timed out before I merge but I don't anticipate problems.

I did merge #1714 which switched all the other tests over to using pathlib, so we'll probably want to switch to that here too. I'll open a separate bug for a little refactoring rather than waiting on merging this, though.

@terriko terriko added the awaiting maintainer Need a maintainer to respond / help out label Jun 30, 2022
@yashugarg
Copy link
Contributor Author

Alright thanks!

@terriko terriko merged commit 0afbb7c into intel:main Jun 30, 2022
@yashugarg yashugarg deleted the test-format-checkers branch July 5, 2022 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting maintainer Need a maintainer to respond / help out
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test: format_checkers script
4 participants