Branch Coverage

blib/lib/Net/IMAP/Simple/NB.pm
Criterion Covered Total %
branch 0 84 0.0


line true false branch
146 0 0 $opts{'port'} ? :
150 0 0 $opts{'timeout'} ? :
151 0 0 $opts{'use_v6'} ? :
159 0 0 if (not $$self{'use_v6'} and $$self{'server'} =~ /^[A-Fa-f0-9]{4}:[A-Fa-f0-9]{4}:/ and $$self{'server'} =~ s/:(\d+)$//g)
164 0 0 unless ($sock)
179 0 0 unless $sock
190 0 0 unless defined $bref
206 0 0 if ($$self{'read_bytes'}) { }
0 0 elsif ($line =~ /^\*.*\{(\d+)\}$/) { }
208 0 0 if $$self{'read_bytes'} < 0
218 0 0 if ($ok) { }
0 0 elsif (defined $ok) { }
227 0 0 if $$self{'command_process'}
236 0 0 $value ? :
244 0 0 if $$self{'current_command'}
278 0 0 unless $mbox
284 0 0 if ($$self{'use_select_cache'} and time - $$self{'BOXES'}{$mbox}{'proc_time'} <= $$self{'select_cache_ttl'})
296 0 0 if ($last_sub) { }
304 0 0 if ($_[0] =~ /^\*\s+(\d+)\s+EXISTS/i) { }
0 0 elsif ($_[0] =~ /^\*\s+FLAGS\s+\((.*?)\)/i) { }
0 0 elsif ($_[0] =~ /^\*\s+(\d+)\s+RECENT/i) { }
0 0 elsif ($_[0] =~ /^\*\s+OK\s+\[(.*?)\s+(.*?)\]/i) { }
312 0 0 if ($value =~ /\((.*?)\)/) { }
331 0 0 if ($_[0] =~ /\* SEARCH (.*)$/)
348 0 0 if (%flags) { }
353 0 0 if (/\bFLAGS \((.*?)\)/)
356 0 0 if (/\bINTERNALDATE "(\d\d-[a-zA-Z]{3}-\d{4} \d\d:\d\d:\d\d [\+\-]\d{4})"/)
374 0 0 if (%flags) { }
378 0 0 if (/\bFLAGS (\(.*?\))/)
381 0 0 if (/\bINTERNALDATE "(\d\d-[a-zA-Z]{3}-\d{4} \d\d:\d\d:\d\d [\+\-]\d{4})"/)
449 0 0 if (not $hq) { }
478 0 0 if (defined $box)
490 0 0 if ($mode eq 'listcheck') { }
0 0 elsif ($mode eq 'listextra') { }
491 0 0 if ($line =~ /^\*\s+(LIST|LSUB).*\s+(\".*?\")\s*$/i or $line =~ /^\*\s+(LIST|LSUB).*\s+(\S+)\s*$/i) { }
0 0 elsif ($line =~ /^\*\s+(LIST|LSUB).*\s+\{\d+\}\s*$/i) { }
548 0 0 unless $v->isa('Net::IMAP::Simple::NB')
550 0 0 unless (defined $max_age{$ref})
554 0 0 if (my $t = $max_connect{$ref})
555 0 0 if ($$v{'create_time'} < $now - $t)
560 0 0 if (my $t = $max_age{$ref})
561 0 0 if ($$v{'alive_time'} < $now - $t)