Condition Coverage

lib/PHP/Decode/Func.pm
Criterion Covered Total %
condition 102 318 32.0


and 3 conditions

line !l l&&!r l&&r condition
256 3 0 1 $str eq "" and scalar @out > 0
282 0 0 13 defined $pattern and defined $res
347 5 4 4 defined $modifier and $modifier =~ /e/
1622 18 0 0 $strict and not $s =~ m[^[A-Za-z0-9/+]*=*$]
1667 22 0 0 $ctx->{'infunction'} and not $ctx->{'incall'}
1676 0 0 1 defined $basestr and is_array($basestr)
0 0 1 defined $basestr and is_array($basestr) and defined $idxstr
1725 228 226 27 defined $f and exists $f->{'cmd'}
1947 0 0 0 defined $s and defined $e
1962 0 0 1 defined $maxlen and $maxlen eq 0
0 0 1 defined $s and (defined $maxlen and $maxlen eq 0)
1978 0 0 1 defined $maxlen and $maxlen eq 0
0 0 1 defined $s and (defined $maxlen and $maxlen eq 0)
2032 0 0 6 defined $a and defined $s
0 0 6 defined $a and defined $s and defined $raw
2136 0 0 2 defined $s and defined $p
2145 0 0 2 defined $s and defined $off
2181 0 0 0 defined $s and defined $p
2209 0 0 3 defined $str and defined $from
0 0 3 defined $str and defined $from and defined $to
2234 0 0 1 defined $s and defined $d
2247 0 0 0 defined $s and defined $d
0 0 0 defined $s and defined $d and defined $len
2260 0 0 0 defined $s and defined $d
2273 0 0 1 defined $s and defined $d
0 0 1 defined $s and defined $d and defined $len
2286 0 0 1 defined $s and defined $m
2305 0 0 4 defined $pattern and defined $replacement
0 0 4 defined $pattern and defined $replacement and defined $subject
2337 0 0 0 defined $pattern and defined $replacement
0 0 0 defined $pattern and defined $replacement and defined $str
2356 0 0 7 defined $pattern and defined $replacement
0 0 7 defined $pattern and defined $replacement and defined $subject
2407 0 0 0 defined $s1 and defined $s2
2418 0 0 0 defined $s1 and defined $s2
2444 0 0 1 defined $s1 and defined $s2
0 0 1 defined $s1 and defined $s2 and $flags == 0
2465 0 0 0 defined $s1 and defined $s2
2495 0 0 4 defined $glue and defined $basestr
2532 0 0 5 defined $s1 and defined $s2
2540 1 0 4 $s1 =~ /^[a-zA-Z0-9]*$/ and $s2 =~ /^[a-zA-Z0-9]*$/
2610 0 0 1 defined $s and defined $d
2657 0 1 1 defined $val and is_array($val)
2683 0 0 2 defined $val and is_array($val)
2715 0 1 1 defined $val and is_array($val)
2745 0 0 2 defined $val and is_array($val)
2781 0 0 5 defined $val and is_array($val)
2814 0 0 1 defined $val and is_array($val)
2840 0 0 4 defined $val and is_array($val)
2867 0 0 1 defined $val and is_array($val)
2894 0 0 1 defined $val and is_array($val)
2919 1 0 0 $ctx->{'infunction'} and not $ctx->{'incall'}
2944 0 0 0 $ctx->{'infunction'} and not $ctx->{'incall'}
2971 0 0 2 is_strval($name) || is_variable($name) and is_array($param)
3006 0 0 2 defined $val and is_array($val)
3040 2 0 0 $ctx->{'infunction'} and not $ctx->{'incall'}
3083 0 0 1 defined $s and defined $precision
3099 0 0 0 defined $min and defined $max
3102 0 0 0 $ctx->{'infunction'} and not $ctx->{'incall'}
3123 0 2 1 $val =~ /^(\#str\d+)$/ and $s eq ""
3152 0 4 2 defined $basestr and is_array($basestr)
4 0 2 defined $basestr and is_array($basestr) and defined $idxstr
4 0 0 not defined $basestr and !$ctx->is_superglobal($basevar) || $basevar =~ /^\$GLOBALS$/
3158 0 0 0 $arrval =~ /^(\#str\d+)$/ and $s eq ""
3256 0 1 2 defined $basestr and is_array($basestr)
1 0 2 defined $basestr and is_array($basestr) and defined $idxstr
1 0 0 not defined $basestr and !$ctx->is_superglobal($basevar) || $basevar =~ /^\$GLOBALS$/
3287 0 0 0 $val =~ /^(\#num\d+)$/ and $s == 0
0 0 0 $val =~ /^(\#str\d+)$/ and $s eq ""
3326 0 0 0 defined $basestr and is_array($basestr)
0 0 0 defined $basestr and is_array($basestr) and defined $idxstr
0 0 0 not defined $basestr and !$ctx->is_superglobal($basevar) || $basevar =~ /^\$GLOBALS$/
3332 0 0 0 $arrval =~ /^(\#num\d+)$/ and $s == 0
0 0 0 $arrval =~ /^(\#str\d+)$/ and $s eq ""
3359 5 0 6 defined $inv and is_strval($inv)
3371 0 0 3 defined $key and defined $val
3436 0 3 9 defined $args and defined $code
3473 0 0 1 is_strval($name) || is_variable($name) and is_array($param)
3560 1 0 1 defined $filename and defined $mode
3577 0 0 0 $fh =~ /^(\#fh\d+)$/ and defined $cnt
3606 0 0 0 defined $cnt and length $res >= $cnt

or 3 conditions

line l !l&&r !l&&!r condition
1730 0 0 392 $cmd eq "rtrim" or $cmd eq "chop"
2 2 363 $cmd eq "implode" or $cmd eq "join"
2 0 356 $cmd eq "count" or $cmd eq "sizeof"
0 0 356 $cmd eq "htmlspecialchars" or $cmd eq "htmlentities"
0 0 356 $cmd eq "htmlspecialchars_decode" or $cmd eq "html_entity_decode"
1 0 331 $cmd eq "current" or $cmd eq "pos"
0 0 324 $cmd eq "rand" or $cmd eq "mt_rand"
2655 0 1 1 not defined $val or is_null($val)
1 1 0 not defined $val or is_null($val) or is_array($val)
2682 0 2 0 not defined $val or is_array($val)
2709 0 1 1 not defined $val or is_null($val)
1 1 0 not defined $val or is_null($val) or is_array($val)
2744 0 2 0 not defined $val or is_array($val)
2871 0 0 1 $pos == 0 or scalar @$keys == 0
2971 2 0 0 is_strval($name) || is_variable($name)
3046 0 0 2 not defined $keys or $num > scalar @$keys
3137 0 0 0 &parsing_func($ctx) or $ctx->{'tainted'}
3152 0 0 0 !$ctx->is_superglobal($basevar) || $basevar =~ /^\$GLOBALS$/
3179 0 0 0 &parsing_func($ctx) or $ctx->{'tainted'}
3234 0 0 2 &parsing_func($ctx) or $ctx->{'tainted'}
3256 0 0 0 !$ctx->is_superglobal($basevar) || $basevar =~ /^\$GLOBALS$/
3304 0 1 0 &parsing_func($ctx) or $ctx->{'tainted'}
3326 0 0 0 !$ctx->is_superglobal($basevar) || $basevar =~ /^\$GLOBALS$/
3458 3 0 0 is_strval($name) or is_variable($name)
3473 1 0 0 is_strval($name) || is_variable($name)