The directives added to the run_test() function within the test script above provide checks on entry-point, statement and decision coverage. The first will fail the test if one or more of the functions in the software under test are not executed at least once during the test. The latter two will return warnings only. Note that the level at which either a failure or warning is raised can be varied by the tester and further can depend on the average, maximum or minimum (as used here) percentage coverage achieved during the test.

Next: Instrumentation