Klasse ChangeCoverageDelta
java.lang.Object
io.jenkins.plugins.coverage.model.visualization.dashboard.CoverageColumnType
io.jenkins.plugins.coverage.model.visualization.dashboard.ChangeCoverageDelta
Concrete implementation of
CoverageColumnType
which represents the change coverage delta.- Autor:
- Florian Orendi
-
Konstruktorübersicht
KonstruktorBeschreibungCreates a column type to be used for representing the change coverage delta. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungformatCoverage
(CoveragePercentage coverage, Locale locale) Formats the passed coverage using the passedLocale
.Returns the anchor which stands for a specific part of the coverage report which belongs to this coverage column.getCoverage
(CoverageBuildAction action, CoverageMetric metric) Gets the coverage of the passed metric from the passed action.getDisplayColors
(CoveragePercentage coverage) Gets thedisplay colors
which are used for visualizing the passed coverage.Von Klasse geerbte Methoden io.jenkins.plugins.coverage.model.visualization.dashboard.CoverageColumnType
getAvailableCoverageTypeNames, getColorProvider, getDisplayName
-
Konstruktordetails
-
ChangeCoverageDelta
public ChangeCoverageDelta()Creates a column type to be used for representing the change coverage delta.
-
-
Methodendetails
-
getCoverage
Beschreibung aus Klasse kopiert:CoverageColumnType
Gets the coverage of the passed metric from the passed action.- Angegeben von:
getCoverage
in KlasseCoverageColumnType
- Parameter:
action
- Theaction
which contains the coveragemetric
- Thecoverage metric
- Gibt zurück:
- the coverage as optional or an empty optional if no coverage has been found
-
getDisplayColors
Beschreibung aus Klasse kopiert:CoverageColumnType
Gets thedisplay colors
which are used for visualizing the passed coverage.- Angegeben von:
getDisplayColors
in KlasseCoverageColumnType
- Parameter:
coverage
- The coverage percentage- Gibt zurück:
- the display colors
-
formatCoverage
Beschreibung aus Klasse kopiert:CoverageColumnType
Formats the passed coverage using the passedLocale
.- Angegeben von:
formatCoverage
in KlasseCoverageColumnType
- Parameter:
coverage
- The coverage to be formattedlocale
- The locale- Gibt zurück:
- the formatted coverage string
-
getAnchor
Beschreibung aus Klasse kopiert:CoverageColumnType
Returns the anchor which stands for a specific part of the coverage report which belongs to this coverage column. The default value is '#overview'.- Setzt außer Kraft:
getAnchor
in KlasseCoverageColumnType
- Gibt zurück:
- the anchor
-