diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000000..e69de29bb2d diff --git a/CNAME b/CNAME new file mode 100644 index 00000000000..5c6287f9c39 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +coverage.abaplint.org diff --git a/base.css b/base.css new file mode 100644 index 00000000000..f418035b469 --- /dev/null +++ b/base.css @@ -0,0 +1,224 @@ +body, html { + margin:0; padding: 0; + height: 100%; +} +body { + font-family: Helvetica Neue, Helvetica, Arial; + font-size: 14px; + color:#333; +} +.small { font-size: 12px; } +*, *:after, *:before { + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + box-sizing:border-box; + } +h1 { font-size: 20px; margin: 0;} +h2 { font-size: 14px; } +pre { + font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; + margin: 0; + padding: 0; + -moz-tab-size: 2; + -o-tab-size: 2; + tab-size: 2; +} +a { color:#0074D9; text-decoration:none; } +a:hover { text-decoration:underline; } +.strong { font-weight: bold; } +.space-top1 { padding: 10px 0 0 0; } +.pad2y { padding: 20px 0; } +.pad1y { padding: 10px 0; } +.pad2x { padding: 0 20px; } +.pad2 { padding: 20px; } +.pad1 { padding: 10px; } +.space-left2 { padding-left:55px; } +.space-right2 { padding-right:20px; } +.center { text-align:center; } +.clearfix { display:block; } +.clearfix:after { + content:''; + display:block; + height:0; + clear:both; + visibility:hidden; + } +.fl { float: left; } +@media only screen and (max-width:640px) { + .col3 { width:100%; max-width:100%; } + .hide-mobile { display:none!important; } +} + +.quiet { + color: #7f7f7f; + color: rgba(0,0,0,0.5); +} +.quiet a { opacity: 0.7; } + +.fraction { + font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; + font-size: 10px; + color: #555; + background: #E8E8E8; + padding: 4px 5px; + border-radius: 3px; + vertical-align: middle; +} + +div.path a:link, div.path a:visited { color: #333; } +table.coverage { + border-collapse: collapse; + margin: 10px 0 0 0; + padding: 0; +} + +table.coverage td { + margin: 0; + padding: 0; + vertical-align: top; +} +table.coverage td.line-count { + text-align: right; + padding: 0 5px 0 20px; +} +table.coverage td.line-coverage { + text-align: right; + padding-right: 10px; + min-width:20px; +} + +table.coverage td span.cline-any { + display: inline-block; + padding: 0 5px; + width: 100%; +} +.missing-if-branch { + display: inline-block; + margin-right: 5px; + border-radius: 3px; + position: relative; + padding: 0 4px; + background: #333; + color: yellow; +} + +.skip-if-branch { + display: none; + margin-right: 10px; + position: relative; + padding: 0 4px; + background: #ccc; + color: white; +} +.missing-if-branch .typ, .skip-if-branch .typ { + color: inherit !important; +} +.coverage-summary { + border-collapse: collapse; + width: 100%; +} +.coverage-summary tr { border-bottom: 1px solid #bbb; } +.keyline-all { border: 1px solid #ddd; } +.coverage-summary td, .coverage-summary th { padding: 10px; } +.coverage-summary tbody { border: 1px solid #bbb; } +.coverage-summary td { border-right: 1px solid #bbb; } +.coverage-summary td:last-child { border-right: none; } +.coverage-summary th { + text-align: left; + font-weight: normal; + white-space: nowrap; +} +.coverage-summary th.file { border-right: none !important; } +.coverage-summary th.pct { } +.coverage-summary th.pic, +.coverage-summary th.abs, +.coverage-summary td.pct, +.coverage-summary td.abs { text-align: right; } +.coverage-summary td.file { white-space: nowrap; } +.coverage-summary td.pic { min-width: 120px !important; } +.coverage-summary tfoot td { } + +.coverage-summary .sorter { + height: 10px; + width: 7px; + display: inline-block; + margin-left: 0.5em; + background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; +} +.coverage-summary .sorted .sorter { + background-position: 0 -20px; +} +.coverage-summary .sorted-desc .sorter { + background-position: 0 -10px; +} +.status-line { height: 10px; } +/* yellow */ +.cbranch-no { background: yellow !important; color: #111; } +/* dark red */ +.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } +.low .chart { border:1px solid #C21F39 } +.highlighted, +.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ + background: #C21F39 !important; +} +/* medium red */ +.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } +/* light red */ +.low, .cline-no { background:#FCE1E5 } +/* light green */ +.high, .cline-yes { background:rgb(230,245,208) } +/* medium green */ +.cstat-yes { background:rgb(161,215,106) } +/* dark green */ +.status-line.high, .high .cover-fill { background:rgb(77,146,33) } +.high .chart { border:1px solid rgb(77,146,33) } +/* dark yellow (gold) */ +.status-line.medium, .medium .cover-fill { background: #f9cd0b; } +.medium .chart { border:1px solid #f9cd0b; } +/* light yellow */ +.medium { background: #fff4c2; } + +.cstat-skip { background: #ddd; color: #111; } +.fstat-skip { background: #ddd; color: #111 !important; } +.cbranch-skip { background: #ddd !important; color: #111; } + +span.cline-neutral { background: #eaeaea; } + +.coverage-summary td.empty { + opacity: .5; + padding-top: 4px; + padding-bottom: 4px; + line-height: 1; + color: #888; +} + +.cover-fill, .cover-empty { + display:inline-block; + height: 12px; +} +.chart { + line-height: 0; +} +.cover-empty { + background: white; +} +.cover-full { + border-right: none !important; +} +pre.prettyprint { + border: none !important; + padding: 0 !important; + margin: 0 !important; +} +.com { color: #999 !important; } +.ignore-none { color: #999; font-weight: normal; } + +.wrapper { + min-height: 100%; + height: auto !important; + height: 100%; + margin: 0 auto -48px; +} +.footer, .push { + height: 48px; +} diff --git a/block-navigation.js b/block-navigation.js new file mode 100644 index 00000000000..cc121302316 --- /dev/null +++ b/block-navigation.js @@ -0,0 +1,87 @@ +/* eslint-disable */ +var jumpToCode = (function init() { + // Classes of code we would like to highlight in the file view + var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; + + // Elements to highlight in the file listing view + var fileListingElements = ['td.pct.low']; + + // We don't want to select elements that are direct descendants of another match + var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` + + // Selecter that finds elements on the page to which we can jump + var selector = + fileListingElements.join(', ') + + ', ' + + notSelector + + missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` + + // The NodeList of matching elements + var missingCoverageElements = document.querySelectorAll(selector); + + var currentIndex; + + function toggleClass(index) { + missingCoverageElements + .item(currentIndex) + .classList.remove('highlighted'); + missingCoverageElements.item(index).classList.add('highlighted'); + } + + function makeCurrent(index) { + toggleClass(index); + currentIndex = index; + missingCoverageElements.item(index).scrollIntoView({ + behavior: 'smooth', + block: 'center', + inline: 'center' + }); + } + + function goToPrevious() { + var nextIndex = 0; + if (typeof currentIndex !== 'number' || currentIndex === 0) { + nextIndex = missingCoverageElements.length - 1; + } else if (missingCoverageElements.length > 1) { + nextIndex = currentIndex - 1; + } + + makeCurrent(nextIndex); + } + + function goToNext() { + var nextIndex = 0; + + if ( + typeof currentIndex === 'number' && + currentIndex < missingCoverageElements.length - 1 + ) { + nextIndex = currentIndex + 1; + } + + makeCurrent(nextIndex); + } + + return function jump(event) { + if ( + document.getElementById('fileSearch') === document.activeElement && + document.activeElement != null + ) { + // if we're currently focused on the search input, we don't want to navigate + return; + } + + switch (event.which) { + case 78: // n + case 74: // j + goToNext(); + break; + case 66: // b + case 75: // k + case 80: // p + goToPrevious(); + break; + } + }; +})(); +window.addEventListener('keydown', jumpToCode); diff --git a/favicon.png b/favicon.png new file mode 100644 index 00000000000..c1525b811a1 Binary files /dev/null and b/favicon.png differ diff --git a/index.html b/index.html new file mode 100644 index 00000000000..3cd42ee544e --- /dev/null +++ b/index.html @@ -0,0 +1,551 @@ + + + + +
++ Press n or j to go to the next uncovered block, b, p or k for the previous block. +
+ +File | ++ | Statements | ++ | Branches | ++ | Functions | ++ | Lines | ++ |
---|---|---|---|---|---|---|---|---|---|
src | +
+
+ |
+ 88.54% | +1994/2252 | +78.39% | +519/662 | +78.94% | +150/190 | +88.54% | +1994/2252 | +
src/abap | +
+
+ |
+ 75.94% | +180/237 | +100% | +21/21 | +55.55% | +10/18 | +75.94% | +180/237 | +
src/abap/1_lexer | +
+
+ |
+ 96.25% | +411/427 | +94.27% | +214/227 | +100% | +20/20 | +96.25% | +411/427 | +
src/abap/1_lexer/tokens | +
+
+ |
+ 82.21% | +342/416 | +100% | +6/6 | +14.28% | +6/42 | +82.21% | +342/416 | +
src/abap/2_statements | +
+
+ |
+ 84.82% | +1493/1760 | +94.25% | +328/348 | +56.02% | +107/191 | +84.82% | +1493/1760 | +
src/abap/2_statements/expressions | +
+
+ |
+ 99.88% | +3451/3455 | +100% | +215/215 | +99.53% | +215/216 | +99.88% | +3451/3455 | +
src/abap/2_statements/statements | +
+
+ |
+ 99.81% | +6504/6516 | +100% | +303/303 | +98.05% | +303/309 | +99.81% | +6504/6516 | +
src/abap/3_structures | +
+
+ |
+ 100% | +66/66 | +100% | +17/17 | +100% | +3/3 | +100% | +66/66 | +
src/abap/3_structures/structures | +
+
+ |
+ 97.87% | +1473/1505 | +98.44% | +127/129 | +85.71% | +78/91 | +97.87% | +1473/1505 | +
src/abap/4_file_information | +
+
+ |
+ 97.98% | +584/596 | +84.11% | +90/107 | +100% | +24/24 | +97.98% | +584/596 | +
src/abap/5_syntax | +
+
+ |
+ 93.18% | +4580/4915 | +85.48% | +1107/1295 | +93.86% | +153/163 | +93.18% | +4580/4915 | +
src/abap/5_syntax/expressions | +
+
+ |
+ 88.41% | +3388/3832 | +81.69% | +973/1191 | +100% | +86/86 | +88.41% | +3388/3832 | +
src/abap/5_syntax/global_definitions | +
+
+ |
+ 97.56% | +160/164 | +90.32% | +56/62 | +100% | +5/5 | +97.56% | +160/164 | +
src/abap/5_syntax/statements | +
+
+ |
+ 86.11% | +3517/4084 | +77.6% | +686/884 | +78.74% | +100/127 | +86.11% | +3517/4084 | +
src/abap/5_syntax/structures | +
+
+ |
+ 87.37% | +339/388 | +76.28% | +74/97 | +100% | +6/6 | +87.37% | +339/388 | +
src/abap/flow | +
+
+ |
+ 88.03% | +368/418 | +90.29% | +93/103 | +91.3% | +21/23 | +88.03% | +368/418 | +
src/abap/nodes | +
+
+ |
+ 95.81% | +984/1027 | +94.94% | +338/356 | +96.51% | +83/86 | +95.81% | +984/1027 | +
src/abap/types | +
+
+ |
+ 89.29% | +1434/1606 | +85.46% | +294/344 | +86.84% | +99/114 | +89.29% | +1434/1606 | +
src/abap/types/basic | +
+
+ |
+ 80.77% | +941/1165 | +89.44% | +144/161 | +51.19% | +107/209 | +80.77% | +941/1165 | +
src/cds | +
+
+ |
+ 98.66% | +222/225 | +93.5% | +72/77 | +100% | +10/10 | +98.66% | +222/225 | +
src/cds/expressions | +
+
+ |
+ 100% | +502/502 | +100% | +34/34 | +100% | +34/34 | +100% | +502/502 | +
src/ddl | +
+
+ |
+ 98.11% | +104/106 | +79.16% | +19/24 | +100% | +3/3 | +98.11% | +104/106 | +
src/ddl/expressions | +
+
+ |
+ 100% | +74/74 | +100% | +7/7 | +100% | +7/7 | +100% | +74/74 | +
src/files | +
+
+ |
+ 100% | +70/70 | +88.88% | +8/9 | +100% | +8/8 | +100% | +70/70 | +
src/lsp | +
+
+ |
+ 83.8% | +1936/2310 | +74.66% | +330/442 | +76.72% | +89/116 | +83.8% | +1936/2310 | +
src/objects | +
+
+ |
+ 76.61% | +4193/5473 | +81.28% | +812/999 | +54.5% | +333/611 | +76.61% | +4193/5473 | +
src/objects/rename | +
+
+ |
+ 90.92% | +591/650 | +74.78% | +86/115 | +100% | +32/32 | +90.92% | +591/650 | +
src/pretty_printer | +
+
+ |
+ 99.41% | +342/344 | +98.33% | +177/180 | +100% | +15/15 | +99.41% | +342/344 | +
src/rules | +
+
+ |
+ 95.29% | +20941/21975 | +87.62% | +5508/6286 | +99.69% | +1296/1300 | +95.29% | +20941/21975 | +
src/utils | +
+
+ |
+ 96.39% | +428/444 | +90.4% | +113/125 | +95.23% | +20/21 | +96.39% | +428/444 | +