Branch Coverage

blib/lib/Mail/IMAPQueue.pm
Criterion Covered Total %
branch 31 54 57.4


line true false branch
195 0 5 unless (blessed $imap)
230 0 23 if $self->is_empty
258 0 2 if $self->is_empty
266 0 2 wantarray ? :
281 7 10 if $self->is_empty
301 9 9 if $self->is_empty
308 0 9 wantarray ? :
322 11 19 if ($self->is_empty)
324 0 15 unless $self->reload_messages
326 4 11 if ($self->is_empty) { }
327 0 4 unless $self->attempt_idle
354 0 4 unless my $idle_tag = $imap->idle
359 0 4 unless $imap->done($idle_tag)
362 0 4 if ($@)
363 0 0 if (ref $@ and $@ == $imap) { }
364 0 0 unless ($imap->reconnect)
398 0 18 unless ($imap->IsSelected)
406 5 13 unless (defined $uidnext)
408 1 4 if ($$self{'skip_initial'}) { }
409 0 1 unless $uidnext = $imap->uidnext($imap->Folder)
412 0 4 unless $buffer = $imap->messages
417 14 4 unless ($loaded)
418 0 14 unless $buffer = $imap->search("UID ${uidnext}:*")
423 0 18 if ($@)
424 0 0 if (ref $@ and $@ == $imap) { }
425 0 0 unless $imap->reconnect
433 12 6 if (@$buffer > 0)