You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an example of a shell script that may be used to reproduce the issue.
echo "foo bar" |
sed "s/ /-/g"
a=$(echo "baz qux" |
sed 's/ /-/g')
echo "$a"
Save the above code in a file, say foo.sh and execute the following command.
kcov coverage foo.sh
Since every line of the script was executed, the coverage result should show 100% coverage. But the coverage result shows that a=$(echo "baz qux" | was not executed.
Here is the output of the kcov command and the coverage result.
The text was updated successfully, but these errors were encountered:
susam
changed the title
0 hits for lines in a multiline command substitution
kcov misses all lines except the last one in a multiline command substitution
Dec 3, 2016
Here is an example of a shell script that may be used to reproduce the issue.
Save the above code in a file, say
foo.sh
and execute the following command.Since every line of the script was executed, the coverage result should show 100% coverage. But the coverage result shows that
a=$(echo "baz qux" |
was not executed.Here is the output of the
kcov
command and the coverage result.The text was updated successfully, but these errors were encountered: