The coverage source code display of the Annotated Source view includes a copy of the source code marked with line-level coverage annotations.
To display the Annotated Source view, right-click a profiling resource entry in the Profiling Monitor, then select . Data for the resource must have been collected with a profiling set that included the Method and Line Code Coverage profiling type. Click a class or method in the Coverage Navigator view to display the annotated source code for the class or method.
Clicking an entry in the Coverage Navigator at the package level or above displays the Annotated Source view’s source data display.
The right margin shows a map of the location of tested (green), untested (red), and partially tested (orange) code. Use this map to scroll to the sections of code that interest you.
| Toolbar Button | Command | Description |
|---|---|---|
Show Source Code with Annotations, or Show Source Data |
Toggles the Annotated Source view to show either the source code with annotations or the source data. |
|
| |
Open Source for Editing |
Displays the source code, if available, for the selected item. Source code is available only if you are profiling a Java™ project that is currently open in the Java perspective. |