The Coverage Statistics view for line and method coverage data

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 click Open With > Coverage Statistics. Data for the resource must have been collected with a profiling set that included either the Method Code Coverage or the Method and Line Code Coverage profiling type.

The data table in the Coverage Statistics view can display the following information:
Column 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 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.

Note: Click an entry in the table to synchronize the Coverage Navigator view and the Annotated Source view, if they are open.
The following toolbar buttons and menu commands are available in the Coverage Statistics view:
Toolbar button Command Description

Package-level information button

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 button

Class Level Information

Groups the items in the display by class.

Method-level information button

Method Level Information

Groups the items in the display by method.

Open source button

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.

Pop-up menu

Refresh Views

Updates the display to reflect the current state of the data that has been collected for the run.

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.

The following additional controls are also available:
Control Description

Filter field

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 wildcard characters, use an asterisk (*).

Case-sensitive check box

Allows you to specify whether to distinguish between uppercase and lowercase letters when filtering data.

Related tasks
Collecting coverage data for lines and methods
Viewing and analyzing coverage data for lines and methods
Managing data in the Coverage Statistics view
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.