Skip to content

Commit 2069071

Browse files
Flamefiresdarwin
authored andcommitted
Also hide branches from source file summary and ignore excluded branches
1 parent 9612a52 commit 2069071

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gcovr-templates/html/source_page.summary.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ <h2 class="source-filename">{{filename}}</h2>
99
<span class="stat {{functions.class}}">
1010
<strong>{{functions.coverage}}%</strong> Functions ({{functions.exec}}/{{functions.total}})
1111
</span>
12+
{% if info.branches.total > info.branches.excluded %}
1213
<span class="stat {{branches.class}}">
13-
<strong>{{branches.coverage}}%</strong> Branches ({{branches.exec}}/{{branches.total}})
14+
<strong>{{branches.coverage}}%</strong> Branches ({{branches.exec}}/{{branches.total - branches.excluded}})
1415
</span>
16+
{% endif %}
1517
</div>
1618
</div>
1719

0 commit comments

Comments
 (0)