[Issue 1587] New: improvments to std.cover
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 16 14:02:42 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1587
Summary: improvments to std.cover
Product: D
Version: 1.018
Platform: All
OS/Version: All
Status: NEW
Keywords: patch
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: shro8822 at vandals.uidaho.edu
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.
--
More information about the Digitalmars-d-bugs
mailing list