summaryrefslogtreecommitdiff
path: root/cli/tools/coverage/reporter.rs
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2024-05-26 13:22:57 +0900
committerGitHub <noreply@github.com>2024-05-26 13:22:57 +0900
commit0ef1c774f6ed00d6cbe2de1ebd3f12da6c949394 (patch)
treeff5f7e25c5016a46155b7920f90f045e6937a701 /cli/tools/coverage/reporter.rs
parent16ed81f62cac68f1ef0cfa925fffbf2d208eed61 (diff)
fix(coverage): add tooltip to line count in html report (#23971)
closes #21582
Diffstat (limited to 'cli/tools/coverage/reporter.rs')
-rw-r--r--cli/tools/coverage/reporter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/coverage/reporter.rs b/cli/tools/coverage/reporter.rs
index 4bb72b264..fe44fa4d0 100644
--- a/cli/tools/coverage/reporter.rs
+++ b/cli/tools/coverage/reporter.rs
@@ -644,7 +644,7 @@ impl HtmlCoverageReporter {
if *count == 0 {
"<span class='cline-any cline-no'>&nbsp</span>".to_string()
} else {
- format!("<span class='cline-any cline-yes'>x{count}</span>")
+ format!("<span class='cline-any cline-yes' title='This line is covered {count} time{}'>x{count}</span>", if *count > 1 { "s" } else { "" })
}
} else {
"<span class='cline-any cline-neutral'>&nbsp</span>".to_string()