The Coverage Statistics view displays, in tabular format, coverage data for each package, class, and method in a profiling resource. Coverage data for each line of code can also be displayed, but only if the data was collected using a profiling set that included the Method and Line Code Coverage profiling type.
To display the Coverage Statistics view, right-click a profiling resource entry in the Profiling Monitor, then select Method Level Coverage or the Method and Line Code Coverage profiling type.
. Data for the resource must have been collected with a profiling set that included either theColumn | Description |
---|---|
Item Names | The item (the package, class, or method, or a summary of them) to which the coverage data in any given row applies. |
Class Names | The class that includes the method or class that is specified in the Item Names column. This column is displayed when you group the data by class or method. |
Package | The package that includes the method that is named in the Item Names column. This column is displayed when you group the data by class or method. |
Calls | The number of calls to an item during the data collection run. Note: The data in this column is meaningful only if you collected data with a profiling set that included the Method Code Coverage profiling type. |
Methods Missed | The number of methods included in the item that were not exercised. If the item is a method that was not exercised, it is marked missed. |
Methods Hit | The number of methods included in the item that were exercised. If the item is a method that was not exercised, it is marked hit. |
% Methods Hit | The percentage of methods included in the item that were exercised. |
Units Hit | The number of units included in the item that were exercised. A unit is executable segment of code; it can be either a line or part of a line. |
Total Units | The total number of units included in the item. |
% Units Hit | The percentage of units in the item that were exercised. exercised. |
Toolbar Button | Command | Description |
---|---|---|
|
Package Level Information |
Groups the items in the display by package, and within package by class. This is the default for the Coverage Statistics view. |
|
Class Level Information |
Groups the items in the display by class. |
|
Method Level Information |
Groups the items in the display by method. |
![]() |
Open Source for Editinig |
Opens the source code, if available, for the selected item. Source code is available for editing only if you are profiling a Java project that is currently open in the Java perspective. |
Pop-up menu |
Refresh Views |
NOTE to REVIEWERS: I can’t see that this menu item has any effect on this view. What does it do? |
Pop-up menu |
Choose Columns . . . |
Allows you to select and arrange the columns displayed in the view. The package, class, and method displays have independent settings. |
Pop-up menu |
Open Source for Editing |
Opens the source code, if available, for the selected item. Source code is available for editing only if you are profiling a Java project that is currently open in the Java perspective. |
Control | Description |
---|---|
Filter text box |
Allows you to enter a string to filter the display based on package, class, or method, depending on how you have grouped the items in the display. For wildcards, use an asterisk (*). |
Case-sensitive checkbox |
Allows you to specify whether to distinguish between uppercase and lowercase letters when filtering data. |