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 more missing tests #1624

Merged
merged 9 commits into from
Oct 6, 2022
Merged

Add more missing tests #1624

merged 9 commits into from
Oct 6, 2022

Conversation

IndrajeetPatil
Copy link
Collaborator

No description provided.

@@ -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
Copy link
Collaborator Author

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-commenter
Copy link

codecov-commenter commented Oct 6, 2022

Codecov Report

Merging #1624 (1788011) into main (dba72ab) will increase coverage by 0.22%.
The diff coverage is n/a.

@@            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     
Impacted Files Coverage Δ
R/comments.R 100.00% <ø> (+2.43%) ⬆️
R/backport_linter.R 100.00% <0.00%> (+1.96%) ⬆️
R/with.R 93.05% <0.00%> (+2.77%) ⬆️
R/semicolon_linter.R 100.00% <0.00%> (+3.70%) ⬆️
R/linter_tags.R 97.36% <0.00%> (+13.15%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@MichaelChirico MichaelChirico merged commit aac0d14 into main Oct 6, 2022
@MichaelChirico MichaelChirico deleted the missing_tests_1 branch October 6, 2022 18:55
Comment on lines +8 to +9
lintr:::reset_lang(old_lang)
expect_identical(Sys.getenv("LANGUAGE"), old_lang)
Copy link
Collaborator Author

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?

Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants