Filtering Data by Source File

Related Topics

 

1.           Open the Filter Manager dialog box.

2.           Select the Files tab.

3.           Select the source file whose data you want to filter.

4.           Click the selected source file's checkbox to enable the filter.

5.           Specify whether to distinguish between uppercase and lowercase letters when filtering the selected source file.

Notes:

§                  By default, PureCoverage filters source files containing certain pattern strings. To add a pattern, type a pattern string and click Add. You must type the fully qualified path for the source file, or use a leading asterisk (*) to denote any source file in any directory. You can use an asterisk (*) to denote a character string of any length; use a backslash with the asterisk (\*) if the file name itself contains an asterisk and use two backslashes (\\) if the file name contains a backslash. For example:

 

This pattern

Matches any source file whose name

*\\Shared\\*

Contains Shared in the path, in any directory

*Drivers\\*

Contains Drivers\ in the path, in any directory

*Util*.cpp

Contains Util and contains a .cpp extension, in any directory

§                  To edit a filter in place, click the selected source file or right-click the selected source file and select Rename from the shortcut menu.

§                  To disable a filter, click the selected source file's checkbox. When you click OK, PureCoverage redisplays the data for the source file. You can also delete a selected file by clicking Remove.

§                  Click Save Settings to save any changes you made to filters. PureCoverage saves the filters you create to the PureCoverage filter file (.cft).

§                  Warning: Using these options you could accidentally hide all data from the data coverage windows. To avoid this situation, PureCoverage reapplies your previous filters. If an Annotated Source window is open for a file and you filter all the functions in that file, PureCoverage closes the window.

§                  Right-click a selected source file to display a shortcut menu for working with the filter.

(C) Copyright IBM Corporation 1993, 2010.