Verwendungen von Klasse
io.jenkins.plugins.coverage.model.CoverageMetric
Package
Beschreibung
New coverage model that tries to replace all the existing functionality with a more versatile model.
Contains logic and models for visualizing code coverage within a dashboard column.
-
Verwendungen von CoverageMetric in io.jenkins.plugins.coverage.model
Modifizierer und TypFeldBeschreibungstatic final CoverageMetric
CoverageMetric.BRANCH
Branch coverage.static final CoverageMetric
CoverageMetric.CLASS
Class coverage.static final CoverageMetric
CoverageMetric.FILE
File coverage.static final CoverageMetric
CoverageMetric.INSTRUCTION
Instruction coverage.static final CoverageMetric
CoverageMetric.LINE
Line coverage.static final CoverageMetric
CoverageMetric.METHOD
Method coverage.static final CoverageMetric
CoverageMetric.MODULE
Module coverage.static final CoverageMetric
CoverageMetric.PACKAGE
Package or namespace coverage.Modifizierer und TypMethodeBeschreibungCoverageLeaf.getMetric()
CoverageNode.getMetric()
Returns the type if the coverage metric for this node.static CoverageMetric
Creates a newCoverageMetric
with the specified name.Modifizierer und TypMethodeBeschreibungSortedMap
<CoverageMetric, org.apache.commons.lang3.math.Fraction> CoverageNode.computeDelta
(CoverageNode reference) Computes the coverage delta between this node and the specified reference node as fractions between 0 and 1.CoverageNode.computeDeltaAsPercentage
(CoverageNode reference) Computes the coverage delta between this node and the specified reference node as percentage between 0 and 100.static List
<CoverageMetric> CoverageMetric.getAvailableCoverageMetrics()
Provides all available values ofCoverageMetric
.CoverageBuildAction.getDifference()
Returns the delta metrics, i.e.CoverageNode.getImportantMetrics()
Returns the most important coverage metrics.SortedMap
<CoverageMetric, org.apache.commons.lang3.math.Fraction> CoverageNode.getMetricFractions()
Gets the coverage for each available metric as a fraction between 0 and 1.CoverageNode.getMetricPercentages()
Gets the coverage for each available metric as a percentage between 0 and 100.CoverageNode.getMetrics()
Returns the available coverage metrics for the whole tree starting with this node.CoverageNode.getMetricsDistribution()
Returns a mapping of metric to coverage.Modifizierer und TypMethodeBeschreibungint
CoverageMetric.compareTo
(CoverageMetric other) CoverageNode.find
(CoverageMetric searchMetric, String searchPath) Finds the coverage metric with the given path starting from this node.CoverageNode.findByHashCode
(CoverageMetric searchMetric, int searchNameHashCode) Finds the coverage metric with the given hash code starting from this node.CoverageBuildAction.formatChangeCoverage
(CoverageMetric metric) Returns a formatted and localized String representation of the change coverage for the specified metric (with respect to the reference build).CoverageBuildAction.formatChangeCoverageDifference
(CoverageMetric metric) Returns a formatted and localized String representation of the change coverage delta for the specified metric (with respect to the reference build).CoverageBuildAction.formatCoverage
(CoverageMetric metric) Returns a formatted and localized String representation of the coverage percentage for the specified metric (with respect to the reference build).CoverageBuildAction.formatDelta
(CoverageMetric metric) Returns a formatted and localized String representation of the delta for the specified metric (with respect to the reference build).CoverageBuildAction.formatIndirectCoverageChanges
(CoverageMetric metric) Returns a formatted and localized String representation of an overview of the indirect coverage changes (with respect to the reference build).CoverageNode.getAll
(CoverageMetric searchMetric) Returns recursively all nodes for the specified metric type.CoverageBuildAction.getChangeCoverage
(CoverageMetric coverageMetric) Gets thechange coverage
for the passed metric.CoverageBuildAction.getChangeCoverageDifference
(CoverageMetric coverageMetric) Returns the change coverage delta for the passed metric, i.e.CoverageBuildAction.getCoverage
(CoverageMetric coverageMetric) Returns theCoverage
for the specified metric.CoverageLeaf.getCoverage
(CoverageMetric searchMetric) Returns the coverage for the specified metric.CoverageNode.getCoverage
(CoverageMetric searchMetric) Returns the coverage for the specified metric.FileCoverageNode.getFileCoverageDeltaForMetric
(CoverageMetric coverageMetric) Gets the file coverage delta for the passedCoverageMetric
.CoverageBuildAction.getIndirectCoverageChanges
(CoverageMetric coverageMetric) Gets theindirect coverage changes
for the passed metric.boolean
CoverageBuildAction.hasChangeCoverage
(CoverageMetric coverageMetric) Returns whether a change coverage exists for the passedCoverageMetric
.boolean
CoverageNode.hasChangeCoverage
(CoverageMetric coverageMetric) Checks whether the coverage tree contains a change coverage for the passedCoverageMetric
.boolean
CoverageBuildAction.hasChangeCoverageDifference
(CoverageMetric metric) Returns whether a change coverage delta metric for the specified metric exist.boolean
CoverageBuildAction.hasCoverage
(CoverageMetric coverageMetric) Returns whether aCoverage
for the specified metric exists.boolean
CoverageBuildAction.hasDelta
(CoverageMetric metric) Returns whether a delta metric for the specified metric exist.boolean
FileCoverageNode.hasFileCoverageDelta
(CoverageMetric coverageMetric) Checks whether the file coverage delta exists for the passedCoverageMetric
.boolean
CoverageBuildAction.hasIndirectCoverageChanges
(CoverageMetric coverageMetric) Returns whether indirect coverage changes exist for the passedCoverageMetric
.boolean
CoverageNode.hasIndirectCoverageChanges
(CoverageMetric coverageMetric) Checks whether the coverage tree contains indirect coverage changes for the passedCoverageMetric
.CoverageNode.printCoverageFor
(CoverageMetric searchMetric) Prints the coverage for the specified element.CoverageNode.printCoverageFor
(CoverageMetric searchMetric, Locale locale) Prints the coverage for the specified element.void
FileCoverageNode.putFileCoverageDelta
(CoverageMetric coverageMetric, CoveragePercentage delta) Adds afile coverage delta
of this file against a reference for the passedCoverageMetric
.Modifizierer und TypMethodeBeschreibungvoid
FileCoverageNode.setFileCoverageDelta
(SortedMap<CoverageMetric, CoveragePercentage> fileCoverageDelta) ModifiziererKonstruktorBeschreibungCoverageLeaf
(CoverageMetric metric, Coverage coverage) Creates a new leaf with the given coverage for the specified metric.CoverageNode
(CoverageMetric metric, String name) Creates a new coverage item node with the given name.CoverageNode
(CoverageMetric metric, String name, CoverageTreeCreator coverageTreeCreator) Creates a new coverage item node with the given name and a mockedCoverageTreeCreator
.ModifiziererKonstruktorBeschreibungCoverageBuildAction
(Run<?, ?> owner, CoverageNode result, HealthReport healthReport, String referenceBuildId, SortedMap<CoverageMetric, CoveragePercentage> delta, SortedMap<CoverageMetric, CoveragePercentage> changeCoverage, SortedMap<CoverageMetric, CoveragePercentage> changeCoverageDifference, SortedMap<CoverageMetric, CoveragePercentage> indirectCoverageChanges) Creates a new instance ofCoverageBuildAction
. -
Verwendungen von CoverageMetric in io.jenkins.plugins.coverage.model.visualization.dashboard
Modifizierer und TypMethodeBeschreibungChangeCoverage.getCoverage
(CoverageBuildAction action, CoverageMetric metric) ChangeCoverageDelta.getCoverage
(CoverageBuildAction action, CoverageMetric metric) abstract Optional
<CoveragePercentage> CoverageColumnType.getCoverage
(CoverageBuildAction action, CoverageMetric metric) Gets the coverage of the passed metric from the passed action.IndirectCoverageChanges.getCoverage
(CoverageBuildAction action, CoverageMetric metric) ProjectCoverage.getCoverage
(CoverageBuildAction action, CoverageMetric metric) ProjectCoverageDelta.getCoverage
(CoverageBuildAction action, CoverageMetric metric) -
Verwendungen von CoverageMetric in io.jenkins.plugins.coverage.model.visualization.tree
Modifizierer und TypMethodeBeschreibungedu.hm.hafner.echarts.TreeMapNode
TreeMapNodeConverter.toTeeChartModel
(CoverageNode node, CoverageMetric metric, ColorProvider colorProvider) Converts a coverage tree ofCoverageNode
to a ECharts tree map ofTreeMapNode
.