Fix breakages to tests due to testthat 3.0
Showing 1 of 16 files from the diff.
Other files ignored by Codecov
inst/doc/metacomp.html
was deleted.
tests/run.R
has changed.
DESCRIPTION
has changed.
inst/doc/embed.Rmd
was deleted.
inst/doc/diffobj.R
was deleted.
tests/testthat/testthat.pager.R
has changed.
NEWS.md
has changed.
inst/doc/metacomp.R
was deleted.
inst/doc/diffobj.Rmd
was deleted.
inst/doc/diffobj.html
was deleted.
inst/doc/metacomp.Rmd
was deleted.
vignettes/metacomp.Rmd
has changed.
inst/doc/embed.R
was deleted.
README.md
has changed.
inst/doc/embed.html
was deleted.
@@ -68,6 +68,10 @@
Loading
68 | 68 | # flags is supposed to be character(1L) in form "XVF" or some such |
|
69 | 69 | # |
|
70 | 70 | # Returns the previous value of the variable, NA if it was not set |
|
71 | + | # |
|
72 | + | # Assumes `Sys.getenv('VAR')` always returns a length 1 character vector, even |
|
73 | + | # though strictly this is not documented (used to handle other case but this |
|
74 | + | # assumption simplifies testing now that we can't mock Sys.getenv anymore). |
|
71 | 75 | ||
72 | 76 | set_less_var <- function(flags) { |
|
73 | 77 | LESS <- Sys.getenv("LESS", unset=NA) # NA return is NA_character_ |
@@ -81,8 +85,7 @@
Loading
81 | 85 | LESS.new <- sub( |
|
82 | 86 | "\\s*\\K(-[[:alpha:]]+)\\b$", sprintf("\\1%s", flags), LESS, perl=TRUE |
|
83 | 87 | ) } } |
|
84 | - | if(!is.na(LESS.new)) Sys.setenv(LESS=LESS.new) else |
|
85 | - | warning("Unable to set `LESS` system variable") |
|
88 | + | if(!is.na(LESS.new)) Sys.setenv(LESS=LESS.new) |
|
86 | 89 | LESS |
|
87 | 90 | } |
|
88 | 91 | reset_less_var <- function(LESS.old) { |
183.2
183.1
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.