Uses of Class
com.parasoft.findings.jenkins.coverage.model.Value
-
Packages that use Value Package Description com.parasoft.findings.jenkins.coverage.api.metrics.model Contains models to format coverages and aggregate values.com.parasoft.findings.jenkins.coverage.api.metrics.steps New coverage model that tries to replace all the existing functionality with a more versatile model.com.parasoft.findings.jenkins.coverage.model Generic coverage model to parse and collect code coverage results of different tools. -
-
Uses of Value in com.parasoft.findings.jenkins.coverage.api.metrics.model
Methods in com.parasoft.findings.jenkins.coverage.api.metrics.model that return types with arguments of type Value Modifier and Type Method Description Optional<Value>
CoverageStatistics. getValue(Baseline baseline, Metric metric)
Returns the value for the specified baseline and metric.Methods in com.parasoft.findings.jenkins.coverage.api.metrics.model with parameters of type Value Modifier and Type Method Description String
ElementFormatter. format(Value value)
Formats a generic value using a specific rendering method.String
ElementFormatter. format(Value value, Locale locale)
Formats a generic value using a specific rendering method.String
ElementFormatter. formatAdditionalInformation(Value value)
Formats additional information for a generic value using a specific rendering method.String
ElementFormatter. formatDetailedValueWithMetric(Value value)
Returns a formatted and localized String representation of the specified value prefixed with the metric name.String
ElementFormatter. formatDetails(Value value, Locale locale)
Formats a generic value using a specific rendering method.String
ElementFormatter. formatValue(Value value)
Returns a formatted and localized String representation of the specified value (without metric).String
ElementFormatter. formatValueWithMetric(Value value)
Returns a formatted and localized String representation of the specified value prefixed with the metric name.String
ElementFormatter. getBackgroundColorFillPercentage(Value value)
Returns the fill percentage for the specified value.ColorProvider.DisplayColors
ElementFormatter. getDisplayColors(Baseline baseline, Value value)
Provides the colors to render a given coverage percentage.Constructor parameters in com.parasoft.findings.jenkins.coverage.api.metrics.model with type arguments of type Value Constructor Description CoverageStatistics(List<? extends Value> projectValueMapping, List<? extends Value> modifiedLinesValueMapping)
Creates a new instance ofCoverageStatistics
. -
Uses of Value in com.parasoft.findings.jenkins.coverage.api.metrics.steps
Methods in com.parasoft.findings.jenkins.coverage.api.metrics.steps that return types with arguments of type Value Modifier and Type Method Description List<Value>
CoverageBuildAction. getAllValues(Baseline baseline)
Returns all available values for the specified baseline.Optional<? extends Value>
CoverageMetricColumn. getCoverageValue(Job<?,?> job)
Provides the coverage value of the selected coverage type and metric.Optional<Value>
CoverageBuildAction. getValueForMetric(Baseline baseline, Metric metric)
Returns the value for the specified metric, if available.List<Value>
CoverageBuildAction. getValues(Baseline baseline)
Returns all important values for the specified baseline.Method parameters in com.parasoft.findings.jenkins.coverage.api.metrics.steps with type arguments of type Value Modifier and Type Method Description ColorProvider.DisplayColors
CoverageMetricColumn. getDisplayColors(Job<?,?> job, Optional<? extends Value> coverage)
Provides the line color for representing the passed coverage value.Constructor parameters in com.parasoft.findings.jenkins.coverage.api.metrics.steps with type arguments of type Value Constructor Description CoverageBuildAction(Run<?,?> owner, String id, String icon, Node result, io.jenkins.plugins.util.QualityGateResult qualityGateResult, edu.hm.hafner.util.FilteredLog log, String referenceBuildId, List<? extends Value> modifiedLinesCoverage, ReferenceResult referenceResult)
Creates a new instance ofCoverageBuildAction
. -
Uses of Value in com.parasoft.findings.jenkins.coverage.model
Subclasses of Value in com.parasoft.findings.jenkins.coverage.model Modifier and Type Class Description class
Coverage
Value of a code coverage metric.class
CyclomaticComplexity
Represents the cyclomatic complexity in a particular code block.class
FractionValue
Represents the value of a rational number based metric.class
IntegerValue
Represents the value of an integer based metric.class
LinesOfCode
Represents the lines of code in a particular code block.Methods in com.parasoft.findings.jenkins.coverage.model with type parameters of type Value Modifier and Type Method Description <T extends Value>
TNode. getTypedValue(Metric searchMetric, T defaultValue)
Returns the value for the specified metric.Methods in com.parasoft.findings.jenkins.coverage.model that return Value Modifier and Type Method Description Value
FractionValue. add(Value other)
abstract Value
Value. add(Value other)
Add the coverage from the specified instance to the coverage of this instance.static Value
Value. getValue(Metric metric, List<Value> values)
Searches for a value with the specified metric in the specified list of values.Value
FractionValue. max(Value other)
abstract Value
Value. max(Value other)
Merge this coverage with the specified coverage.static Value
Value. valueOf(String stringRepresentation)
Creates a newValue
instance from the provided string representation.Methods in com.parasoft.findings.jenkins.coverage.model that return types with arguments of type Value Modifier and Type Method Description List<Value>
Node. aggregateValues()
Aggregates all values that are part of the subtree that is spanned by this node.static Optional<Value>
Value. findValue(Metric metric, List<Value> values)
Searches for a value with the specified metric in the specified list of values.Optional<Value>
Node. getValue(Metric searchMetric)
Returns the value for the specified metric.Optional<Value>
Metric. getValueFor(Node node)
Returns the aggregated value of this metric for the specified tree of nodes.List<Value>
Node. getValues()
Methods in com.parasoft.findings.jenkins.coverage.model with parameters of type Value Modifier and Type Method Description Coverage
Coverage. add(Value other)
Value
FractionValue. add(Value other)
IntegerValue
IntegerValue. add(Value other)
abstract Value
Value. add(Value other)
Add the coverage from the specified instance to the coverage of this instance.void
Node. addValue(Value value)
Appends the specified value to the list of values.org.apache.commons.lang3.math.Fraction
Coverage. delta(Value other)
org.apache.commons.lang3.math.Fraction
FractionValue. delta(Value other)
org.apache.commons.lang3.math.Fraction
IntegerValue. delta(Value other)
abstract org.apache.commons.lang3.math.Fraction
Value. delta(Value other)
Computes the delta of this value with the specified value.protected boolean
Value. hasSameMetric(Value other)
Returns whether this value has the same metric as the specified value.Coverage
Coverage. max(Value other)
Value
FractionValue. max(Value other)
IntegerValue
IntegerValue. max(Value other)
abstract Value
Value. max(Value other)
Merge this coverage with the specified coverage.void
Node. replaceValue(Value value)
Replaces an existing value of the specified metric with the specified value.Method parameters in com.parasoft.findings.jenkins.coverage.model with type arguments of type Value Modifier and Type Method Description protected void
Node. addAllValues(Collection<? extends Value> additionalValues)
static Optional<Value>
Value. findValue(Metric metric, List<Value> values)
Searches for a value with the specified metric in the specified list of values.static Value
Value. getValue(Metric metric, List<Value> values)
Searches for a value with the specified metric in the specified list of values.
-