Condition Coverage

blib/lib/Mail/Box/Manager.pm
Criterion Covered Total %
condition 55 141 39.0


and 3 conditions

line !l l&&!r l&&r condition
139 40 0 0 $name =~ /^(\w+)\:/ and grep(($_ eq $1), $self->folderTypes)
184 0 0 40 defined $name and length $name
194 26 14 0 $args{'create'} and not $args{'access'} =~ /w|a/
330 8 0 5 defined $_ && $_->closeAllFolders
358 3 3 6 @_ and ref $_[0]
376 3 0 0 $_->isa('Mail::Box::Message') and $_->folder
406 3 0 0 not $found and $type
437 41 1 42 @_ and ref $_[0]
485 1 2 1 @_ and ref $_[0]
3 0 1 @_ and ref $_[0] and $_[0]->isa('Mail::Box')

or 2 conditions

line l !l condition
66 1 12 $args->{'default_folder_type'} || 'mbox'
134 19 21 $args{'authentication'} ||= 'AUTO'
136 0 0 $ENV{'MAIL'} || ''
161 0 0 $args{'server_name'} ||= 'localhost'
162 0 0 $args{'server_port'} ||= 110
167 0 0 $args{'server_name'} ||= 'localhost'
168 0 0 $args{'server_port'} ||= 995
173 0 0 $args{'server_name'} ||= 'localhost'
174 0 0 $args{'server_port'} ||= 143
179 0 0 $args{'server_name'} ||= 'localhost'
180 0 0 $args{'server_port'} ||= 993
192 35 5 $args{'access'} ||= 'r'
557 5 10 $password ||= ''
564 7 8 $hostname ||= 'localhost'
566 12 3 $path ||= '='

or 3 conditions

line l !l&&r !l&&!r condition
121 3 0 2 $def->[0] eq $name or $def->[1] eq $name
158 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'
160 0 0 0 $ENV{'USER'} || $ENV{'LOGIN'}
0 0 0 $args{'username'} ||= $ENV{'USER'} || $ENV{'LOGIN'}
166 0 0 0 $ENV{'USER'} || $ENV{'LOGIN'}
0 0 0 $args{'username'} ||= $ENV{'USER'} || $ENV{'LOGIN'}
172 0 0 0 $ENV{'USER'} || $ENV{'LOGIN'}
0 0 0 $args{'username'} ||= $ENV{'USER'} || $ENV{'LOGIN'}
178 0 0 0 $ENV{'USER'} || $ENV{'LOGIN'}
0 0 0 $args{'username'} ||= $ENV{'USER'} || $ENV{'LOGIN'}
190 26 14 0 $args{'folderdir'} ||= $self->{'MBM_folderdirs'}[0]
216 17 9 13 $type eq $abbrev or $type eq $class
251 1 0 0 $type eq $abbrev or $type eq $class
355 6 0 0 not ref $_[0] or $_[0]->isa('Mail::Box')
361 6 0 0 $folder ||= $options{'folder'}
364 3 3 0 $self->isOpenFolder($folder) || $folder
409 0 0 0 $type eq $name or $type eq $class
434 0 42 0 not ref $_[0] or $_[0]->isa('Mail::Box')
446 42 0 0 $folder ||= $args{'folder'}
450 0 0 0 $self->isOpenFolder($folder) || $folder
490 0 3 0 $args{'threader_type'} || $base
492 2 0 1 delete $args{'folder'} || delete $args{'folders'}
556 7 0 0 $ENV{'USER'} || $ENV{'LOGNAME'}
8 7 0 $username ||= $ENV{'USER'} || $ENV{'LOGNAME'}