Branch Coverage

blib/lib/IRC/Indexer/Trawl/Bot.pm
Criterion Covered Total %
branch 23 82 28.0


line true false branch
42 0 2 if $args{'bindaddr'}
45 1 1 if $args{'postback'} and ref $args{'postback'}
57 0 0 unless $opts{'postback'}
117 2 4 if defined $verbose
123 3 3 if $irc
137 0 2 unless ref $self->report
139 1 1 if ($reason) { }
140 0 1 if $self->verbose
145 0 1 unless defined $self->report->status and $self->report->status eq 'FAIL'
154 0 3 if ($finished)
155 0 0 if $self->verbose
161 0 3 unless ref $self->report
162 0 3 unless $self->report->status eq 'DONE' or $self->report->status eq 'FAIL'
170 0 0 unless ref $self->report
171 0 0 unless defined $self->report->status and $self->report->status eq 'DONE' or $self->report->status eq 'FAIL'
193 0 2 if $self->verbose
195 0 2 unless $self->done
196 1 1 if ref $self->irc
199 1 1 if (my $postback = delete $$self{'POST'})
215 0 1 if $$self{'bindaddr'}
220 0 1 if $self->verbose
254 0 0 if $self->verbose
256 0 0 unless $self->report->server
282 0 0 unless $self->report->server
286 0 0 if $cmd eq 'lusers' and $$self{'State'}{'Lusers'}
288 0 0 if $self->verbose
302 0 0 unless $$self{'State'}{$state}
304 0 0 if $self->verbose
307 0 0 if $stc == scalar @states
310 0 0 if (time - $startedat > $$self{'timeout'})
315 0 0 if ($shutdown)
316 0 0 if $self->verbose
317 0 0 if $_[1] eq $_[5]
337 0 0 unless $self->done
338 0 0 unless $self->report->server
353 0 0 unless $self->done
361 0 0 if $this_server
394 0 0 unless $rawline = $_[11]
415 0 0 unless $rawline = $_[12][0]
419 0 0 if ($chunk =~ /^[0-9]+$/)
421 0 0 if ++$i == 2