You create the following two modules.
After you compile and run, the generated coverage data miss the last one.
>dmd -cov moda.d modb.d
>moda
# more convenient >rdmd -cov moda.d
// moda.d
import modb;
void main() {
local();
test();
}
mixin My!();
mixin Foreign!();
mixin template My() {
int local() {
return 0; // OK: counted in moda.lst
}
}
// modb.d
mixin template Foreign() {
int test() {
return 0; // NG: never counted in modb.lst
}
}
Comment #1 by jiki — 2014-03-13T20:09:27Z
Using the -allinst flag makes no difference.
Comment #2 by robert.schadek — 2024-12-13T18:18:16Z