Skip to main content

resolve_coverage_inputs

Function resolve_coverage_inputs 

Source
pub fn resolve_coverage_inputs(
    explicit: CoverageInputs,
    env: CoverageInputs,
    config_health: Option<&HealthConfig>,
) -> Result<CoverageInputs, CoverageInputError>
Expand description

Resolve coverage inputs with the shared precedence: explicit, then env, then config_health. Each input resolves independently, so an explicit coverage path pairs with an environment or config root and vice versa. config_health is the health section of the project config when the caller loaded one; see CoverageInputs::needs_config_layer.

ยงErrors

Returns CoverageInputError::RelativeCoverageRoot when the winning coverage_root is not absolute under Unix or Windows conventions.