www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Coverage (-cov)

reply Tony <tonytdominguez aol.com> writes:
I am compiling a module (utils) with one function in it with the 
-cov compiler option on Ubuntu 14.04 with DMD v2.073.2. I then 
compile a "main module" with -cov that imports the "utils module" 
and calls the one function. The *.lst output file shows lines 
that executed in the "main module". I would like it to also show 
lines that executed in the module that was imported. Is this 
possible?
Sep 23 2017
parent Tony <tonytdominguez aol.com> writes:
On Sunday, 24 September 2017 at 05:48:32 UTC, Tony wrote:
 I am compiling a module (utils) with one function in it with 
 the -cov compiler option on Ubuntu 14.04 with DMD v2.073.2. I 
 then compile a "main module" with -cov that imports the "utils 
 module" and calls the one function. The *.lst output file shows 
 lines that executed in the "main module". I would like it to 
 also show lines that executed in the module that was imported. 
 Is this possible?
Oops. Never mind. I just noticed the utils.lst output file.
Sep 23 2017