Skip to content

Commit 3fad2a5

Browse files
committed
Update failing tests
1 parent 5f9790f commit 3fad2a5

File tree

5 files changed

+31
-13
lines changed

5 files changed

+31
-13
lines changed

tests/_files/Report/HTML/CoverageForBankAccount/dashboard.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@ <h3>Project Risks</h3>
7070
<thead>
7171
<tr>
7272
<th>Class</th>
73+
<th class="text-right">Coverage</th>
74+
<th class="text-right">Complexity</th>
7375
<th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
7476
</tr>
7577
</thead>
7678
<tbody>
77-
<tr><td><a href="BankAccount.php.html#2">BankAccount</a></td><td class="text-right">6</td></tr>
79+
<tr><td><a href="BankAccount.php.html#2">BankAccount</a></td><td class="text-right">62.5%</td><td class="text-right">5</td><td class="text-right">6</td></tr>
7880

7981
</tbody>
8082
</table>
@@ -125,11 +127,13 @@ <h3>Project Risks</h3>
125127
<thead>
126128
<tr>
127129
<th>Method</th>
130+
<th class="text-right">Coverage</th>
131+
<th class="text-right">Complexity</th>
128132
<th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
129133
</tr>
130134
</thead>
131135
<tbody>
132-
<tr><td><a href="BankAccount.php.html#11"><abbr title="BankAccount::setBalance">setBalance</abbr></a></td><td class="text-right">6</td></tr>
136+
<tr><td><a href="BankAccount.php.html#11"><abbr title="BankAccount::setBalance">setBalance</abbr></a></td><td class="text-right">0.0%</td><td class="text-right">2</td><td class="text-right">6</td></tr>
133137

134138
</tbody>
135139
</table>
@@ -143,9 +147,9 @@ <h3>Project Risks</h3>
143147
</p>
144148
</footer>
145149
</div>
146-
<script src="_js/billboard.pkgd.min.js?v=%s" type="text/javascript"></script>
147-
<script type="application/json" id="complexity_class">[[62.5,5,"BankAccount.php.html#2","BankAccount"]]</script>
148-
<script type="application/json" id="complexity_method">[[100,1,"BankAccount.php.html#6","BankAccount::getBalance"],[0,2,"BankAccount.php.html#11","BankAccount::setBalance"],[100,1,"BankAccount.php.html#20","BankAccount::depositMoney"],[100,1,"BankAccount.php.html#27","BankAccount::withdrawMoney"]]</script>
150+
<script src="_js/billboard.pkgd.min.js?v=12.3.1" type="text/javascript"></script>
151+
<script type="application/json" id="complexity_class">[[62.5,5,"BankAccount.php.html#2","BankAccount","6.32"]]</script>
152+
<script type="application/json" id="complexity_method">[[0,2,"BankAccount.php.html#11","BankAccount::setBalance","6"],[100,1,"BankAccount.php.html#6","BankAccount::getBalance","1"],[100,1,"BankAccount.php.html#20","BankAccount::depositMoney","1"],[100,1,"BankAccount.php.html#27","BankAccount::withdrawMoney","1"]]</script>
149153
<script type="text/javascript" defer>
150154
const barLabels = [
151155
'0%',
@@ -277,10 +281,12 @@ <h3>Project Risks</h3>
277281
const coverage = Math.round(data[0].x);
278282
const complexity = data[0].value;
279283
const targetName = complexityData[data[0].index][3];
284+
const crap = complexityData[data[0].index][4];
280285
return `<table class="bb-tooltip"><tbody>
281286
<tr><th colspan="2">${targetName}</th></tr>
282287
<tr class="bb-tooltip-name-complexity"><td>Coverage</td><td class="name">${coverage}%</td></tr>
283288
<tr class="bb-tooltip-name-complexity"><td>Complexity</td><td class="value">${complexity}</td></tr>
289+
<tr class="bb-tooltip-name-complexity"><td>Crap</td><td class="value">${crap}</td></tr>
284290
</tbody></table>`;
285291
},
286292
grouped: false,

tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/dashboard.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ <h3>Project Risks</h3>
6969
<thead>
7070
<tr>
7171
<th>Class</th>
72+
<th class="text-right">Coverage</th>
73+
<th class="text-right">Complexity</th>
7274
<th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
7375
</tr>
7476
</thead>
@@ -122,6 +124,8 @@ <h3>Project Risks</h3>
122124
<thead>
123125
<tr>
124126
<th>Method</th>
127+
<th class="text-right">Coverage</th>
128+
<th class="text-right">Complexity</th>
125129
<th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
126130
</tr>
127131
</thead>
@@ -139,9 +143,9 @@ <h3>Project Risks</h3>
139143
</p>
140144
</footer>
141145
</div>
142-
<script src="_js/billboard.pkgd.min.js?v=%s" type="text/javascript"></script>
143-
<script type="application/json" id="complexity_class">[[100,1,"source_with_class_and_anonymous_function.php.html#3","CoveredClassWithAnonymousFunctionInStaticMethod"]]</script>
144-
<script type="application/json" id="complexity_method">[[100,1,"source_with_class_and_anonymous_function.php.html#5","CoveredClassWithAnonymousFunctionInStaticMethod::runAnonymous"]]</script>
146+
<script src="_js/billboard.pkgd.min.js?v=12.3.1" type="text/javascript"></script>
147+
<script type="application/json" id="complexity_class">[[100,1,"source_with_class_and_anonymous_function.php.html#3","CoveredClassWithAnonymousFunctionInStaticMethod","1"]]</script>
148+
<script type="application/json" id="complexity_method">[[100,1,"source_with_class_and_anonymous_function.php.html#5","CoveredClassWithAnonymousFunctionInStaticMethod::runAnonymous","1"]]</script>
145149
<script type="text/javascript" defer>
146150
const barLabels = [
147151
'0%',
@@ -273,10 +277,12 @@ <h3>Project Risks</h3>
273277
const coverage = Math.round(data[0].x);
274278
const complexity = data[0].value;
275279
const targetName = complexityData[data[0].index][3];
280+
const crap = complexityData[data[0].index][4];
276281
return `<table class="bb-tooltip"><tbody>
277282
<tr><th colspan="2">${targetName}</th></tr>
278283
<tr class="bb-tooltip-name-complexity"><td>Coverage</td><td class="name">${coverage}%</td></tr>
279284
<tr class="bb-tooltip-name-complexity"><td>Complexity</td><td class="value">${complexity}</td></tr>
285+
<tr class="bb-tooltip-name-complexity"><td>Crap</td><td class="value">${crap}</td></tr>
280286
</tbody></table>`;
281287
},
282288
grouped: false,

tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/dashboard.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ <h3>Project Risks</h3>
6969
<thead>
7070
<tr>
7171
<th>Class</th>
72+
<th class="text-right">Coverage</th>
73+
<th class="text-right">Complexity</th>
7274
<th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
7375
</tr>
7476
</thead>
@@ -122,6 +124,8 @@ <h3>Project Risks</h3>
122124
<thead>
123125
<tr>
124126
<th>Method</th>
127+
<th class="text-right">Coverage</th>
128+
<th class="text-right">Complexity</th>
125129
<th class="text-right"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></th>
126130
</tr>
127131
</thead>
@@ -139,9 +143,9 @@ <h3>Project Risks</h3>
139143
</p>
140144
</footer>
141145
</div>
142-
<script src="_js/billboard.pkgd.min.js?v=%s" type="text/javascript"></script>
143-
<script type="application/json" id="complexity_class">[[100,1,"source_with_ignore.php.html#11","Foo"],[100,1,"source_with_ignore.php.html#18","Bar"]]</script>
144-
<script type="application/json" id="complexity_method">[[100,1,"source_with_ignore.php.html#13","Foo::bar"],[100,1,"source_with_ignore.php.html#23","Bar::foo"]]</script>
146+
<script src="_js/billboard.pkgd.min.js?v=12.3.1" type="text/javascript"></script>
147+
<script type="application/json" id="complexity_class">[[100,1,"source_with_ignore.php.html#11","Foo","1"],[100,1,"source_with_ignore.php.html#18","Bar","1"]]</script>
148+
<script type="application/json" id="complexity_method">[[100,1,"source_with_ignore.php.html#13","Foo::bar","1"],[100,1,"source_with_ignore.php.html#23","Bar::foo","1"]]</script>
145149
<script type="text/javascript" defer>
146150
const barLabels = [
147151
'0%',
@@ -273,10 +277,12 @@ <h3>Project Risks</h3>
273277
const coverage = Math.round(data[0].x);
274278
const complexity = data[0].value;
275279
const targetName = complexityData[data[0].index][3];
280+
const crap = complexityData[data[0].index][4];
276281
return `<table class="bb-tooltip"><tbody>
277282
<tr><th colspan="2">${targetName}</th></tr>
278283
<tr class="bb-tooltip-name-complexity"><td>Coverage</td><td class="name">${coverage}%</td></tr>
279284
<tr class="bb-tooltip-name-complexity"><td>Complexity</td><td class="value">${complexity}</td></tr>
285+
<tr class="bb-tooltip-name-complexity"><td>Crap</td><td class="value">${crap}</td></tr>
280286
</tbody></table>`;
281287
},
282288
grouped: false,

tests/_files/Report/HTML/PathCoverageForBankAccount/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ <h3>Project Risks</h3>
140140
</footer>
141141
</div>
142142
<script src="_js/billboard.pkgd.min.js?v=%s" type="text/javascript"></script>
143-
<script type="application/json" id="complexity_class">[[100,0,"source_without_namespace.php.html#5","Foo"]]</script>
143+
<script type="application/json" id="complexity_class">[[100,0,"source_without_namespace.php.html#5","Foo","0"]]</script>
144144
<script type="application/json" id="complexity_method">[]</script>
145145
<script type="text/javascript" defer>
146146
const barLabels = [

tests/_files/Report/HTML/PathCoverageForSourceWithoutNamespace/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ <h3>Project Risks</h3>
140140
</footer>
141141
</div>
142142
<script src="_js/billboard.pkgd.min.js?v=%s" type="text/javascript"></script>
143-
<script type="application/json" id="complexity_class">[[100,0,"source_without_namespace.php.html#5","Foo"]]</script>
143+
<script type="application/json" id="complexity_class">[[100,0,"source_without_namespace.php.html#5","Foo","0"]]</script>
144144
<script type="application/json" id="complexity_method">[]</script>
145145
<script type="text/javascript" defer>
146146
const barLabels = [

0 commit comments

Comments
 (0)