Using the Module View and File View (Purify Coverage Data)

Illustration        Related Topics

In a Data Browser window, click the Module View or File View tab. The Module View and File View display coverage data for functions, modules, and files. The information in the Module View and File View includes:

§          The number of times each function is called

§          The number of functions hit and missed

§          The percentage of functions hit

§          The number of lines hit and missed

§          The percentage of lines hit

You can do the following in the Module View and File View:

To

Do this

Change views

Click the Module View or File View tab to change how you view code-coverage data; by module or source file.

Sort data

Click a column heading to sort by the column or to change the sort order to ascending or descending.

Expand or collapse data

Right-click and select Expand/Collapse and the appropriate command from the shortcut menu. You can also use the tools in the Outline toolbar, or click the + and - icons to expand and collapse data.

Show or hide columns

Right-click in any column heading and select Show/Hide Columns from the shortcut menu. You can add columns such as the total number of functions and the total number of lines.

Resize columns

Drag the right border of a column heading to any width. You can also right-click in any column heading and select Size All to Fit from the shortcut menu to resize all columns, or Size to Fit to resize the current column.

Notes:

§      The Module View and File View are available only if you collected coverage data for a run.

§      If a string, including numeric values, is too long to be completely displayed in a column, Purify displays as much of the string as possible and then an ellipsis (…). You can resize the columns to fully display the data.

§      The Module View and File View display line data only if debug line data is available and the module that contains the function was monitored at line level.

§      You can save data from the Module View or File View tab to an ASCII text file (.txt) to use with test scripts or in a spreadsheet program, such as Microsoft Excel. You can also copy data to the Clipboard to use in a text editor.

§      Right-click in the Module View or File View tab to display a shortcut menu for working with the data.

§      The status bar displays the current sort order and the current function.

(C) Copyright IBM Corporation 1992, 2010.