Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# nocov start
.default_ignore_start <- "styler: off"
.default_ignore_stop <- "styler: on"

Expand Down Expand Up @@ -67,3 +68,5 @@ remove_cache_old_versions <- function() {
unlink(dir, recursive = TRUE, force = TRUE)
})
}

# nocov end
4 changes: 2 additions & 2 deletions tests/testthat/test-zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test_that("styler tests did not use R.cache in user root", {
skip_on_cran()
skip_on_covr()
expect_true(
length(list.files(R.cache::getCachePath("styler"), recursive = TRUE)) == 0
length(list.files(R.cache::getCachePath("styler"), recursive = TRUE)) == 0L
)
})

Expand All @@ -11,6 +11,6 @@ test_that("clear Cache", {
skip_on_cran()
skip_on_covr()
expect_true(
length(list.dirs(R.cache::getCachePath("styler"))) == 1
length(list.dirs(R.cache::getCachePath("styler"))) == 1L
)
})