diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2024-05-26 13:22:57 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-26 13:22:57 +0900 |
commit | 0ef1c774f6ed00d6cbe2de1ebd3f12da6c949394 (patch) | |
tree | ff5f7e25c5016a46155b7920f90f045e6937a701 /cli/tools/coverage/reporter.rs | |
parent | 16ed81f62cac68f1ef0cfa925fffbf2d208eed61 (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.rs | 2 |
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'> </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'> </span>".to_string() |