rt.cover - D Programming Language
Description: D Programming Language
Keywords: D programming language

Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Calendar
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

# rt.cover

Implementation of code coverage analyzer.
License:
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
Authors:
Walter Bright, Sean Kelly

Source rt/cover.d

void `dmd_coverSourcePath`(string `pathname`);
  Set path to where source files are located.
  Parameters:

  string `pathname` | The new path name.

void `dmd_coverDestPath`(string `pathname`);
  Set path to where listing files are to be written.
  Parameters:

  string `pathname` | The new path name.

void `dmd_coverSetMerge`(bool `flag`);
  Set merge mode.
  Parameters:

  bool `flag` | true means new data is summed with existing data in the listing file; false means a new listing file is always created.

void `_d_cover_register2`(string `filename`, size_t[] `valid`, uint[] `data`, ubyte `minPercent`);
  The coverage callback.
  Parameters:

  string `filename` | The name of the coverage file.
  size_t[] `valid` | Bit array containing the valid code lines for coverage
  uint[] `data` | Array containg the coverage hits of each line
  ubyte `minPercent` | minimal coverage of the module

Copyright © 1999-2022 by the D Language Foundation | Page generated by Ddoc on Thu Apr 7 14:47:20 2022