-
Notifications
You must be signed in to change notification settings - Fork 185
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
Use public interface in tests wherever possible (don't use :::) #1692
Open
12 of 24 tasks
Milestone
Comments
I think It's picking up expect_lint(
"stats:::sdd(c(1,2,3))",
list(message = rex::rex("'sdd' does not exist in {stats}")),
linter
) |
IndrajeetPatil
added a commit
that referenced
this issue
Oct 16, 2022
IndrajeetPatil
added a commit
that referenced
this issue
Oct 17, 2022
Part of #1692 And cleanup to break the tests down into skip vs block blocks.
MichaelChirico
added a commit
that referenced
this issue
Oct 17, 2022
* Use public interface to test internal functions: Part-3 Part of #1692 And cleanup to break the tests down into skip vs block blocks. * remove escapes Co-authored-by: Michael Chirico <[email protected]>
IndrajeetPatil
added a commit
that referenced
this issue
Nov 21, 2022
IndrajeetPatil
added a commit
that referenced
this issue
Nov 26, 2022
* Use public interface to test internal functions: Part-4 Part of #1692 * fix lints * check also the location * fix URL * fix for windows? * Use `winslash = "/"`
IndrajeetPatil
added a commit
that referenced
this issue
Jun 6, 2024
This was referenced Jun 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
e.g. this suite can be replaced by
expect_lint()
tests:lintr/tests/testthat/test-implicit_integer_linter.R
Lines 2 to 35 in bed54c5
Here's a list of tests using
:::
, generated withgrep -Flr ":::" tests/testthat | awk -F/ '{print "- [ ] " $3}' | sort
, we can cross some off if they are just used for coverage & testing with public API is difficult:test-dir_linters.RThe text was updated successfully, but these errors were encountered: