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.
Note: Function coverage is available as instrumentation mode with ctc option
-i f
. It is reported- with ctcreport: option
-measures ...,f,...
, - with ctcpost: option
-ff
.