Condition Coverage

blib/lib/Mail/Box/Maildir.pm
Criterion Covered Total %
condition 17 77 22.0


and 3 conditions

line !l l&&!r l&&r condition
41 5 2 0 defined $args->{'lock_type'} and $args->{'lock_type'} ne "NONE"
103 0 0 0 -d $dir and opendir DIR, $dir
110 0 0 0 -d $dir and -r _
152 0 0 2 $coerced->create($tmp) and $coerced->create($new)
228 0 0 0 /^([0-9][\w.:,=\-]+)$/ && -f "$dirname/$1"
233 28 0 303 /^([0-9][\w.:,=\-]+)$/ && -f "$dirname/$1"
244 0 303 0 /^(\d+)/ and $unified{0 x (10 - length($1)) . $_} = $_
332 5 0 0 not @messages and $self->{'MB_remove_empty'}
380 0 0 1 $coerced->create($tmp) and $coerced->create($new)

or 2 conditions

line l !l condition
91 0 0 $args{'folder'} || '='
96 0 0 $args{'skip_empty'} ||= 0
97 0 0 $args{'check'} ||= 0
361 0 1 $args{'message_type'} || 'Mail::Box::Maildir::Message'

or 3 conditions

line l !l&&r !l&&!r condition
41 0 0 7 exists $args->{'locker'} or defined $args->{'lock_type'} and $args->{'lock_type'} ne "NONE"
44 1 6 0 $args->{'folderdir'} ||= $default_folder_dir
56 0 0 0 ref $thingy || $thingy
57 0 0 0 $args{'folderdir'} || $default_folder_dir
74 2 3 0 $args{'folderdir'} || $default_folder_dir
92 0 0 0 $args{'folderdir'} || $default_folder_dir
145 2 0 0 $message->timestamp || time
166 0 0 0 -d $dir or mkdir $dir
170 0 0 0 -d $tmp or mkdir $tmp
174 0 0 0 -d $new or mkdir $new
178 0 0 0 -d $cur or mkdir $cur
308 5 0 0 -d $tmpdir or mkdir $tmpdir
358 1 0 0 -d $tmpdir or mkdir $tmpdir
373 0 0 0 $message->timestamp || time