Learn R Programming

risk.assessr (version 3.0.1)

get_max_thresholds: Extract Maximum Thresholds for Code Coverage Levels

Description

This internal function retrieves the `max` values for `"high"`,`"medium"`, and `"low"` levels from a list of code coverage thresholds.

Usage

get_max_thresholds(thresholds)

Value

A list with three elements:

high_max

The maximum threshold value for the `"high"` level.

medium_max

The maximum threshold value for the `"medium"` level.

medium_max

The maximum threshold value for the `"low"` level.

Arguments

thresholds

A list of threshold objects, each containing a `level` and `max` field.