Release v0.1.5.4 prepare for release
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
|
||||
function next_uncovered(selector, reverse, scroll_selector) {
|
||||
function visit_element(element) {
|
||||
element.classList.add("seen");
|
||||
element.classList.add("selected");
|
||||
|
||||
if (!scroll_selector) {
|
||||
scroll_selector = "tr:has(.selected) td.line-number"
|
||||
}
|
||||
|
||||
const scroll_to = document.querySelector(scroll_selector);
|
||||
if (scroll_to) {
|
||||
scroll_to.scrollIntoView({behavior: "smooth", block: "center", inline: "end"});
|
||||
}
|
||||
}
|
||||
|
||||
function select_one() {
|
||||
if (!reverse) {
|
||||
const previously_selected = document.querySelector(".selected");
|
||||
|
||||
if (previously_selected) {
|
||||
previously_selected.classList.remove("selected");
|
||||
}
|
||||
|
||||
return document.querySelector(selector + ":not(.seen)");
|
||||
} else {
|
||||
const previously_selected = document.querySelector(".selected");
|
||||
|
||||
if (previously_selected) {
|
||||
previously_selected.classList.remove("selected");
|
||||
previously_selected.classList.remove("seen");
|
||||
}
|
||||
|
||||
const nodes = document.querySelectorAll(selector + ".seen");
|
||||
if (nodes) {
|
||||
const last = nodes[nodes.length - 1]; // last
|
||||
return last;
|
||||
} else {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function reset_all() {
|
||||
if (!reverse) {
|
||||
const all_seen = document.querySelectorAll(selector + ".seen");
|
||||
|
||||
if (all_seen) {
|
||||
all_seen.forEach(e => e.classList.remove("seen"));
|
||||
}
|
||||
} else {
|
||||
const all_seen = document.querySelectorAll(selector + ":not(.seen)");
|
||||
|
||||
if (all_seen) {
|
||||
all_seen.forEach(e => e.classList.add("seen"));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const uncovered = select_one();
|
||||
|
||||
if (uncovered) {
|
||||
visit_element(uncovered);
|
||||
} else {
|
||||
reset_all();
|
||||
|
||||
const uncovered = select_one();
|
||||
|
||||
if (uncovered) {
|
||||
visit_element(uncovered);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function next_line(reverse) {
|
||||
next_uncovered("td.uncovered-line", reverse)
|
||||
}
|
||||
|
||||
function next_region(reverse) {
|
||||
next_uncovered("span.red.region", reverse);
|
||||
}
|
||||
|
||||
function next_branch(reverse) {
|
||||
next_uncovered("span.red.branch", reverse);
|
||||
}
|
||||
|
||||
document.addEventListener("keypress", function(event) {
|
||||
const reverse = event.shiftKey;
|
||||
if (event.code == "KeyL") {
|
||||
next_line(reverse);
|
||||
}
|
||||
if (event.code == "KeyB") {
|
||||
next_branch(reverse);
|
||||
}
|
||||
if (event.code == "KeyR") {
|
||||
next_region(reverse);
|
||||
}
|
||||
});
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<!doctype html><html><head><meta name='viewport' content='width=device-width,initial-scale=1'><meta charset='UTF-8'><link rel='stylesheet' type='text/css' href='style.css'><script src='control.js'></script></head><body><h2>Coverage Report</h2><h4>Created: 2025-08-29 11:28</h4><p>Click <a href='http://clang.llvm.org/docs/SourceBasedCodeCoverage.html#interpreting-reports'>here</a> for information about interpreting this report.</p><div class='centered'><table><tr><td class='column-entry-bold'>Filename</td><td class='column-entry-bold'>Function Coverage</td><td class='column-entry-bold'>Line Coverage</td><td class='column-entry-bold'>Region Coverage</td><td class='column-entry-bold'>Branch Coverage</td></tr><tr class='light-row'><td><pre><a href='coverage\Users\mbusc\source\repos\privatebin-cpp\src\base58.cpp.html'>base58.cpp</a></pre></td><td class='column-entry-red'><pre> 0.00% (0/2)</pre></td><td class='column-entry-red'><pre> 0.00% (0/67)</pre></td><td class='column-entry-red'><pre> 0.00% (0/48)</pre></td><td class='column-entry-red'><pre> 0.00% (0/34)</pre></td></tr><tr class='light-row'><td><pre><a href='coverage\Users\mbusc\source\repos\privatebin-cpp\src\crypto.cpp.html'>crypto.cpp</a></pre></td><td class='column-entry-red'><pre> 66.67% (4/6)</pre></td><td class='column-entry-red'><pre> 56.19% (59/105)</pre></td><td class='column-entry-red'><pre> 36.84% (7/19)</pre></td><td class='column-entry-red'><pre> 0.00% (0/2)</pre></td></tr><tr class='light-row'><td><pre><a href='coverage\Users\mbusc\source\repos\privatebin-cpp\src\http_client.cpp.html'>http_client.cpp</a></pre></td><td class='column-entry-green'><pre> 100.00% (5/5)</pre></td><td class='column-entry-red'><pre> 51.67% (186/360)</pre></td><td class='column-entry-red'><pre> 66.67% (170/255)</pre></td><td class='column-entry-red'><pre> 41.38% (48/116)</pre></td></tr><tr class='light-row'><td><pre><a href='coverage\Users\mbusc\source\repos\privatebin-cpp\src\json_parser.cpp.html'>json_parser.cpp</a></pre></td><td class='column-entry-green'><pre> 100.00% (5/5)</pre></td><td class='column-entry-yellow'><pre> 84.21% (80/95)</pre></td><td class='column-entry-red'><pre> 71.88% (23/32)</pre></td><td class='column-entry-red'><pre> 50.00% (7/14)</pre></td></tr><tr class='light-row'><td><pre><a href='coverage\Users\mbusc\source\repos\privatebin-cpp\src\privatebinapi.cpp.html'>privatebinapi.cpp</a></pre></td><td class='column-entry-red'><pre> 50.00% (3/6)</pre></td><td class='column-entry-red'><pre> 27.01% (57/211)</pre></td><td class='column-entry-red'><pre> 28.15% (38/135)</pre></td><td class='column-entry-red'><pre> 21.43% (15/70)</pre></td></tr><tr class='light-row-bold'><td><pre>Totals</pre></td><td class='column-entry-red'><pre> 70.83% (17/24)</pre></td><td class='column-entry-red'><pre> 45.58% (382/838)</pre></td><td class='column-entry-red'><pre> 48.67% (238/489)</pre></td><td class='column-entry-red'><pre> 29.66% (70/236)</pre></td></tr></table></div><h5>Generated by llvm-cov -- llvm version 21.1.0</h5></body></html>
|
||||
@@ -0,0 +1,194 @@
|
||||
.red {
|
||||
background-color: #f004;
|
||||
}
|
||||
.cyan {
|
||||
background-color: cyan;
|
||||
}
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
body {
|
||||
font-family: -apple-system, sans-serif;
|
||||
}
|
||||
pre {
|
||||
margin-top: 0px !important;
|
||||
margin-bottom: 0px !important;
|
||||
}
|
||||
.source-name-title {
|
||||
padding: 5px 10px;
|
||||
border-bottom: 1px solid #8888;
|
||||
background-color: #0002;
|
||||
line-height: 35px;
|
||||
}
|
||||
.centered {
|
||||
display: table;
|
||||
margin-left: left;
|
||||
margin-right: auto;
|
||||
border: 1px solid #8888;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.expansion-view {
|
||||
margin-left: 0px;
|
||||
margin-top: 5px;
|
||||
margin-right: 5px;
|
||||
margin-bottom: 5px;
|
||||
border: 1px solid #8888;
|
||||
border-radius: 3px;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.light-row {
|
||||
border: 1px solid #8888;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
}
|
||||
.light-row-bold {
|
||||
border: 1px solid #8888;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
.column-entry {
|
||||
text-align: left;
|
||||
}
|
||||
.column-entry-bold {
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
}
|
||||
.column-entry-yellow {
|
||||
text-align: left;
|
||||
background-color: #ff06;
|
||||
}
|
||||
.column-entry-red {
|
||||
text-align: left;
|
||||
background-color: #f004;
|
||||
}
|
||||
.column-entry-gray {
|
||||
text-align: left;
|
||||
background-color: #fff4;
|
||||
}
|
||||
.column-entry-green {
|
||||
text-align: left;
|
||||
background-color: #0f04;
|
||||
}
|
||||
.line-number {
|
||||
text-align: right;
|
||||
}
|
||||
.covered-line {
|
||||
text-align: right;
|
||||
color: #06d;
|
||||
}
|
||||
.uncovered-line {
|
||||
text-align: right;
|
||||
color: #d00;
|
||||
}
|
||||
.uncovered-line.selected {
|
||||
color: #f00;
|
||||
font-weight: bold;
|
||||
}
|
||||
.region.red.selected {
|
||||
background-color: #f008;
|
||||
font-weight: bold;
|
||||
}
|
||||
.branch.red.selected {
|
||||
background-color: #f008;
|
||||
font-weight: bold;
|
||||
}
|
||||
.tooltip {
|
||||
position: relative;
|
||||
display: inline;
|
||||
background-color: #bef;
|
||||
text-decoration: none;
|
||||
}
|
||||
.tooltip span.tooltip-content {
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
margin-left: -50px;
|
||||
color: #FFFFFF;
|
||||
background: #000000;
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
visibility: hidden;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.tooltip span.tooltip-content:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
margin-left: -8px;
|
||||
width: 0; height: 0;
|
||||
border-top: 8px solid #000000;
|
||||
border-right: 8px solid transparent;
|
||||
border-left: 8px solid transparent;
|
||||
}
|
||||
:hover.tooltip span.tooltip-content {
|
||||
visibility: visible;
|
||||
opacity: 0.8;
|
||||
bottom: 30px;
|
||||
left: 50%;
|
||||
z-index: 999;
|
||||
}
|
||||
th, td {
|
||||
vertical-align: top;
|
||||
padding: 2px 8px;
|
||||
border-collapse: collapse;
|
||||
border-right: 1px solid #8888;
|
||||
border-left: 1px solid #8888;
|
||||
text-align: left;
|
||||
}
|
||||
td pre {
|
||||
display: inline-block;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
td:first-child {
|
||||
border-left: none;
|
||||
}
|
||||
td:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #eee;
|
||||
}
|
||||
tr:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
tr:has(> td >a:target), tr:has(> td.uncovered-line.selected) {
|
||||
background-color: #8884;
|
||||
}
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
.control {
|
||||
position: fixed;
|
||||
top: 0em;
|
||||
right: 0em;
|
||||
padding: 1em;
|
||||
background: #FFF8;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background-color: #222;
|
||||
color: whitesmoke;
|
||||
}
|
||||
tr:hover {
|
||||
background-color: #111;
|
||||
}
|
||||
.covered-line {
|
||||
color: #39f;
|
||||
}
|
||||
.uncovered-line {
|
||||
color: #f55;
|
||||
}
|
||||
.tooltip {
|
||||
background-color: #068;
|
||||
}
|
||||
.control {
|
||||
background: #2228;
|
||||
}
|
||||
tr:has(> td >a:target), tr:has(> td.uncovered-line.selected) {
|
||||
background-color: #8884;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user