View Issue Details

IDProjectCategoryView StatusLast Update
0000796XdebugCode Coveragepublic2020-03-12 17:13
Reportermikey10Assigned Toderick 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionnot fixable 
PlatformMacOSOSXOS Version10.7
Product Version2.1.3 
Target VersionFixed in Version 
Summary0000796: Code coverage doesn't work as expected with some kind of conditions / constellations
Description//yay, like expected
if( 1 != 1 ):
not_covered();
endif;

//omg, not like expected
if( 1 != 1 )
covered_arrrrrg();

The same happens with equal single-line-expressions

Okay, i understand, why this happens. But i think, it's bad, that i need to change my code, so that code coverage works (as expected?). Maybe a new option for xdebug_start_code_coverage like XDEBUG_CC_GEEK_COVERAGE?
Steps To ReproduceI hope, u guy/guys? already know that ... so nothing to reproduce here
Additional InformationIf no one has time for this "sort-of" feature; just write, what solution u guys prefere and i will write a patch.
TagsNo tags attached.
Operating SystemMac OS X
PHP Version5.3.7

Activities

derick

2012-03-16 22:10

administrator   ~0001990

I can't do anything about this, as it's up to PHP to say which lines actually have executable code.

Issue History

Date Modified Username Field Change
2012-03-16 18:28 mikey10 New Issue
2012-03-16 22:10 derick Note Added: 0001990
2012-03-16 22:10 derick Status new => resolved
2012-03-16 22:10 derick Resolution open => not fixable
2012-03-16 22:10 derick Assigned To => derick
2020-03-12 16:55 derick Severity trivial => feature
2020-03-12 17:13 derick Category Feature/Change request => Code Coverage