Uses of Enum
com.parasoft.findings.jenkins.coverage.model.Metric
Package
Description
Contains models to format coverages and aggregate values.
New coverage model that tries to replace all the existing functionality with a more versatile model.
Generic coverage model to parse and collect code coverage results of different tools.
-
Uses of Metric in com.parasoft.findings.jenkins.coverage.api.metrics.model
Modifier and TypeMethodDescriptionboolean
CoverageStatistics.containsValue
(Baseline baseline, Metric metric) Returns whether a value for the specified metric and baseline is available.ElementFormatter.getDisplayName
(Metric metric) Returns a localized human-readable name for the specified metric.Returns a localized human-readable label for the specified metric.Returns the value for the specified baseline and metric. -
Uses of Metric in com.parasoft.findings.jenkins.coverage.api.metrics.steps
Modifier and TypeMethodDescriptionCoverageBuildAction.formatValue
(Baseline baseline, Metric metric) Returns a formatted and localized String representation of the value for the specified metric (with respect to the given baseline).CoverageBuildAction.getValueForMetric
(Baseline baseline, Metric metric) Returns the value for the specified metric, if available. -
Uses of Metric in com.parasoft.findings.jenkins.coverage.model
Modifier and TypeMethodDescriptionstatic Metric
Returns the metric that belongs to the specified tag.Node.getMetric()
final Metric
Value.getMetric()
static Metric
Returns the enum constant of this type with the specified name.static Metric[]
Metric.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionNavigableMap<Metric,
org.apache.commons.lang3.math.Fraction> Node.computeDelta
(Node reference) Computes the delta of all metrics between this node and the specified reference node as fractions.static NavigableSet<Metric>
Metric.getCoverageMetrics()
Node.getMetrics()
Returns the available metrics for the whole tree starting with this node.Node.getValueMetrics()
Returns the available metrics for the whole tree starting with this node.Modifier and TypeMethodDescriptionboolean
Node.containsMetric
(Metric searchMetric) Returns whether results for the specified metric are available within the tree spanned by this node.Finds the metric with the given name starting from this node.Node.findByHashCode
(Metric searchMetric, int searchNameHashCode) Finds the metric with the given hash code starting from this node.Searches for a value with the specified metric in the specified list of values.Returns recursively all nodes for the specified metric type.org.apache.commons.lang3.math.Fraction
Returns the delta for the specified metric.<T extends Value>
TNode.getTypedValue
(Metric searchMetric, T defaultValue) Returns the value for the specified metric.Returns the value for the specified metric.static Value
Searches for a value with the specified metric in the specified list of values.boolean
Returns whether this file has a delta result for the specified metric.boolean
boolean
boolean
Returns whether this node matches the specified metric and name.boolean
Returns whether this node matches the specified metric and name.static Coverage
Coverage.nullObject
(Metric metric) Returns anull
object that indicates that no coverage has been recorded.Sets the metric of the coverage.static Coverage
Creates a newCoverage
instance from the provided string representation.ModifierConstructorDescriptionCoverageBuilder
(Metric metric) Creates a newCoverage.CoverageBuilder
with the specified metric.CyclomaticComplexity
(int complexity, Metric metric) Creates a newCyclomaticComplexity
instance with the specified complexity.FractionValue
(Metric metric, int numerator, int denominator) Creates a newFractionValue
from the specified counters for the given metric.FractionValue
(Metric metric, org.apache.commons.lang3.math.Fraction fraction) Creates a newFractionValue
with the specified value for the given metric.protected
Creates a new node with the given name.protected
Creates a new leaf with the given coverage for the specified metric.