Expect Invisible
expect_invisible(current, ..., info = NA_character_)A tinytest object. A tinytest object is a
logical with attributes holding information about the
test that was run
testthat equivalent:
testthat::expect_invisible()
Other visiblity expectation predicate:
expect_visible()
f <- function() invisible()
expect_invisible(f()) # Pass
#> ----- PASSED : <-->
#> call| expect_invisible(f())
g <- function() NULL
expect_invisible(g()) # Fail
#> ----- FAILED[attr]: <-->
#> call| expect_invisible(g())
#> diff| Expected invisible result, got a visible object