File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
.github/workflows/scripts
lib/node_modules/@stdlib/assert/is-strict-equal/lib Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,10 @@ compare_cov() {
121121 new_cov_value=" $2 "
122122
123123 if [ " $old_cov_value " == 0 ]; then
124- new_cov_percentage=$( awk " BEGIN {printf \" %.1f \" , $new_cov_value *100}" )
124+ new_cov_percentage=$( awk " BEGIN {printf \" %.2f \" , $new_cov_value *100}" )
125125 echo " \$\\\\ color{green}+$new_cov_percentage \\\\ %\$ "
126126 else
127- percentage_change=$( awk " BEGIN {printf \" %.1f \" , (($new_cov_value - $old_cov_value ) / $old_cov_value ) * 100}" )
127+ percentage_change=$( awk " BEGIN {printf \" %.2f \" , (($new_cov_value - $old_cov_value ) / $old_cov_value ) * 100}" )
128128 color=" green"
129129 sign=" "
130130 if [ $( awk " BEGIN {if ($percentage_change > 0) print 1; else print 0}" ) -eq 1 ]; then
@@ -192,7 +192,7 @@ main() {
192192 cov_change_functions=$( compare_cov " $old_functions_cov " " $pkg_functions_cov " )
193193 cov_change_lines=$( compare_cov " $old_lines_cov " " $pkg_lines_cov " )
194194
195- pkg_cov=" | $pkg_statements_cov_fraction (Δ $cov_change_statements ) | $pkg_branches_cov_fraction (Δ $cov_change_branches ) | $pkg_functions_cov_fraction (Δ $cov_change_functions ) | $pkg_lines_cov_fraction (Δ $cov_change_lines ) |"
195+ pkg_cov=" | $pkg_statements_cov_fraction <br> $cov_change_statements | $pkg_branches_cov_fraction <br> $cov_change_branches | $pkg_functions_cov_fraction <br> $cov_change_functions | $pkg_lines_cov_fraction <br> $cov_change_lines |"
196196
197197 pkg_url=" https://github.com/${github_repo} /tree/${github_ref} /${package} "
198198 pkg_link=" <a href=" $pkg_url " >$pkg </a>"
Original file line number Diff line number Diff line change 2727*
2828* - In contrast to the strict equality operator `===`, `-0` and `+0` are distinguishable.
2929*
30- *
3130* @param {* } a - first input value
3231* @param {* } b - second input value
3332* @returns {boolean } boolean indicating whether two arguments are strictly equal
You can’t perform that action at this time.
0 commit comments