How does dotCover know which statements are hit by controlflow?
Completed
I know how to use dotCover, but I didn't understand how dotCover measures the coverage. The testdriver doesn't produce any resultfile.
Please help!
Please sign in to leave a comment.
Hi Pasqualino,
dotCover performs run-time instrumentation of an application being analyzed. Approximately speaking it adds to methods bodies special instructions that count how many times each statement of the method has been executed.
So each line of code contains then the injected function (or instruction) which is called when the statement has been executed?
Yes, but not in each line of code. The statements that we use are points in code on which debugger can stop during program execution - sequence points. So it could be more than one statement per line, thus dotCover provides statement, not line coverage.
Nice, thank you! I got it now!