Branch Coverage

blib/lib/Autodia/Handler/PHP.pm
Criterion Covered Total %
branch 0 88 0.0


line true false branch
61 0 0 if ($self->_discard_line($line))
66 0 0 if ($incommentcount > 0) { }
71 0 0 if $incomment
76 0 0 if $inclass > 0
77 0 0 if $infunc > 0
78 0 0 if $inclassparen < 1
79 0 0 if $infuncparen < 1
82 0 0 if ($line =~ /.*class\s+([^\s\(\)\{\}]+)/)
87 0 0 if $self->skip($className)
91 0 0 if $exists
92 0 0 if ($line =~ /.*extends\s+(\S+)/)
100 0 0 if $super =~ /(?:exporter|autoloader)/i
105 0 0 if (ref $exists_already)
122 0 0 if ($line =~ /^\s*(include|require|include_once|require_once)\s+\(*["']?([^\"\'\)]+)["']?\)*/)
127 0 0 if $componentName =~ /(strict|vars|exporter|autoloader|data::dumper)/i
138 0 0 if (ref $exists)
152 0 0 if ($line =~ /^.*=\s*new\s+([^\s\(\)\{\}\;]+)/ or $line =~ /(\w+)::/)
157 0 0 if $componentName =~ /(self|parent|strict|vars|exporter|autoloader|data::dumper)/i
168 0 0 if (ref $exists)
182 0 0 if ($line =~ /^\s*((((static|var|public|private|protected)\s+)+)\$|const\s+)([^\s=\{\}\(\)]+)/)
183 0 0 unless $inclass
187 0 0 $class_modifier =~ /static/ ? :
188 0 0 $class_modifier =~ /const/ ? :
190 0 0 $class_modifier =~ /(protected)/ ? :
0 0 $class_modifier =~ /(var|public|const)/ ? :
194 0 0 if ($attribute_name =~ /^\_/ and $class_modifier =~ /var/)
198 0 0 if ($line =~ /^\s*((((static|var|public|private|protected)\s+)+)\$|const\s+)(\S+)\s*=\s*(.*)/)
215 0 0 if ($line =~ /([^\s]*)\s*function\s+&?(\w+)/)
216 0 0 unless ($inclass)
221 0 0 if $exists
232 0 0 $subroutine{'name'} =~ /^\_/ ? :
0 0 $method_modifier =~ /protected/ ? :
0 0 $method_modifier =~ /private/ ? :
233 0 0 $method_modifier =~ /final/ ? :
0 0 $method_modifier =~ /abstract/ ? :
236 0 0 if ($line =~ /function\s+(\S+)\s*\((.+?)\)/)
247 0 0 if defined $val
250 0 0 if ($name =~ /&/) { }
286 0 0 if ($line =~ /^\s*$/)
292 0 0 if ($line =~ m[^\s*//])
298 0 0 if ($line =~ /^\s*\=head/)
305 0 0 if ($line =~ /^\s*\=cut/)
312 0 0 if ($$self{'pod'} == 1)
329 0 0 unless (ref $$package)