You can convert coverage data to PureCoverage ASCII export format for processing by a report script. To convert data to export format select File > Write export script from the PureCoverage Viewer. From the command line, use the syntax:
% purecov -export=tests.export test1.pcv test2.pcv test3.pcv...
To supply export data directly to a report script, use the syntax:
% purecov -export=tests.export test1.pcv | <report script>
In export format, each line is an individual coverage data record. Each line begins with a keyword that indicates the type of coverage data. The data fields that follow are positional and are separated by tabs. Blank lines can appear in the file.
For a sample of export format, click
For
the data fields in each line, click a keyword in the following table.
Keyword |
Line |
Type of information |
Summary information about all the data | ||
Start of information about a source directory | ||
End of information about a source directory | ||
Start of information about a file | ||
End of information about a file | ||
Start of information about a function | ||
End of information about a function | ||
Information about a single line of source code | ||
Information about a single basic block of object code |
Notes:
Use the # symbol to add comments to an export file. A comment runs from the # character to the end of the line. Comments always appear on a separate line.
Each export file contains a header describing the key and field meanings