Klasse VectorCastSourcePrinter
java.lang.Object
io.jenkins.plugins.coverage.metrics.source.VectorCastSourcePrinter
- Alle implementierten Schnittstellen:
Serializable
Provides all required information for a
FileNode
so that its source code can be rendered together with the
line and mutation coverage in HTML.- Siehe auch:
-
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected String
cleanupCode
(String content) getColorClass
(int line) Gets the color class depending on coverage types.Gets the source code column header.int
getCovered
(int line) int
getFunctionCallCovered
(int line) Returns the count of covered Function Calls on a line.int
getFunctionCallMissed
(int line) Returns the count of missed Function Calls on a line.getFunctionCallSummaryColumn
(int line) Creates the function call summary column.getfunctionCallTooltip
(int line) Constructs the tooltip depending on the coverage.int
getMcdcPairCovered
(int line) Returns the count of covered MCDC Pairs on a line.int
getMcdcPairMissed
(int line) Returns the count of missed MCDC Pairs on a line.getMcdcPairSummaryColumn
(int line) Creates the MCDC Pairs summary column.getMcdcPairTooltip
(int line) Constructs the tooltip depending on the coverage.int
getMissed
(int line) final String
getPath()
getSummaryColumn
(int line) getTooltip
(int line) Constructs the tooltip depending on the coverage.getTooltip
(int covered, int missed, boolean checkAny, String description) Constructs the tooltip depending on the coverage.boolean
Returns true if there is any Function Call coverage.boolean
Returns true if there is any MCDC Pair coverage.boolean
isPainted
(int line) renderLine
(int line, String sourceCode) Main call to render the source line in HTML table format.
-
Felddetails
-
SANITIZER
protected static final io.jenkins.plugins.prism.Sanitizer SANITIZER -
NBSP
- Siehe auch:
-
-
Methodendetails
-
renderLine
-
getColumnHeader
Gets the source code column header.- Gibt zurück:
- string of the column header
-
getColorClass
Gets the color class depending on coverage types.- Parameter:
line
- line number for the summary data- Gibt zurück:
- string of the color
-
getMcdcPairTooltip
Constructs the tooltip depending on the coverage.- Parameter:
line
- line number for the summary data- Gibt zurück:
- the MCDC Pair tooltip
-
getfunctionCallTooltip
Constructs the tooltip depending on the coverage.- Parameter:
line
- line number for the summary data- Gibt zurück:
- the function call tooltip
-
getTooltip
Constructs the tooltip depending on the coverage.- Parameter:
covered
- count of the covered coveragemissed
- count of the missed coveragecheckAny
- boolean to indicate if code should check for any covered bitsdescription
- Description of the coverage - MCDC/FCC- Gibt zurück:
- string of the tooltip
-
getTooltip
Constructs the tooltip depending on the coverage.- Parameter:
line
- line number for the summary data- Gibt zurück:
- string of the tooltip
-
hasAnyMcdcPairCoverage
public boolean hasAnyMcdcPairCoverage()Returns true if there is any MCDC Pair coverage.- Gibt zurück:
- true if there is any MCDC Pair coverage
-
hasAnyFunctionCallCoverage
public boolean hasAnyFunctionCallCoverage()Returns true if there is any Function Call coverage.- Gibt zurück:
- true if there is any Function Call coverage
-
getMcdcPairCovered
public int getMcdcPairCovered(int line) Returns the count of covered MCDC Pairs on a line.- Parameter:
line
- line number for the summary data- Gibt zurück:
- the number of covered MCDC Pairs on a line
-
getMcdcPairMissed
public int getMcdcPairMissed(int line) Returns the count of missed MCDC Pairs on a line.- Parameter:
line
- line number for the summary data- Gibt zurück:
- the number of missed MCDC Pairs on a line
-
getFunctionCallCovered
public int getFunctionCallCovered(int line) Returns the count of covered Function Calls on a line.- Parameter:
line
- line number for the summary data- Gibt zurück:
- the number of covered Function Calls on a line
-
getFunctionCallMissed
public int getFunctionCallMissed(int line) Returns the count of missed Function Calls on a line.- Parameter:
line
- line number for the summary data- Gibt zurück:
- the number of missed Function Calls on a line
-
getMcdcPairSummaryColumn
Creates the MCDC Pairs summary column.- Parameter:
line
- line number for the summary data- Gibt zurück:
- string of the MCDC Pairs summary column
-
getFunctionCallSummaryColumn
Creates the function call summary column.- Parameter:
line
- line number for the summary data- Gibt zurück:
- string of the function call summary column
-
cleanupCode
-
getSummaryColumn
-
getPath
-
isPainted
public boolean isPainted(int line) -
getCovered
public int getCovered(int line) -
getMissed
public int getMissed(int line)
-