Included is a path that allows for a program to dump coverage data programmatically (before the end of the run) with an extra name tag and also to zero the counters programmatically.
the idea is to use it like this
unittest
{
std.cover.Wipe()
scope(exit) std.cover.Dump("Unittest.somthing.");
// unittest for something
}
the you get cov for just that unittest in it's own set of files.
Comment #1 by shro8822 — 2007-10-16T16:04:19Z
Created attachment 194
the patch
a patch to std.cover to add some more functionality
Comment #2 by shro8822 — 2007-11-29T15:44:51Z
Created attachment 211
a new patch for the same change
this patch works with new version of cover.d. Its also is made using SVN so it should be easy to use.
Comment #3 by andrei — 2015-11-03T17:44:59Z
It's unlikely this D1 issue will get worked on, if anyone plans to work on it feel free to reopen.