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
KonstruktorenKonstruktorBeschreibungCreates 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 colorswhich 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:CoverageColumnTypeGets the coverage of the passed metric from the passed action.- Angegeben von:
getCoveragein KlasseCoverageColumnType- Parameter:
action- Theactionwhich 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:CoverageColumnTypeGets thedisplay colorswhich are used for visualizing the passed coverage.- Angegeben von:
getDisplayColorsin KlasseCoverageColumnType- Parameter:
coverage- The coverage percentage- Gibt zurück:
- the display colors
-
formatCoverage
Beschreibung aus Klasse kopiert:CoverageColumnTypeFormats the passed coverage using the passedLocale.- Angegeben von:
formatCoveragein KlasseCoverageColumnType- Parameter:
coverage- The coverage to be formattedlocale- The locale- Gibt zurück:
- the formatted coverage string
-