Branch Coverage

blib/lib/WWW/Sitemap.pm
Criterion Covered Total %
branch 22 68 32.3


line true false branch
443 0 0 unless defined $option
445 0 0 unless grep {$_ eq $option;} keys %OPTIONS
448 0 0 if (defined $val)
469 0 0 unless ref $callback eq 'CODE'
483 0 1 unless $$self{'ROOT'} =~ m[/$]
502 0 1 $$self{'VERBOSE'} >= 2 ? :
524 0 1 if (exists $$self{'MD5_digest'}{$MD5_digest}) { }
540 0 1 if defined $$self{'url-callback'}
559 0 0 unless $to_url =~ m[(?:/|\.s?html?)$]
560 0 0 unless (defined $$self{'depth'}{$to_url})
570 0 0 if defined $$self{'DEPTH'} and defined $$self{'depth'}{$to_url} and $$self{'depth'}{$to_url} >= $$self{'DEPTH'}
581 44 0 unless $self->is_internal_url($url)
583 0 0 unless $url =~ m[(?:/|\.s?html?)$]
589 0 0 if defined $$self{'DEPTH'} and defined $$self{'depth'}{$url} and $$self{'depth'}{$url} >= $$self{'DEPTH'}
599 0 1 unless $self->is_internal_url($url)
601 0 1 unless $url =~ m[(?:/|\.s?html?)$]
607 0 1 if defined $$self{'DEPTH'} and $$self{'depth'}{$url} >= $$self{'DEPTH'}
622 0 0 if (exists $$self{'equiv'}{$from_url} or exists $$self{'equiv'}{$to_url})
649 1 0 if $depth == 0
661 0 0 unless $self->depth($_) == $depth + 1
662 0 0 unless $self->is_internal_url($_)
663 0 0 if $$self{'visited'}{$_}
667 0 1 if @links
672 0 1 if @links
692 0 1 unless @_ % 2 == 0
700 0 6 unless (exists $OPTIONS{$_})
708 0 2 unless (defined $$self{$_})
735 525 1 if $node->tag ne 'title'
736 0 1 if $start_flag == 0
738 1 0 if (defined $node->content and ref $node->content eq 'ARRAY')
745 0 1 unless defined $bit or ref $bit ne ''
746 0 1 defined $$self{'title'}{$url} ? :
760 1 0 if (defined $$self{'title'}{$url})
794 0 4 unless $$self{'VERBOSE'}