PureCoverage uses debug line information to collect line-by-line coverage data. If this debug data is not available for a module, PureCoverage excludes that module by default. You can change this default by requesting function level. However, most of the functions will be recorded with the name UnnamedFunction and are filtered by default.
For native-compiled (unmanaged) Visual C++ programs, PureCoverage also requires relocation data to collect data at line or function level. If relocation data is not available for a module, PureCoverage excludes the module. You can build a release or debug version of an application that contains relocation data by specifying the /fixed:no and /incremental:no linker options in the Project Settings dialog box in Visual Studio. For more information on the recommended settings for Visual Studio .NET, Visual Studio 2005 and Visual Studio 2008, click . For those for Visual Studio 6, click
.
For Java code, you can collect coverage data at line level only if you generate debug data by compiling the class files using the /g or -g switch to produce line number information. For example:
§ For the Sun JVM: javac -g hello.java
Note:
§ If debug symbol data is not available for a function or procedure, PureCoverage labels the function or procedure UnnamedFunction@<offset> or UnnamedProcedure@<offset>, respectively.
(C) Copyright IBM Corporation 1993, 2010.