Skip to content

Commit 9c1de2a

Browse files
authored
Merge pull request #366 from billdenney/increasing_testing_coverage_revision
Increasing Testing Coverage (revision)
2 parents d45cd2d + c3dc3af commit 9c1de2a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

R/pk.calc.all.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ pk.nca.interval <- function(conc, time, volume, duration.conc,
376376
all_intervals <- get.interval.cols()
377377
# Set the dose to NA if its length is zero
378378
if (length(dose) == 0) {
379-
stop("Please report a bug. Length of dose should not be zero.")
379+
stop("Please report a bug. Length of dose should not be zero.") # nocov
380380
}
381381
# Make sure that we calculate all of the dependencies. Do this in
382382
# reverse order for dependencies of dependencies.

tests/testthat/test-time.to.steady.state.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,3 +750,9 @@ test_that("tss Monoexponential no models converged", {
750750
expect_warning(pk.tss.monoexponential.population(data = bad_data, output = "population"),
751751
regexp = "No population model for monoexponential Tss converged, no results given")
752752
})
753+
754+
test_that("tss Monoexponential no models converged with verbose = TRUE", {
755+
bad_data <- data.frame(subject=rep(1:2, each = 4), time=0, conc=0, tss.constant=0.9)
756+
expect_warning(pk.tss.monoexponential.population(data = bad_data, output = "population", verbose = TRUE),
757+
regexp = "No population model for monoexponential Tss converged, no results given")
758+
})

0 commit comments

Comments
 (0)