Branch Coverage

lib/Doxygen/Filter/Perl.pm
Criterion Covered Total %
branch 14 182 7.6


line true false branch
189 0 0 if substr($message, -1, 1) ne "\n"
213 7 0 if ($$self{'_sState'} eq 'NORMAL') { }
0 0 elsif ($$self{'_sState'} eq 'METHOD') { }
0 0 elsif ($$self{'_sState'} eq 'DOXYGEN') { }
0 0 elsif ($$self{'_sState'} eq 'POD') { }
216 0 7 if ($line =~ /^\s*sub\s*(.*)/) { }
0 7 elsif ($line =~ /^\s*#\*\*\s*\@/) { }
0 7 elsif ($line =~ /^=.*/) { }
223 0 0 if ($line =~ /^\s*#\*\*\s*\@/)
229 0 0 unless ($line =~ /^\s*#/)
239 0 0 if ($$self{'_sState'} eq 'NORMAL')
243 0 0 if ($line =~ /^\s*sub\s*(.*)/)
249 0 0 if ($line =~ /^=cut/)
259 7 0 if ($$self{'_sState'} eq 'NORMAL') { }
0 0 elsif ($$self{'_sState'} eq 'METHOD') { }
0 0 elsif ($$self{'_sState'} eq 'DOXYGEN') { }
0 0 elsif ($$self{'_sState'} eq 'POD') { }
261 0 7 if ($line =~ /^\s*package\s*(.*)\;$/) { }
2 5 elsif ($line =~ /our\s+\$VERSION\s*=\s*(.*);$/) { }
0 5 elsif ($line =~ /^\s*use\s+([\w:]+)(|\s*(\S.*?)\s*;*)$/) { }
0 5 elsif ($line =~ /^\s*(?:Readonly\s+)?(my|our)\s+(([\$\@%*])(\w+))([^=]*|\s*=\s*(\S.*?)\s*;*)$/) { }
282 0 0 if (defined $sIncludeModule)
285 0 0 if ($sIncludeModule =~ /^(base|strict|warnings|vars|Exporter)$/) { }
287 0 0 if ($sIncludeModule eq 'base') { }
290 0 0 unless $@
322 0 0 if (defined $sAttrName)
326 0 0 if ($scope eq 'our' and $fullName =~ /^(\@ISA|\@EXPORT|\@EXPORT_OK|\$VERSION)$/) { }
328 0 0 if ($fullName eq '@ISA' and defined $expr) { }
331 0 0 unless $@
341 0 0 unless (exists $$self{'_hData'}{'class'}{$sClassName}{'attributes'}{$sAttrName})
344 0 0 $scope eq 'my' ? :
353 0 0 if ($line =~ /(#\*\*\s+\@.*$)/)
388 0 0 if ($class eq 'main' and @{$$classDef{'attributeorder'};} == 0 and @{$$classDef{'subroutineorder'};} == 0 and not defined $$classDef{'details'} and not defined $$classDef{'comments'})
408 0 0 if (defined $sComments or defined $sDetails)
411 0 0 if (defined $sComments)
416 0 0 if ($sDetails)
438 0 0 if $class =~ /::/
454 1 0 unless (exists $$self{'_hData'}{'class'}{$class})
482 1 0 if (defined $state and exists $$hValidStates{$state}) { }
486 1 0 unless (defined $$self{'_sState'} and $$self{'_sState'} eq $state)
499 0 0 if (defined $previous) { }
521 0 0 if (defined $$self{'_hData'}{'filename'}{'fullpath'})
524 0 0 if (defined $$self{'_hData'}{'filename'}{'details'})
525 0 0 if (defined $$self{'_hData'}{'filename'}{'version'})
570 0 0 if (defined $details)
573 0 0 if (defined $comments)
579 0 0 if $parent
581 0 0 if (@{$$classDef{'inherits'};})
586 0 0 $count++ == 0 ? :
620 0 0 if (defined $details) { }
624 0 0 if (defined $comments)
661 0 0 if ($line =~ /^\s*sub\s+(.*)/)
678 0 0 if ($sMethodName =~ /^_/) { }
693 0 0 unless ($cleanline =~ /=~/)
705 0 0 if ($cleanline =~ /(.*?print\s*)(.*?);(.*)/)
726 0 0 if ($$self{'_iOpenBrace'} > $$self{'_iCloseBrace'}) { }
0 0 elsif ($$self{'_iOpenBrace'} > 0 and $$self{'_iOpenBrace'} == $$self{'_iCloseBrace'}) { }
755 0 0 unless (defined $$self{'_hData'}{'class'}{$sClassName}{'subroutines'}{$sMethodName}{'state'})
760 0 0 unless (defined $$self{'_hData'}{'class'}{$sClassName}{'subroutines'}{$sMethodName}{'type'})
828 0 0 if ($sCommand eq 'fn')
831 0 0 if ($sCommand eq 'file') { }
0 0 elsif ($sCommand eq 'class') { }
0 0 elsif ($sCommand eq 'package') { }
0 0 elsif ($sCommand eq 'function') { }
0 0 elsif ($sCommand eq 'method') { }
0 0 elsif ($sCommand eq 'attr') { }
0 0 elsif ($sCommand eq 'var') { }
841 0 0 if ($sSubState eq 'DOXYFILE') { }
0 0 elsif ($sSubState eq 'DOXYCLASS') { }
0 0 elsif ($sSubState eq 'DOXYCOMMENT') { }
0 0 elsif ($sSubState eq 'DOXYATTR') { }
0 0 elsif ($sSubState eq 'DOXYFUNCTION' or $sSubState eq 'DOXYMETHOD') { }
864 0 0 if (defined $sMethodName) { }
882 0 0 if (defined $sAttrName) { }
885 0 0 if ($typeName) { }
893 0 0 if (defined $sState)
897 0 0 if (defined $sComments)
901 0 0 if (defined $modifiers)
926 0 0 if (defined $sOptions)
930 0 0 if ($aOptions[0] eq 'public' or $aOptions[0] eq 'private' or $aOptions[0] eq 'protected')
937 0 0 if ($sSubState eq 'DOXYFUNCTION' and not grep(/^static$/, @aOptions))
942 0 0 unless (defined $sMethodName)
947 0 0 if (defined $$self{'_sCurrentMethodName'}) { }
952 0 0 unless (defined $$self{'_sCurrentMethodName'})
954 0 0 if (defined $sParameters)
958 0 0 if (defined $state)
988 0 0 if ($line =~ /^\s*#\s*\@verbatim/) { }
0 0 elsif ($line =~ /^\s*#\s*\@endverbatim/) { }
1007 0 0 if ($iInVerbatimBlock == 0)
1015 0 0 if ($sBlockDetails)
1038 0 7 if ($line =~ /^\s*##\s+\@/) { }