Use the File View tab in the Coverage Browser window to see code coverage data for functions grouped by the source files in your program. The File View tab is helpful when you have a multi-module program and want to see the aggregated data for all modules.
PureCoverage displays, in a hierarchical format, code coverage data for the program run, and directories, files, and functions in the program, , including:
§ 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 operations in the coverage browser:
To |
Do this |
Change views |
Click the Module View tab to view coverage data by module instead of by 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:
§ If a string, including numeric values, is too long to be completely displayed in a column, PureCoverage displays as much of the string as possible and then an ellipsis (…). You can resize the columns to fully display the data.
§ The Coverage Browser window displays line data only if debug line information is available and the module that contains the function was monitored at line level.
§ When you compare runs, the Diff Coverage Browser window shows the original data for the two runs (identified as New and Base).
§ You can save data from the Coverage Browser window 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 Coverage Browser window to display a shortcut menu for working with the browser.
§ The status bar displays the current sort order and the current function.
Notes:
§ If two or more modules share the same source file, PureCoverage displays the source file, and the functions called within it, only once. For the source file, PureCoverage displays the sum of all the function calls made by all modules.
§ If you use the Find dialog box to search for a function in the File View tab, and if the function is shared, PureCoverage highlights the function in the File View tab. However, because the function appears multiple times in the Module View tab, PureCoverage does not highlight the function in the Module View tab.
(C) Copyright IBM Corporation 1993, 2010.