tests/testthat/test-progress.R

library(pROC)
data(aSAH)


test_that("can get bar works", {
	my_progress <- pROC:::roc_utils_get_progress_bar("text")
	expect_equal(names(my_progress), c("init", "step", "term"))
})

test_that("progress = text works", {
	expect_output(var(r.wfns, method="bootstrap", boot.n=2, progress="text"))
})

test_that("progress = none works", {
	expect_silent(var(r.wfns, method="bootstrap", boot.n=2, progress="none"))
})

Try the pROC package in your browser

Any scripts or data that you put into this service are public.

pROC documentation built on Nov. 2, 2023, 6:05 p.m.