Browse files

Add dead code to legend.

  • Loading branch information...
1 parent 432e3b0 commit 74fd82928e33382191ed7478aa2cdf8aa076f162 @sebastianbergmann committed Sep 26, 2006
Showing with 14 additions and 3 deletions.
  1. +2 −1 PHPUnit/Util/Report/Template/coverage_file.html
  2. +12 −2 PHPUnit/Util/Report/Template/style.css
View
3 PHPUnit/Util/Report/Template/coverage_file.html
@@ -36,8 +36,9 @@
<tr>
<td class="legendItem" width="20%">Legend:</td>
<td class="legendValue" width="80%" colspan="4">
- <span class="legendNoCov">not executed</span>
<span class="legendCov">executed</span>
+ <span class="legendNoCov">not executed</span>
+ <span class="legendDeadCode">dead code</span>
</td>
</tr>
</table>
View
14 PHPUnit/Util/Report/Template/style.css
@@ -343,18 +343,28 @@ span.lineNoCov
background-color: #ef2929;
}
+/* Source code view: format for NoCov legend */
+span.LegendNoCov
+{
+ text-align: center;
+ padding-left: 10px;
+ padding-right: 10px;
+ margin-right: 2px;
+ background-color: #ef2929;
+}
+
/* Source code view: format for lines which are dead code */
span.lineDeadCode
{
background-color: #fcaf3e;
}
/* Source code view: format for NoCov legend */
-span.LegendNoCov
+span.LegendDeadCode
{
text-align: center;
padding-left: 10px;
padding-right: 10px;
margin-right: 2px;
- background-color: #ef2929;
+ background-color: #fcaf3e;
}

0 comments on commit 74fd829

Please sign in to comment.