-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-73325: Use ID when merging nodes (#117)
JENKINS-73325: Use ID when merging nodes. Followup to #113
- Loading branch information
Showing
5 changed files
with
171 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/test/resources/edu/hm/hafner/coverage/parser/cobertura/cobertura-same-filename.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd"> | ||
<coverage line-rate="1" branch-rate="1" lines-covered="12" lines-valid="12" branches-covered="6" branches-valid="6" complexity="6" version="0" timestamp="1675424586"> | ||
<sources> | ||
<source>D:\</source> | ||
</sources> | ||
<packages> | ||
<package name="Numbers" line-rate="1" branch-rate="1" complexity="6"> | ||
<classes> | ||
<class name="NamespaceA.MyClass" filename="/src/NamespaceA/MyClass.cs" line-rate="1" branch-rate="0.6" complexity="3"> | ||
<methods> | ||
<method name="Method" signature="System.Void ()" line-rate="1" branch-rate="0.5" complexity="3"> | ||
<lines> | ||
<line number="17" hits="2" branch="true" condition-coverage="50% (2/4)"> | ||
<conditions> | ||
<condition number="1779" type="jump" coverage="50%" /> | ||
</conditions> | ||
</line> | ||
</lines> | ||
</method> | ||
</methods> | ||
</class> | ||
<class name="NamespaceB.MyClass" filename="/src/NamespaceB/MyClass.cs" line-rate="0" branch-rate="0" complexity="4"> | ||
<methods> | ||
<method name="Method" signature="System.Void ()" line-rate="0" branch-rate="0" complexity="4"> | ||
<lines> | ||
<line number="17" hits="0" branch="true" condition-coverage="0% (0/6)"> | ||
<conditions> | ||
<condition number="3339" type="jump" coverage="0%" /> | ||
</conditions> | ||
</line> | ||
</lines> | ||
</method> | ||
</methods> | ||
</class> | ||
</classes> | ||
</package> | ||
</packages> | ||
</coverage> |
53 changes: 53 additions & 0 deletions
53
src/test/resources/edu/hm/hafner/coverage/parser/cobertura/merge-duplicate-a.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd"> | ||
<coverage line-rate="0.02" branch-rate="0.02" lines-covered="417" lines-valid="18516" branches-covered="112" branches-valid="5820" complexity="19" version="8.8.0.0" timestamp="1715002690"> | ||
<sources> | ||
<source>D:\</source> | ||
</sources> | ||
<packages> | ||
<package name="Domain" line-rate="0.04" branch-rate="0.03" complexity="1.95"> | ||
<classes> | ||
<class name="Domain.NamespaceA.MyClass" filename="/src/Domain/NamespaceA/MyClass.cs" line-rate="0" branch-rate="0" complexity="4"> | ||
<methods> | ||
<method name="Method" signature="System.Void ()" line-rate="0" branch-rate="0" complexity="4"> | ||
<lines> | ||
<line number="17" hits="0" branch="true" condition-coverage="0% (0/6)"> | ||
<conditions> | ||
<condition number="3339" type="jump" coverage="0%" /> | ||
</conditions> | ||
</line> | ||
</lines> | ||
</method> | ||
</methods> | ||
<lines> | ||
<line number="17" hits="0" branch="true" condition-coverage="0% (0/6)"> | ||
<conditions> | ||
<condition number="3339" type="jump" coverage="0%" /> | ||
</conditions> | ||
</line> | ||
</lines> | ||
</class> | ||
<class name="Domain.NamespaceB.MyClass" filename="/src/Domain/NamespaceB/MyClass.cs" line-rate="1" branch-rate="0.6" complexity="3"> | ||
<methods> | ||
<method name="Method" signature="System.Void ()" line-rate="1" branch-rate="0.5" complexity="3"> | ||
<lines> | ||
<line number="17" hits="2" branch="true" condition-coverage="50% (2/4)"> | ||
<conditions> | ||
<condition number="1779" type="jump" coverage="50%" /> | ||
</conditions> | ||
</line> | ||
</lines> | ||
</method> | ||
</methods> | ||
<lines> | ||
<line number="17" hits="2" branch="true" condition-coverage="50% (2/4)"> | ||
<conditions> | ||
<condition number="1779" type="jump" coverage="50%" /> | ||
</conditions> | ||
</line> | ||
</lines> | ||
</class> | ||
</classes> | ||
</package> | ||
</packages> | ||
</coverage> |
53 changes: 53 additions & 0 deletions
53
src/test/resources/edu/hm/hafner/coverage/parser/cobertura/merge-duplicate-b.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd"> | ||
<coverage line-rate="0" branch-rate="0" lines-covered="93" lines-valid="36985" branches-covered="18" branches-valid="11402" complexity="61" version="8.8.0.0" timestamp="1718963829"> | ||
<sources> | ||
<source>D:\</source> | ||
</sources> | ||
<packages> | ||
<package name="Domain" line-rate="0" branch-rate="0" complexity="1.95"> | ||
<classes> | ||
<class name="Domain.NamespaceA.MyClass" filename="/src/Domain/NamespaceA/MyClass.cs" line-rate="0" branch-rate="0" complexity="4"> | ||
<methods> | ||
<method name="Validate" signature="System.Void ()" line-rate="0" branch-rate="0" complexity="4"> | ||
<lines> | ||
<line number="17" hits="0" branch="true" condition-coverage="0% (0/6)"> | ||
<conditions> | ||
<condition number="3339" type="jump" coverage="0%" /> | ||
</conditions> | ||
</line> | ||
</lines> | ||
</method> | ||
</methods> | ||
<lines> | ||
<line number="17" hits="0" branch="true" condition-coverage="0% (0/6)"> | ||
<conditions> | ||
<condition number="3339" type="jump" coverage="0%" /> | ||
</conditions> | ||
</line> | ||
</lines> | ||
</class> | ||
<class name="Domain.NamespaceB.MyClass" filename="/src/Domain/NamespaceB/MyClass.cs" line-rate="0" branch-rate="0" complexity="3"> | ||
<methods> | ||
<method name="Validate" signature="System.Void ()" line-rate="0" branch-rate="0" complexity="3"> | ||
<lines> | ||
<line number="17" hits="0" branch="true" condition-coverage="0% (0/4)"> | ||
<conditions> | ||
<condition number="1779" type="jump" coverage="0%" /> | ||
</conditions> | ||
</line> | ||
</lines> | ||
</method> | ||
</methods> | ||
<lines> | ||
<line number="17" hits="0" branch="true" condition-coverage="0% (0/4)"> | ||
<conditions> | ||
<condition number="1779" type="jump" coverage="0%" /> | ||
</conditions> | ||
</line> | ||
</lines> | ||
</class> | ||
</classes> | ||
</package> | ||
</packages> | ||
</coverage> |