Branch Coverage

blib/lib/Mail/POP3/Folder/mbox.pm
Criterion Covered Total %
branch 23 42 54.7


line true false branch
48 0 6 if $oldmessageno <= 0
58 0 2 unless (-s $self->_spoolfile)
71 6 68 if ($seen_message_end and /$self->{'MESSAGE_START'}/) { }
84 8 60 if (/$self->{'MESSAGE_END'}/)
87 6 62 if (/^Message-Id:\s*(.+)/ and not $messageuidl)
108 0 2 if -f $lockfile
110 0 2 unless $self->{'LOCK_FH'} = 'IO::File'->new(">$lockfile")
113 0 2 unless (flock $self->{'LOCK_FH'}, 6)
132 0 2 unless $self->{'LOCK_FH'}
156 0 25 unless $self->{'LOCK_FH'}
164 0 174 if (++$self->{'LINE'} == 1000)
197 2 2 if (defined $message) { }
221 0 0 if $body_lines > $rows
228 0 0 if $line =~ /^\s*$/
243 0 2 if ($spool_mtime != $self->{'MAILBOX_TIMESTAMP_OPEN'})
247 0 2 unless open MDROP, '>' . $spoolfile
249 4 2 unless ($self->is_deleted($cnt))
260 0 0 unless $mbox_destined
261 0 0 if $mbox_destined
276 10 2 unless ($self->is_deleted($_))
299 7 0 if $msg > 0 and $msg <= $self->{'MESSAGECNT'}