rt.compiler.dmd.rt.cover

Code coverage analyzer.

Members

Functions

_d_cover_register
void _d_cover_register(char[] filename, BitArray valid, uint[] data)

The coverage callback.

addExt
char[] addExt(char[] name, char[] ext)
Undocumented in source. Be warned that the author may not have intended to support it.
appendFN
char[] appendFN(char[] path, char[] name)
Undocumented in source. Be warned that the author may not have intended to support it.
baseName
char[] baseName(char[] name, char[] ext)
Undocumented in source. Be warned that the author may not have intended to support it.
chomp
char[] chomp(char[] str, char[] delim)
Undocumented in source. Be warned that the author may not have intended to support it.
dmd_coverDestPath
void dmd_coverDestPath(char[] pathname)

Set path to where listing files are to be written.

dmd_coverSetMerge
void dmd_coverSetMerge(bool flag)

Set merge mode.

dmd_coverSourcePath
void dmd_coverSourcePath(char[] pathname)

Set path to where source files are located.

expandTabs
char[] expandTabs(char[] str, int tabsize)
Undocumented in source. Be warned that the author may not have intended to support it.
getExt
char[] getExt(char[] name)
Undocumented in source. Be warned that the author may not have intended to support it.
readFile
bool readFile(char[] name, char[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
splitLines
void splitLines(char[] buf, char[][] lines)
Undocumented in source. Be warned that the author may not have intended to support it.

Bugs

  • the execution counters are 32 bits in size, and can overflow
  • inline asm statements are not counted

Meta

License

BSD style: $(LICENSE)

Authors

Walter Bright, Sean Kelly