From a92f2d508e2912321fc4dba4e20bca40db0549c2 Mon Sep 17 00:00:00 2001 From: Chungeng Meng Date: Sun, 8 Mar 2020 03:23:46 -0400 Subject: [PATCH 1/4] issue #97 enhancement, add explanation box --- frontend/src/base.html | 9 +++++ frontend/src/style.scss | 53 ++++++++++++++++++++++++++++ frontend/src/zero_coverage_report.js | 3 +- 3 files changed, 64 insertions(+), 1 deletion(-) diff --git a/frontend/src/base.html b/frontend/src/base.html index 134ee2695..e59a7c55b 100644 --- a/frontend/src/base.html +++ b/frontend/src/base.html @@ -135,6 +135,15 @@

{{#filters}} + {{#needs_explanation}} +
+ ? + For JavaScript files, the top-level code is always covered if the file is loaded, + so we came up with a heuristic: a "zero coverage" file is a file which has at least one function and whose functions are all not covered.
+ For C/C++ it's easier, as there's no top-level code and the code is always in functions. + In this case, a "zero coverage" file is a file which has no covered lines.
+
+ {{/needs_explanation}} {{/filters}}