Skip to content

Commit

Permalink
testing nocov for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
TGuillerme committed Jan 12, 2024
1 parent b535851 commit 67396d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-as.covar.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ test_that("as.covar works in standalone", {
var.mat <- function(matrix, ...) {var(matrix, ...)}
metric <- as.covar(var.mat)

nocov <- FALSE
if(!nocov) expect_true(check.covar(metric, covar_data)$is_covar)
nocov <- TRUE
test <- get.dispRity.metric.handle(c(sum, metric), match_call, data = covar_data, tree = NULL)$levels
if(!nocov) expect_true(!is.null(test$level3.fun))
expect_true(is.null(test$level2.fun))
Expand Down

0 comments on commit 67396d3

Please sign in to comment.