Branch Coverage

blib/lib/GMail/IMAPD.pm
Criterion Covered Total %
branch 0 148 0.0


line true false branch
23 0 0 defined $args{'Detach'} ? :
48 0 0 if ($$self{'Detach'})
50 0 0 if fork
64 0 0 unless (fork)
65 0 0 unless defined $s
80 0 0 if (uc $cmd eq 'UID')
86 0 0 if ($cmd eq 'LOGOUT')
90 0 0 if $$self{'CacheDBH'}
94 0 0 if (grep /^$cmd$/, @COMMANDS) { }
114 0 0 if ($mbox eq 'INBOX') { }
144 0 0 if $args =~ s/\s*UID$//
152 0 0 if ($folder eq 'INBOX') { }
0 0 elsif ($folder eq 'Trash') { }
0 0 elsif ($folder eq 'All') { }
0 0 elsif ($folder eq 'Starred') { }
158 0 0 if ($$self{'SelFolder'} eq 'Spam') { }
178 0 0 if ($$self{'SelFolder'} eq 'INBOX')
203 0 0 if ($$msg{'Flags'} and $$msg{'Flags'} =~ /Deleted/)
213 0 0 if ($args =~ s/UID$//)
226 0 0 if ($part eq 'UID') { }
0 0 elsif ($part eq 'FLAGS') { }
230 0 0 $$msg{'new'} ? :
235 0 0 if ($part eq 'ENVELOPE')
238 0 0 if ($part eq 'INTERNALDATE') { }
0 0 elsif ($part =~ /^(RFC822|BODY)/) { }
243 0 0 if ($part =~ /SIZE/) { }
0 0 elsif ($part =~ /HEADER/) { }
269 0 0 $_ eq 'INBOX' ? :
282 0 0 if ($res == -1) { }
0 0 elsif ($res == 0) { }
292 0 0 if ($$self{'CacheDBH'})
305 0 0 $_ eq 'INBOX' ? :
335 0 0 @{$$self{'Msgs'};} ? :
352 0 0 if $args =~ s/\s*UID$//
357 0 0 if ($args =~ /\+FLAGS/i)
359 0 0 if ($args =~ /Deleted/)
360 0 0 if ($$self{'SelFolder'} eq 'INBOX') { }
0 0 elsif ($$self{'SelFolder'} eq 'Trash') { }
0 0 elsif ($$self{'SelFolder'} eq 'All') { }
0 0 elsif ($$self{'SelFolder'} eq 'Starred') { }
0 0 elsif ($$self{'SelFolder'} eq 'Spam') { }
361 0 0 unless ($$self{'CopyFolder'} eq 'Trash')
367 0 0 unless ($$self{'CopyFolder'})
391 0 0 if ($args =~ /Seen/)
418 0 0 if ($arg =~ s/^(['"(<])//)
420 0 0 if ($q eq '(') { }
0 0 elsif ($q eq '<') { }
422 0 0 if $s =~ s/([^$q]*)$q//
434 0 0 unless $fmt eq 'raw'
442 0 0 unless ($s)
446 0 0 unless $fmt eq 'raw'
453 0 0 unless $msgs
460 0 0 if $$msg{'new'}
469 0 0 if (not $end) { }
0 0 elsif ($end eq '*') { }
472 0 0 if ($useuid) { }
0 0 elsif ($$msg{'n'} >= $start and $$msg{'n'} <= $end) { }
473 0 0 if ($$msg{'uid'} >= $start and $$msg{'uid'} <= $end)
482 0 0 unless ($$self{'Cache'}{$$msg{'id'}})
494 0 0 if $addr =~ s/\s*<*(\S+\@[^>\s]+)>*\s*//
497 0 0 $_ ? :
501 0 0 $head =~ s/^$ent: ([^\r\n]+)//m ? :
506 0 0 if (@data) { }
0 0 elsif (@prevdata) { }
520 0 0 if (@data) { }
528 0 0 $head =~ s/^$ent: ([^\r\n]+)//m ? :
541 0 0 if $msg =~ /(.*?\r\n\r\n)/ms
549 0 0 $comp & 1 ? :
567 0 0 unless $smtp
575 0 0 unless $debug_level
576 0 0 unless $debug_level <= $$self{'Debug'}
578 0 0 if $$self{'Peer'}
580 0 0 unless $$self{'Detach'}
581 0 0 unless $$self{'LogFile'}