Branch Coverage

lib/Doxygen/Filter/Perl.pm
Criterion Covered Total %
branch 14 206 6.8


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+([\w]+)/ and $line =~ /^\s*sub\s+([\D][\w]*)/) { }
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+([\w]+)/ and $line =~ /^\s*sub\s+([\D][\w]*)/)
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') { }
289 0 0 if (substr($expr, 0, 8) =~ /\"require/) { }
293 0 0 unless $@
326 0 0 if (defined $sAttrName)
330 0 0 if ($scope eq 'our' and $fullName =~ /^(\@ISA|\@EXPORT|\@EXPORT_OK|\$VERSION)$/) { }
332 0 0 if ($fullName eq '@ISA' and defined $expr) { }
335 0 0 unless $@
345 0 0 unless (exists $self->{'_hData'}{'class'}{$sClassName}{'attributes'}{$sAttrName})
348 0 0 $scope eq 'my' ? :
357 0 0 if ($line =~ /(#\*\*\s+\@.*$)/)
394 0 0 if ($class eq 'main' and @{$classDef->{'attributeorder'};} == 0 and @{$classDef->{'subroutineorder'};} == 0 and not defined $classDef->{'details'} and not defined $classDef->{'comments'})
414 0 0 if (defined $sComments or defined $sDetails)
417 0 0 if (defined $sComments)
422 0 0 if ($sDetails)
445 0 0 if $class =~ /::/
455 0 0 unless (defined $_)
466 1 0 unless (exists $self->{'_hData'}{'class'}{$class})
494 1 0 if (defined $state and exists $hValidStates->{$state}) { }
498 1 0 unless (defined $self->{'_sState'} and $self->{'_sState'} eq $state)
511 0 0 if (defined $previous) { }
533 0 0 if (defined $self->{'_hData'}{'filename'}{'fullpath'})
536 0 0 if (defined $self->{'_hData'}{'filename'}{'details'})
537 0 0 if (defined $self->{'_hData'}{'filename'}{'version'})
582 0 0 if (defined $details)
585 0 0 if (defined $comments)
591 0 0 if $parent
593 0 0 if (@{$classDef->{'inherits'};})
598 0 0 if (defined $inherit)
600 0 0 $count++ == 0 ? :
634 0 0 if ($parameters =~ /^ *$/) { }
636 0 0 if ($prototype =~ /^ *$/) { }
651 0 0 if (defined $details) { }
655 0 0 if (defined $comments)
673 0 0 if ($parameters =~ /^ *$/) { }
675 0 0 if ($prototype =~ /^ *$/) { }
706 0 0 if ($line =~ /^\s*sub\s+([\w]+)/ and $line =~ /^\s*sub\s+([\D][\w]*)/)
719 0 0 if (defined $proto)
727 0 0 unless (defined $self->{'_sCurrentMethodName'})
728 0 0 unless (defined $self->{'_sProtoType'})
734 0 0 if ($sMethodName =~ /^_/) { }
749 0 0 unless ($cleanline =~ /=~/)
761 0 0 if ($cleanline =~ /(.*?print\s*)(.*?);(.*)/)
782 0 0 if ($self->{'_iOpenBrace'} > $self->{'_iCloseBrace'}) { }
0 0 elsif ($self->{'_iOpenBrace'} > 0 and $self->{'_iOpenBrace'} == $self->{'_iCloseBrace'}) { }
811 0 0 unless (defined $self->{'_hData'}{'class'}{$sClassName}{'subroutines'}{$sMethodName}{'state'})
816 0 0 unless (defined $self->{'_hData'}{'class'}{$sClassName}{'subroutines'}{$sMethodName}{'type'})
885 0 0 unless (defined $sOptions)
891 0 0 if (defined $2)
900 0 0 if ($sCommand eq 'fn')
903 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') { }
913 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') { }
936 0 0 if (defined $sMethodName) { }
954 0 0 if (defined $sAttrName) { }
957 0 0 if ($typeName) { }
965 0 0 if (defined $sState)
969 0 0 if (defined $sComments)
973 0 0 if (defined $modifiers)
998 0 0 if (defined $sOptions)
1002 0 0 if ($aOptions[0] eq 'public' or $aOptions[0] eq 'private' or $aOptions[0] eq 'protected')
1009 0 0 if ($sSubState eq 'DOXYFUNCTION' and not grep(/^static$/, @aOptions))
1014 0 0 unless (defined $sMethodName)
1019 0 0 if (defined $self->{'_sCurrentMethodName'}) { }
1024 0 0 unless (defined $self->{'_sCurrentMethodName'})
1026 0 0 if (defined $sParameters)
1030 0 0 if (defined $state)
1060 0 0 if ($line =~ /^\s*#\s*\@verbatim/) { }
0 0 elsif ($line =~ /^\s*#\s*\@endverbatim/) { }
1079 0 0 if ($iInVerbatimBlock == 0)
1087 0 0 if ($sBlockDetails)
1110 0 7 if ($line =~ /^\s*##\s+\@/) { }