aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2019-01-21 16:26:38 +0100
committerSiri Hansen <[email protected]>2019-01-21 16:26:38 +0100
commitc18bb73c75b1eea6e8986893edc3b7a066fcf365 (patch)
treec29310fbbdf84565152f30951e38fddb7547ca27 /lib/tools
parent841ef69f02e45d4b1028cd94664ddb10bfbae061 (diff)
downloadotp-c18bb73c75b1eea6e8986893edc3b7a066fcf365.tar.gz
otp-c18bb73c75b1eea6e8986893edc3b7a066fcf365.tar.bz2
otp-c18bb73c75b1eea6e8986893edc3b7a066fcf365.zip
[cover] Make uncovered lines searchable in html output
Prior to PR#1807, uncovered lines could be found by searching for " 0.." in the HTML page generated by cover:analyse_to_file/1,2. The pull request removed the two dots after the number of hits, which makes it much harder to find the uncovered lines. This commit introduces a sad face, :-( , instead of the single 0 character, which should make the search easier.
Diffstat (limited to 'lib/tools')
-rw-r--r--lib/tools/src/cover.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tools/src/cover.erl b/lib/tools/src/cover.erl
index 4f3707d2ed..8d4561ca9e 100644
--- a/lib/tools/src/cover.erl
+++ b/lib/tools/src/cover.erl
@@ -2569,6 +2569,7 @@ table_data(Line, L, N) ->
"<td class=\"hits\">",maybe_integer_to_list(N),"</td>\n",
"<td class=\"source\"><code>",LineNoNL,"</code></td>\n</tr>\n"].
+maybe_integer_to_list(0) -> "<pre style=\"display: inline;\">:-(</pre>";
maybe_integer_to_list(N) when is_integer(N) -> integer_to_list(N);
maybe_integer_to_list(_) -> "".