About library coverage

PureCoverage provides different coverage information for third-party, shared, and system libraries.

Third-party libraries: The data that PureCoverage collects includes coverage data for third-party libraries. The degree of detail available depends on how the library code is compiled. Typically, debugging data is not available for third party libraries. Therefore, PureCoverage accumulates only function-level summary data. Even when the code is compiled with debugging data, source code is not usually available, and so the Annotated Source window cannot display it.

Shared libraries: PureCoverage collects data for shared libraries in the same way as for other code. It records coverage at the function level for code without debugging data. It also collects coverage data at the line level when debugging data is available.

System libraries:The coverage data for system libraries such as libc and libm is usually low and often meaningless. By default, PureCoverage does not collect coverage data for system libraries in standard directory locations. PureCoverage accomplishes this with exclude directives in the default .purecov and .purecov.<platform> files.