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

# nocov for recent missed lines #6541

Merged
merged 3 commits into from
Sep 27, 2024
Merged

# nocov for recent missed lines #6541

merged 3 commits into from
Sep 27, 2024

Conversation

MichaelChirico
Copy link
Member

Follow-up to #6540, mainly to mark recently-missed lines with # nocov as appropriate. There are three main sources of recent false positives:

  1. We stopped testing certain Suggests packages in our main suite, relegating such tests to other.Rraw e.g. Move suggests from tests.Rraw to other.Rraw #5518
  2. We added a lot of safety checks on whether malloc() allocations succeeded: Consistently error when allocation request fails #6271
  3. I think {covr} itself started marking default: lines from switch() as "uncovered". We might want to just do default: internal_error() // # nocov (i.e., all in one line vs. two consecutive # nocov lines)

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.62%. Comparing base (11a44bd) to head (00235aa).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6541      +/-   ##
==========================================
+ Coverage   97.02%   98.62%   +1.59%     
==========================================
  Files          81       79       -2     
  Lines       14708    14443     -265     
==========================================
- Hits        14271    14244      -27     
+ Misses        437      199     -238     

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

Copy link

github-actions bot commented Sep 26, 2024

Comparison Plot

Generated via commit 00235aa

Download link for the artifact containing the test results: ↓ atime-results.zip

Time taken to finish the standard R installation steps: 3 minutes and 30 seconds

Time taken to run atime::atime_pkg on the tests: 9 minutes and 16 seconds

@@ -158,6 +158,7 @@ yaml=FALSE, autostart=NA, tmpdir=tempdir(), tz="UTC")
}
# whitespace at the beginning or end of na.strings is checked at C level and is an error there; test 1804
}
# nocov start. Tested in other.Rraw tests 16, not in the main suite.
Copy link
Member

Choose a reason for hiding this comment

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

these kind of comments with references to test numbers in other files is great

@tdhock
Copy link
Member

tdhock commented Sep 27, 2024

thanks for your detailed analysis Michael

@MichaelChirico MichaelChirico merged commit 0c957c7 into master Sep 27, 2024
11 checks passed
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.

2 participants