Use this command to hide selected code from being reported as Missed (not executed). This may be useful when certain code is known to be very difficult to execute in the test suite and you wish to eliminate it from test reports.
Code marked Hidden is still monitored for execution. If the code is executed, its status will be changed from Hidden to Hit. For the purposes of calculating percent test coverage, Hidden code is treated as being completely outside the project (unless it is Hit).
You select code to be marked Hidden by highlighting it in a Summary Window or Source Window. Any number of lines may be selected, and all will be marked Hidden.
In a Summary Window, you may select executables, folders, files, or procedures. If you select an executable, folder, or file to be Hidden, you may subsequently select an item within it (such as a file within an executable, or procedure within a file), and mark that item as Excluded, Hit, or Missed. Whenever you mark an executable, folder, or file as Hidden, the state of any items within are lost.
If the Keep Changes command on the Edit menu is checked, then any code marked Hidden from the Summary Window will be recorded as such in the project file. When you use the Clear Coverage command on the Test menu, this code will again be marked Hidden. Code marked from the Source Window is not recorded in the project file.