Function Coverage

Function coverage measures if functions are called during test.

In the following example, full function coverage (2 / 2) is achieved as both functions, foo and main, have been called:

The function’s internal program flow is irrelevant for function coverage, hence it is a rather weak measure. As instrumentation mode, it is the most lightweight coverage measure.