Refactor coverage report generation

Add some tests to reach 99%
This commit is contained in:
2024-05-06 17:56:00 +02:00
parent 0ec53f405f
commit ced29a2c2e
1091 changed files with 9366 additions and 373937 deletions

View File

@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LCOV - coverage.info - bayesnet/network</title>
<title>LCOV - BayesNet Coverage Report - bayesnet/network</title>
<link rel="stylesheet" type="text/css" href="../../gcov.css">
</head>
@@ -28,21 +28,30 @@
</tr>
<tr>
<td class="headerItem">Test:</td>
<td class="headerValue">coverage.info</td>
<td class="headerValue">BayesNet Coverage Report</td>
<td></td>
<td class="headerItem">Lines:</td>
<td class="headerCovTableEntryHi">97.7&nbsp;%</td>
<td class="headerCovTableEntryHi">100.0&nbsp;%</td>
<td class="headerCovTableEntry">384</td>
<td class="headerCovTableEntry">384</td>
<td class="headerCovTableEntry">375</td>
</tr>
<tr>
<td class="headerItem">Test Date:</td>
<td class="headerValue">2024-04-30 20:26:57</td>
<td class="headerValue">2024-05-06 17:54:04</td>
<td></td>
<td class="headerItem">Functions:</td>
<td class="headerCovTableEntryHi">100.0&nbsp;%</td>
<td class="headerCovTableEntry">61</td>
<td class="headerCovTableEntry">61</td>
</tr>
<tr>
<td class="headerItem">Legend:</td>
<td class="headerValueLeg"> Rating:
<span class="coverLegendCovLo" title="Coverage rates below 75 % are classified as low">low: &lt; 75 %</span>
<span class="coverLegendCovMed" title="Coverage rates between 75 % and 90 % are classified as medium">medium: &gt;= 75 %</span>
<span class="coverLegendCovHi" title="Coverage rates of 90 % and more are classified as high">high: &gt;= 90 %</span>
</td>
<td></td>
</tr>
<tr><td><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
</table>
@@ -68,7 +77,7 @@
<tr>
<td class="tableHead" rowspan=2>Filename <span title="Click to sort table by file name" class="tableHeadSort"><img src="../../glass.png" width=10 height=14 alt="Sort by file name" title="Click to sort table by file name" border=0></span></td>
<td class="tableHead" colspan=4>Line Coverage <span title="Click to sort table by line coverage" class="tableHeadSort"><a href="index-sort-l.html"><img src="../../updown.png" width=10 height=14 alt="Sort by line coverage" title="Click to sort table by line coverage" border=0></a></span></td>
<td class="tableHead" colspan=4>Line Coverage ( <a title="Click to show per-testcase coverage details" class="detail" href="index-detail.html">show details</a> ) <span title="Click to sort table by line coverage" class="tableHeadSort"><a href="index-sort-l.html"><img src="../../updown.png" width=10 height=14 alt="Sort by line coverage" title="Click to sort table by line coverage" border=0></a></span></td>
<td class="tableHead" colspan=3>Function Coverage <span title="Click to sort table by function coverage" class="tableHeadSort"><a href="index-sort-f.html"><img src="../../updown.png" width=10 height=14 alt="Sort by function coverage" title="Click to sort table by function coverage" border=0></a></span></td>
</tr>
<tr>
@@ -80,19 +89,19 @@
<td class="tableHead"> Hit</td>
</tr>
<tr>
<td class="coverFile"><a href="Network.cc.gcov.html">Network.cc</a></td>
<td class="coverFile"><a href="Network.cc.gcov.frameset.html">Network.cc</a></td>
<td class="coverBar" align="center">
<table border=0 cellspacing=0 cellpadding=1><tr><td class="coverBarOutline"><img src="../../emerald.png" width=98 height=10 alt="98.3%"><img src="../../snow.png" width=2 height=10 alt="98.3%"></td></tr></table>
<table border=0 cellspacing=0 cellpadding=1><tr><td class="coverBarOutline"><img src="../../emerald.png" width=100 height=10 alt="100.0%"></td></tr></table>
</td>
<td class="coverPerHi">98.3&nbsp;%</td>
<td class="coverPerHi">100.0&nbsp;%</td>
<td class="coverNumDflt">295</td>
<td class="coverNumDflt">295</td>
<td class="coverNumDflt">290</td>
<td class="coverPerHi">100.0&nbsp;%</td>
<td class="coverNumDflt">40</td>
<td class="coverNumDflt">40</td>
</tr>
<tr>
<td class="coverFile"><a href="Network.h.gcov.html">Network.h</a></td>
<td class="coverFile"><a href="Network.h.gcov.frameset.html">Network.h</a></td>
<td class="coverBar" align="center">
<table border=0 cellspacing=0 cellpadding=1><tr><td class="coverBarOutline"><img src="../../emerald.png" width=100 height=10 alt="100.0%"></td></tr></table>
</td>
@@ -104,13 +113,13 @@
<td class="coverNumDflt">1</td>
</tr>
<tr>
<td class="coverFile"><a href="Node.cc.gcov.html">Node.cc</a></td>
<td class="coverFile"><a href="Node.cc.gcov.frameset.html">Node.cc</a></td>
<td class="coverBar" align="center">
<table border=0 cellspacing=0 cellpadding=1><tr><td class="coverBarOutline"><img src="../../emerald.png" width=95 height=10 alt="95.5%"><img src="../../snow.png" width=5 height=10 alt="95.5%"></td></tr></table>
<table border=0 cellspacing=0 cellpadding=1><tr><td class="coverBarOutline"><img src="../../emerald.png" width=100 height=10 alt="100.0%"></td></tr></table>
</td>
<td class="coverPerHi">95.5&nbsp;%</td>
<td class="coverPerHi">100.0&nbsp;%</td>
<td class="coverNumDflt">88</td>
<td class="coverNumDflt">88</td>
<td class="coverNumDflt">84</td>
<td class="coverPerHi">100.0&nbsp;%</td>
<td class="coverNumDflt">20</td>
<td class="coverNumDflt">20</td>