Expect Visible
expect_visible(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_visible()
Other visiblity expectation predicate:
expect_invisible()
f <- function() invisible()
expect_visible(f()) # Fail
#> ----- FAILED[attr]: <-->
#> call| expect_visible(f())
#> diff| Expected visible result, got an invisible object
g <- function() NULL
expect_visible(g()) # Pass
#> ----- PASSED : <-->
#> call| expect_visible(g())