Skip to content

Commit

Permalink
update cache_info() to reflect cross-platform file.info output
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmorgan committed Oct 15, 2024
1 parent d8ae3ba commit 6e8e61f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/testthat/tests-cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ test_that("cache management works", {

info <- cache_info()
expect_s3_class(info, "data.frame")
expect_setequal(
names(info),
c("size", "isdir", "mode", "mtime", "ctime", "atime", "uid",
"gid", "uname", "grname")
)
## subset of column names common across platforms; see ?file.info
colnames <- c("size", "isdir", "mode", "mtime", "ctime", "atime", "uname")
expect_true(all(colnames %in% names(info)))
})

test_that("'api_get' validates use_cache", {
Expand Down

0 comments on commit 6e8e61f

Please sign in to comment.