Branch Coverage

blib/lib/WWW/SimpleRobot.pm
Criterion Covered Total %
branch 19 38 50.0


line true false branch
50 6 0 unless $$self{'VERBOSE'}
67 0 14 unless exists $OPTIONS{$_}
69 0 2 unless ($args{'TRAVERSAL'} =~ /^(depth|breadth)$/)
90 0 2 unless @{$$self{'URLS'};}
99 0 2 unless $uri
100 0 2 unless $uri->scheme
101 0 2 unless $uri->scheme eq 'http'
102 0 2 unless my($content_type, $document_length, $modified_time) = head $uri
121 0 2 unless ($html)
130 0 2 if defined $$self{'DEPTH'} and $$page{'depth'} == $$self{'DEPTH'}
134 36 126 unless $tag eq 'a'
135 0 126 unless my $href = $attr{'href'}
137 0 126 unless $href = 'URI'->new($href)
139 54 72 unless $href =~ /$$self{'FOLLOW_REGEX'}/
141 0 72 unless $content_type
142 72 0 unless $content_type eq 'text/html'
143 0 0 if $seen{$href}++
151 0 0 $$self{'TRAVERSAL'} eq 'depth' ? :
182 0 2 if defined $value