those functions aren't /called/ unless coverage is set ._.;;

This commit is contained in:
Shish 2011-12-24 21:55:33 +00:00
parent 883c73c9ff
commit 6d3cdb208c
1 changed files with 2 additions and 2 deletions

View File

@ -1031,14 +1031,14 @@ function _end_cache() {
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
function _start_coverage() {
if(COVERAGE && function_exists("xdebug_start_code_coverage")) {
if(function_exists("xdebug_start_code_coverage")) {
#xdebug_start_code_coverage(XDEBUG_CC_UNUSED|XDEBUG_CC_DEAD_CODE);
xdebug_start_code_coverage(XDEBUG_CC_UNUSED);
}
}
function _end_coverage() {
if(COVERAGE && function_exists("xdebug_get_code_coverage")) {
if(function_exists("xdebug_get_code_coverage")) {
if(!file_exists("data/coverage")) mkdir("data/coverage");
$n = 0;
$t = time();