Klasse ProjectCoverage
java.lang.Object
io.jenkins.plugins.coverage.model.visualization.dashboard.CoverageColumnType
io.jenkins.plugins.coverage.model.visualization.dashboard.ProjectCoverage
Concrete implementation of
CoverageColumnType
which represents the project coverage.- Autor:
- Florian Orendi
-
Konstruktorübersicht
KonstruktorBeschreibungCreates a column type to be used for representing the project coverage. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungformatCoverage
(CoveragePercentage coverage, Locale locale) Formats the passed coverage using the passedLocale
.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
getAnchor, getAvailableCoverageTypeNames, getColorProvider, getDisplayName
-
Konstruktordetails
-
ProjectCoverage
public ProjectCoverage()Creates a column type to be used for representing the project coverage.
-
-
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
-