Branch Coverage

blib/lib/LWP/RobotUA.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
30 2 0 if (@_ < 4) { }
38 0 2 unless $cnf{'agent'}
40 0 2 unless $cnf{'from'} and $cnf{'from'} =~ /\@/
44 2 0 unless defined $use_sleep
53 0 2 if ($rules) { }
73 0 0 if (@_)
84 0 0 if @_
92 0 2 unless $self->{'rules'}->no_visits($netloc)
101 1 12 unless defined $netloc
103 10 2 if ($last)
105 0 10 if $wait < 0
119 2 11 if ($allowed < 0)
134 2 0 if ($robot_res->is_success and $robot_res->content_is_text)
136 0 2 unless $content and $content =~ /^\s*Disallow\s*:/im
145 2 11 unless ($allowed)
155 6 5 if ($wait)
156 4 2 if ($self->{'use_sleep'}) { }
183 0 0 if $self->{'use_sleep'}