Hi Marc,
thanks for bringing me back to that example!
In essence, I want to combine git blame with code coverage, in order to figure out how much "new code" is untested.
A crude way would be parsing the HTML report, but I was hoping to find a more elegant solution.
For that, I need to align the source-code lines with the coverage data. I failed last time, but today I got a step further by examining the example more closely.
What I still need to figure out:
In BundleCoverage -> Packages -> Classes -> lines, there is an array of coverage information for what seems to correspond to course lines.
Also interesting are
BundleCoverage -> Packages -> Classes -> methods. The offset field of each method seems to denote the line number of the first line of method code. Some lines are null, which I assume are the whitespaces.
Would it be safe to assume that the "lines" array in the method represents all source lines after the start of the method (=offset)?
Basically, is the assumption that offset + lines[i] == source line number?
Thanks!
Nikola