Klasse JavaCoverageParser
java.lang.Object
io.jenkins.plugins.coverage.adapter.parser.CoverageParser
io.jenkins.plugins.coverage.adapter.parser.JavaCoverageParser
- Bekannte direkte Unterklassen:
JacocoReportAdapter.JacocoCoverageParser
parse Java standard format coverage report to CoverageResult
.
The standard format should be like this
<report name="cobertura">
<group name="io.jenkins.plugins.coverage">
<package name="io.jenkins.plugins.coverage.adapter.parser">
<file name="JavaCoverageParser.java">
<class name="io.jenkins.plugins.coverage.adapter.parser.JavaCoverageParser">
<method name="processElement" signature="...">
<line number="1" hits="1"/>
</method>
...
<line number="1" hits="1" branch="false"/>
<line number="2" hits="11" branch="false"/>
...
</class>
...
</file>
...
</package>
...
</group>
...
</report>
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected CoverageResult
processElement
(Element current, CoverageResult parentResult) Process DOMElement
and convert it toCoverageResult
.Von Klasse geerbte Methoden io.jenkins.plugins.coverage.adapter.parser.CoverageParser
getAttribute, getAttribute, getReportName, parse, parse, processLine, setReportName
-
Konstruktordetails
-
JavaCoverageParser
-
-
Methodendetails
-
processElement
Beschreibung aus Klasse kopiert:CoverageParser
Process DOMElement
and convert it toCoverageResult
.- Angegeben von:
processElement
in KlasseCoverageParser
- Parameter:
current
- current elementparentResult
- parent coverage result- Gibt zurück:
- coverage result converted from Element
-