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
KonstruktorenKonstruktorBeschreibungCreates 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 colorswhich 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: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
-
getAnchor
Beschreibung aus Klasse kopiert:CoverageColumnTypeReturns 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:
getAnchorin KlasseCoverageColumnType- Gibt zurück:
- the anchor
-