This tutorial demonstrates launching the sample application, closing the application and inspecting the coverage results.
The source code display indicates the lines that are instrumented by highlighting the background colour of the line according to its visited, non-visited, or non-instrumentable status. Visit counts are displayed to the left handside of the source code (and optionally in tooltips for each line). A red cross indicates a line that could not be instrumented, a green tick indicates an instrumented line that has been visited.
Notice that the number of lines visited for the source file nativeExample.cpp are higher than for the first tutorial. The reason for this is nativeExample.cpp contains the implementation of the “About Box” in the CAboutDlg class. The code for this class was executed when the Help menu entry was activated and when the OK button was clicked to dismiss the dialog box. The image to the right shows the source code display for CAboutDlg in nativeExample.cpp.