- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using code coverage on several tests and when I run the tool certain blocks are highlighted as uncovered but those blocks correspond to debugging. Is there a way I can program or manipulate the tool to ignore certain blocks/if statements instead of picking them up?
Thanks in advance
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The techniques for doing this are described in the Code Coverage tool documentation. There are multiple options with granularity as fine as you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see, thank you for reminding me about the documentation.
Where exactly do I type those options about excluding code in, i.e -beginblkdsbl and -endblkdsbl?. Will it be in the source code?
Thanks Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tools > Intel Compiler > Code Coverage... > Generate Report > Settings > codecov options > Additional options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So does the exclusion of certain functions only occur if they are within a comment?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't quite understand your question. There are multiple ways of excluding portions of code. You can bracket sections with "begin and end" comments, you can add a comment on a particular line, you can exclude whole source files. A function cannot be "within a comment". I don' profess to be an expert in the code coverage tool, but I thought the documentation's examples were clear. Perhaps you could show an example of what you'd like to do if you're still uncertain.
![](/skins/images/45C6C2D737ED71F4C51F0145C8CB1E9C/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page