BullseyeCoverage Up Contents Search

cov_eventCount - Count Coverage Events

unsigned cov_eventCount(void);

Description

Function cov_eventCount returns the total number of coverage events recorded in memory for the current executable image.

This function is automatically declared in source files compiled by covc. In other source files, declare it by including <BullseyeCoverage.h>.

Examples

#if _BullseyeCoverage
	const unsigned count = cov_eventCount();
#endif

testCase1();

#if _BullseyeCoverage
	if (count == cov_eventCount())
		printf("testCase1 does not increase coverage\n");
#endif

Updated: 23 Sep 2023