Condition Coverage

blib/lib/Mail/Box/Manager.pm
Criterion Covered Total %
condition 57 144 39.5


and 3 conditions

line !l l&&!r l&&r condition
147 40 0 0 $name =~ /^(\w+)\:/ and grep(($_ eq $1), $self->folderTypes)
189 0 0 40 defined $name and length $name
197 26 14 0 $args{'create'} and not $args{'access'} =~ /w|a/
326 8 0 5 defined $_ && $_->closeAllFolders
354 3 3 6 @_ and builtin::blessed($_[0])
369 3 0 0 $msg->isa("Mail::Box::Message") and $msg->folder
399 3 0 0 not $found and $type
430 41 1 42 @_ and builtin::blessed($_[0])
478 1 2 1 @_ and ref $_[0]
3 0 1 @_ and ref $_[0] and $_[0]->isa("Mail::Box")

or 2 conditions

line l !l condition
70 1 12 $args->{'default_folder_type'} || 'mbox'
144 19 21 $args{'authentication'} ||= "AUTO"
145 0 0 $ENV{'MAIL'} || ''
166 0 0 $args{'server_name'} ||= "localhost"
167 0 0 $args{'server_port'} ||= 110
172 0 0 $args{'server_name'} ||= "localhost"
173 0 0 $args{'server_port'} ||= 995
178 0 0 $args{'server_name'} ||= "localhost"
179 0 0 $args{'server_port'} ||= 143
184 0 0 $args{'server_name'} ||= "localhost"
185 0 0 $args{'server_port'} ||= 993
195 35 5 $args{'access'} ||= "r"
543 5 10 $password ||= ""
550 7 8 $hostname ||= "localhost"
551 12 3 $path ||= "="

or 3 conditions

line l !l&&r !l&&!r condition
125 3 0 2 $def->[0] eq $name or $def->[1] eq $name
145 8 32 0 $name //= defined $args{'folder'} ? $args{'folder'} : $ENV{'MAIL'} || ''
163 0 0 26 $type eq "pop3" or $type eq "pop"
0 0 26 $type eq "pop3s" or $type eq "pops"
0 0 26 $type eq "imap4" or $type eq "imap"
0 0 26 $type eq "imap4s" or $type eq "imaps"
165 0 0 0 $ENV{'USER'} || $ENV{'LOGIN'}
0 0 0 $args{'username'} ||= $ENV{'USER'} || $ENV{'LOGIN'}
171 0 0 0 $ENV{'USER'} || $ENV{'LOGIN'}
0 0 0 $args{'username'} ||= $ENV{'USER'} || $ENV{'LOGIN'}
177 0 0 0 $ENV{'USER'} || $ENV{'LOGIN'}
0 0 0 $args{'username'} ||= $ENV{'USER'} || $ENV{'LOGIN'}
183 0 0 0 $ENV{'USER'} || $ENV{'LOGIN'}
0 0 0 $args{'username'} ||= $ENV{'USER'} || $ENV{'LOGIN'}
193 26 14 0 $args{'folderdir'} ||= $self->{'MBM_folderdirs'}[0]
217 17 9 13 $type eq $abbrev or $type eq $class
251 1 0 0 $type eq $abbrev or $type eq $class
351 6 0 0 not builtin::blessed($_[0]) or $_[0]->isa("Mail::Box")
357 6 0 0 $folder ||= $options{'folder'}
360 3 3 0 $self->isOpenFolder($folder) || $folder
402 0 0 0 $type eq $name or $type eq $class
427 0 42 0 not builtin::blessed($_[0]) or $_[0]->isa("Mail::Box")
439 42 0 0 $folder ||= $args{'folder'}
443 0 0 0 $self->isOpenFolder($folder) || $folder
482 0 3 0 $args{'threader_type'} || $base
484 2 0 1 delete $args{'folder'} || delete $args{'folders'}
542 7 0 0 $ENV{'USER'} || $ENV{'LOGNAME'}
8 7 0 $username ||= $ENV{'USER'} || $ENV{'LOGNAME'}