kcov icon indicating copy to clipboard operation
kcov copied to clipboard

kcov multi-line strings not covered

Open m5d215 opened this issue 3 years ago • 1 comments

The coverage can not reach 100% with the following multi-line strings.

#!/bin/bash

echo "1
2
3"

echo "
4
5
"

echo '6
7
8'

echo '
9
10
'

echo "
11
12" "
13
14"

Is there a way to get 100% coverage?

Best regards.


Related issues #164

m5d215 avatar Aug 24 '20 05:08 m5d215

Well, both this and #164 are probably only properly solved when #145 is implemented. The parsing of Bash scripts is very basic, so it doesn't properly handle a lot of the bash peculiarities (of which there are many!).

SimonKagstrom avatar Aug 24 '20 12:08 SimonKagstrom