Skip to content

917 improve code coverage of ide secir#923

Closed
lenaploetzke wants to merge 11 commits intomainfrom
917-improve-code-coverage-of-ide-secir
Closed

917 improve code coverage of ide secir#923
lenaploetzke wants to merge 11 commits intomainfrom
917-improve-code-coverage-of-ide-secir

Conversation

@lenaploetzke
Copy link
Member

@lenaploetzke lenaploetzke commented Feb 5, 2024

Changes and Information

Please briefly list the changes (main added features, changed items, or corrected bugs) made:

  • Changed one value in the test for parameters.h so that the uncovered lines are now covered.
  • Deleted the first check of check_constraints in modelbecause this case already leads to an error in the construction of a model.

If need be, add additional information and what the reviewer should look out for in particular:

Merge Request - Guideline Checklist

Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.

Checks by code author

  • Every addressed issue is linked (use the "Closes #ISSUE" keyword below)
  • New code adheres to coding guidelines
  • No large data files have been added (files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.)
  • Tests are added for new functionality and a local test run was successful
  • Appropriate documentation for new functionality has been added (Doxygen in the code and Markdown files if necessary)
  • Proper attention to licenses, especially no new third-party software with conflicting license has been added
  • (For ABM development) Checked benchmark results and ran and posted a local test above from before and after development to ensure performance is monitored.

Checks by code reviewer(s)

  • Corresponding issue(s) is/are linked and addressed
  • Code is clean of development artifacts (no deactivated or commented code lines, no debugging printouts, etc.)
  • Appropriate unit tests have been added, CI passes, code coverage and performance is acceptable (did not decrease)
  • No large data files added in the whole history of commits(files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.)
  • On merge, add 2-5 lines with the changes (main added features, changed items, or corrected bugs) to the merge-commit-message. This can be taken from the briefly-list-the-changes above (best case) or the separate commit messages (worst case).

Closes #917

@lenaploetzke lenaploetzke added prio::low The priority of this task is low. It is an interesting item but with low priority. model::ide This issue concerns any kind of integro differential equations-based model. class::improvement Cleanup that doesn't affect functionality loc::infrastructure General MEmilio Infrastructure related issues labels Feb 5, 2024
@lenaploetzke lenaploetzke self-assigned this Feb 5, 2024
@lenaploetzke lenaploetzke linked an issue Feb 5, 2024 that may be closed by this pull request
2 tasks
@lenaploetzke
Copy link
Member Author

The problem with the uncovered lines 227-230 in parameters.h was that there is a check for negative probabilities (210-214), so that the value -1 already leads to a returned true there.

@codecov
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d4cb5ee) 96.22% compared to head (6c42373) 96.26%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #923      +/-   ##
==========================================
+ Coverage   96.22%   96.26%   +0.04%     
==========================================
  Files         124      124              
  Lines        9699     9699              
==========================================
+ Hits         9333     9337       +4     
+ Misses        366      362       -4     

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

@lenaploetzke lenaploetzke added status::in review This issues is in review. and removed loc::infrastructure General MEmilio Infrastructure related issues labels Feb 16, 2024
@lenaploetzke lenaploetzke requested review from HenrZu and removed request for annawendler March 20, 2024 12:35
@mknaranja
Copy link
Member

Merged with #959 .

@mknaranja mknaranja closed this Mar 22, 2024
@lenaploetzke lenaploetzke removed the request for review from HenrZu March 22, 2024 11:24
@lenaploetzke lenaploetzke deleted the 917-improve-code-coverage-of-ide-secir branch May 13, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

class::improvement Cleanup that doesn't affect functionality model::ide This issue concerns any kind of integro differential equations-based model. prio::low The priority of this task is low. It is an interesting item but with low priority. status::in review This issues is in review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

improve code coverage of ide secir

2 participants