File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -778,7 +778,7 @@ function bashunit::coverage::report_lcov() {
778778 local line
779779 # shellcheck disable=SC2094
780780 while IFS= read -r line || [ -n " $line " ]; do
781- (( lineno ++ ))
781+ (( ++ lineno ))
782782 bashunit::coverage::is_executable_line " $line " " $lineno " || continue
783783 echo " DA:${lineno} ,$( bashunit::coverage::get_line_hits " $file " " $lineno " ) "
784784 done < " $file "
@@ -1543,10 +1543,10 @@ EOF
15431543 local ln_content
15441544 ln_content=$( sed -n " ${ln} p" " $file " 2> /dev/null) || continue
15451545 if bashunit::coverage::is_executable_line " $ln_content " " $ln " ; then
1546- (( fn_executable ++ ))
1546+ (( ++ fn_executable ))
15471547 local ln_hits=${hits_by_line[$ln]:- 0}
15481548 if [ " $ln_hits " -gt 0 ]; then
1549- (( fn_hit ++ ))
1549+ (( ++ fn_hit ))
15501550 fi
15511551 fi
15521552 done
@@ -1597,7 +1597,7 @@ EOF
15971597 local lineno=0
15981598 local line
15991599 while IFS= read -r line || [ -n " $line " ]; do
1600- (( lineno ++ ))
1600+ (( ++ lineno ))
16011601
16021602 local escaped_line
16031603 escaped_line=$( bashunit::coverage::html_escape " $line " )
You can’t perform that action at this time.
0 commit comments