-
Notifications
You must be signed in to change notification settings - Fork 186
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 more missing tests #1624
Add more missing tests #1624
Conversation
@@ -84,7 +84,7 @@ wercker_build_info <- function() { | |||
# nocov start | |||
github_comment <- function(text, info = NULL, token = settings$comment_token) { | |||
if (!requireNamespace("httr", quietly = TRUE)) { | |||
stop("Package 'httr' is required to post comments with github_comment().") # nocov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary since this entire function is being ignored for code coverage.
Codecov Report
@@ Coverage Diff @@
## main #1624 +/- ##
==========================================
+ Coverage 96.00% 96.22% +0.22%
==========================================
Files 98 98
Lines 4350 4350
==========================================
+ Hits 4176 4186 +10
+ Misses 174 164 -10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
lintr:::reset_lang(old_lang) | ||
expect_identical(Sys.getenv("LANGUAGE"), old_lang) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichaelChirico Is it not strange that even with these tests merged into the main
, codecov still says that reset_lang()
is not covered by any tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try a test commit where you add a stop() inside reset_lang(), to ensure it's actually being run
No description provided.