tests/testthat/Testbox/app/modules/module.R

#' an example function
#'
#' @export
a <- function(x) {
  if (x <= 1) {
    1
  } else {
    2
  }
}

private_function <- function(x) {
  x ^ 2
}
r-lib/covr documentation built on April 9, 2024, 2:14 p.m.