fb_get_code_coverage
Returns code coverage data collected so far
function fb_get_code_coverage(
bool $flush,
): mixed;
Turn on code coverage by Eval.RecordCodeCoverage or by using fb_enable_code_coverage and call this function periodically to get results. Eval.CodeCoverageOutputFile allows you to specify an output file to store results at end of a script run from command line. Use this function in server mode to collect results instead.
Parameters
bool $flush
- Whether to clear data after this function call.