diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-07-12 11:47:53 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-07-15 20:31:23 +0000 |
| commit | 1e9b4efa8053e3d27be8a5803c91bf37923ffe3b (patch) | |
| tree | c8985c4c1160815d701e6317bb7a3ee96b230b30 /pkg/cover/templates | |
| parent | 31605b3e1a107ab83d814ec4183cec07bb670655 (diff) | |
pkg/cover/heatmap.go: add blocks count
Diffstat (limited to 'pkg/cover/templates')
| -rw-r--r-- | pkg/cover/templates/heatmap.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkg/cover/templates/heatmap.html b/pkg/cover/templates/heatmap.html index 9f5d1da2c..4d3e159b2 100644 --- a/pkg/cover/templates/heatmap.html +++ b/pkg/cover/templates/heatmap.html @@ -15,6 +15,11 @@ display: inline-block; width: 50px; } + .instrumented_column { + display: inline-block; + width: 70px; + text-align: right; + } .tree_depth_0 {width: 0px;} .tree_depth_1 {width: 20px;} .tree_depth_2 {width: 40px;} @@ -64,13 +69,16 @@ </li> <li> <div class="first_column bold"> - total + total covered </div> {{ range $cov := .Root.Coverage }} <div class="date_column"> {{ $cov }}% </div> {{ end }} + <div class="instrumented_column"> + of {{ approxInstr .Root.LastDayInstrumented }} blocks + </div> </li> <br> {{template "dir" .Root}} @@ -105,6 +113,9 @@ {{ $cov }}% </div> {{ end }} + <div class="instrumented_column"> + {{ approxInstr $child.LastDayInstrumented }} + </div> </div> {{ if $child.IsDir }} <ul class="nested"> |
