Class AbstractJaCoCoCoverageColumn
- java.lang.Object
-
- hudson.views.ListViewColumn
-
- hudson.plugins.jacococoveragecolumn.AbstractJaCoCoCoverageColumn
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ListViewColumn>
- Direct Known Subclasses:
BranchCoverageColumn
,JaCoCoColumn
public abstract class AbstractJaCoCoCoverageColumn extends ListViewColumn
Abstract view column to show the code coverage percentage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description AbstractJaCoCoCoverageColumn()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getColor(Job<?,?> job, BigDecimal amount)
BigDecimal
getCoverage(Job<?,?> job)
String
getFillColor(Job<?,?> job, BigDecimal amount)
String
getPercent(Job<?,?> job)
protected abstract Float
getPercentageFloat(Run<?,?> build)
protected Float
getPercentageFloat(Run<?,?> lastSuccessfulBuild, Function<JacocoBuildAction,Float> percentageFunction)
boolean
hasCoverage(Job<?,?> job)
-
Methods inherited from class hudson.views.ListViewColumn
all, createDefaultInitialColumnList, createDefaultInitialColumnList, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
-
-
-
-
Method Detail
-
getPercentageFloat
protected Float getPercentageFloat(Run<?,?> lastSuccessfulBuild, Function<JacocoBuildAction,Float> percentageFunction)
-
hasCoverage
public boolean hasCoverage(Job<?,?> job)
-
getColor
public String getColor(Job<?,?> job, BigDecimal amount)
-
getFillColor
public String getFillColor(Job<?,?> job, BigDecimal amount)
-
getCoverage
public BigDecimal getCoverage(Job<?,?> job)
-
-