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)
435 0 0 if $class =~ /::/
451 1 0 unless (exists $$self{'_hData'}{'class'}{$class})
479 1 0 if (defined $state and exists $$hValidStates{$state}) { }
483 1 0 unless (defined $$self{'_sState'} and $$self{'_sState'} eq $state)
496 0 0 if (defined $previous) { }
518 0 0 if (defined $$self{'_hData'}{'filename'}{'fullpath'})
521 0 0 if (defined $$self{'_hData'}{'filename'}{'details'})
522 0 0 if (defined $$self{'_hData'}{'filename'}{'version'})
567 0 0 if (defined $details)
570 0 0 if (defined $comments)
576 0 0 if $parent
578 0 0 if (@{$$classDef{'inherits'};})
583 0 0 $count++ == 0 ? :
617 0 0 if (defined $details) { }
621 0 0 if (defined $comments)
658 0 0 if ($line =~ /^\s*sub\s+(.*)/)
675 0 0 if ($sMethodName =~ /^_/) { }
690 0 0 unless ($cleanline =~ /=~/)
702 0 0 if ($cleanline =~ /(.*?print\s*)(.*?);(.*)/)
723 0 0 if ($$self{'_iOpenBrace'} > $$self{'_iCloseBrace'}) { }
0 0 elsif ($$self{'_iOpenBrace'} > 0 and $$self{'_iOpenBrace'} == $$self{'_iCloseBrace'}) { }
752 0 0 unless (defined $$self{'_hData'}{'class'}{$sClassName}{'subroutines'}{$sMethodName}{'state'})
757 0 0 unless (defined $$self{'_hData'}{'class'}{$sClassName}{'subroutines'}{$sMethodName}{'type'})
825 0 0 if ($sCommand eq 'fn')
828 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') { }
838 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') { }
861 0 0 if (defined $sMethodName) { }
879 0 0 if (defined $sAttrName) { }
882 0 0 if ($typeName) { }
890 0 0 if (defined $sState)
894 0 0 if (defined $sComments)
898 0 0 if (defined $modifiers)
923 0 0 if (defined $sOptions)
927 0 0 if ($aOptions[0] eq 'public' or $aOptions[0] eq 'private' or $aOptions[0] eq 'protected')
934 0 0 if ($sSubState eq 'DOXYFUNCTION' and not grep(/^static$/, @aOptions))
939 0 0 unless (defined $sMethodName)
944 0 0 if (defined $$self{'_sCurrentMethodName'}) { }
949 0 0 unless (defined $$self{'_sCurrentMethodName'})
951 0 0 if (defined $sParameters)
955 0 0 if (defined $state)
985 0 0 if ($line =~ /^\s*#\s*\@verbatim/) { }
0 0 elsif ($line =~ /^\s*#\s*\@endverbatim/) { }
1004 0 0 if ($iInVerbatimBlock == 0)
1012 0 0 if ($sBlockDetails)
1035 0 7 if ($line =~ /^\s*##\s+\@/)