To adjust a line of code interactively in the Annotated Source window, click opposite the line in one of the three adjustment columns (D, I, or T).
PureCoverage displays a D, I, or T in the column you clicked, and an adjustment directive as a comment to the right of the line, for example: /* purecov: inspected */. PureCoverage automatically replaces any previous adjustment to the line.
The adjustment takes effect immediately. PureCoverage updates both the Annotated Source window and the statistics in the Viewer. It does not re-sort the Viewer display, however, but only changes the Sorting order to Unsorted:
To re-sort the display, select View > Select sorting order in the PureCoverage Viewer.
Notes:
You cannot mark unnecessary adjustments in the Annotated Source window.
You cannot use the Annotated Source window to mark FORTRAN dialects that require all comments to exist on a separate line. You can, however, change the comment style (to C++ //-style comments, for example) by editing your ~/.purecov/.Xdefaults file.
Remove an adjustment by clicking the D, I, or T to the left of the line.
You can also remove an adjustment by selecting a line and pressing the space bar. To select a line, click on the number; use the arrow keys or the j and k keys; or enter a line number in the Go to line # field at the lower edge of the window. The selection point shows which line is currently selected.
PureCoverage deletes the entire comment, but only if the comment's format is exactly identical to the standard adjustment directive format. Otherwise, PureCoverage inserts the word NOT.
For example, PureCoverage cannot delete the following adjustment (made using an adjustment directive in the code) because it does not include a space between the colon and the word deadcode:
/* purecov:deadcode */
Instead, PureCoverage modifies it as follows:
/* purecov:NOT deadcode */