Closed mtlewis closed 7 years ago
Hey Mike, sorry for the delay...after another PR came in, looks like something funny's going on with kcov on the new Ubuntu Trusty images on Travis. Will try to figure that out and take a look at this soon.
Hey Mike, sorry it's been a while...finally got some time to dig into the failure. When SimonKagstrom/kcov#211 gets merged, I'll kick off a new build and review.
Hi Mike, SimonKagstrom/kcov#211 got merged and I kicked off a new build. However, this change didn't result in line 25 getting counted as covered:
I've figured out how to demonstrate that the line misses are an artifact of how Bash counts lines internally:
$ cat > foo
#! /usr/bin/env bash
if [[ 'foo' == 'foo' && \
'bar' == 'bar' ]]; then
echo 'baz'
fi
$ PS4='${LINENO} ' bash -x foo
4 [[ foo == \f\o\o ]]
4 [[ bar == \b\a\r ]]
5 echo baz
baz
Thanks for giving it a try, though!
Can't figure out how to list coverage locally, so I'm speculatively opening a PR to see if adding a continuation in this if statement fixes issues with coverage detection.