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

add unit testing to increase code coverage #265

Merged
merged 6 commits into from
Sep 19, 2024

Conversation

feng-j678
Copy link
Contributor

@feng-j678 feng-j678 commented Sep 12, 2024

[x] add test_RemainingTime_raise_exception to test the throw exception logic
[x] add test_RemainingTime_log_to_stdout_true to test composite_logger.log instead of composite_logger.log_debug
[x] test_configure_patching_raise_exception to test raise exception
[x] test_configure_patching_raise_exception_auto_assessment_systemd

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.08%. Comparing base (c01c7bc) to head (a037ce5).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #265      +/-   ##
==========================================
+ Coverage   90.96%   91.08%   +0.11%     
==========================================
  Files          91       91              
  Lines       15782    15846      +64     
==========================================
+ Hits        14356    14433      +77     
+ Misses       1426     1413      -13     
Flag Coverage Δ
python27 91.08% <100.00%> (+0.11%) ⬆️
python39 91.08% <100.00%> (+0.11%) ⬆️

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

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

@feng-j678 feng-j678 changed the title add test_RemainingTime_raise_exception utest in maintenance windows file add unit testing for get_remaining_time_in_minutes Sep 12, 2024
@feng-j678 feng-j678 marked this pull request as ready for review September 12, 2024 20:37
@feng-j678 feng-j678 changed the title add unit testing for get_remaining_time_in_minutes add unit testing to increase code coverage Sep 16, 2024
@feng-j678 feng-j678 merged commit 0824ba8 into master Sep 19, 2024
7 checks passed
@feng-j678 feng-j678 deleted the add_test_maintenancewindow branch September 19, 2024 22:16
@feng-j678 feng-j678 mentioned this pull request Nov 26, 2024
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