R/value.R

Defines functions value.expression_coverage value.coverage value

Documented in value

#' Retrieve the value from an object
#' @export
#' @param x object from which to retrieve the value
#' @param ... additional arguments passed to methods
value <- function(x, ...) UseMethod("value")

#' @export
value.coverage <- function(x, ...) {
  vdapply(x, value, ...)
}

#' @export
value.expression_coverage <- function(x, ...) {
  x$value
}

#' @export
value.expression_coverages <- value.coverage

#' @export
value.line_coverage <- value.expression_coverage

#' @export
value.line_coverages <- value.expression_coverages

Try the covr package in your browser

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

covr documentation built on Nov. 9, 2023, 9:07 a.m.