On Friday, 12 January 2018 at 10:13:13 UTC, Leandro Lucarella wrote:

From what I saw in the code, I think what it does is just override where the code was actually placed when you compiled, so tools to visualize the coverage can show you the source code.

* https://dlang.org/code_coverage.html#switchsrcpath
* https://github.com/dlang/druntime/blob/382b759738b5fa1e59bfda2ad542b9d60ef3d59a/src/rt/cover.d#L83-L84 * https://github.com/dlang/druntime/blob/382b759738b5fa1e59bfda2ad542b9d60ef3d59a/src/rt/cover.d#L211

BTW, to just report coverage of certain files you can just compile with `-cov` those files. I guess that should work (maybe? :).

Thanks for the clarification.

Kind regards

Reply via email to