Branch Coverage

blib/lib/Mail/Cache.pm
Criterion Covered Total %
branch 0 120 0.0


line true false branch
61 0 0 unless (-e xdg_cache_home())
62 0 0 unless (mkdir xdg_cache_home())
69 0 0 unless (-e $$self{'home'})
70 0 0 unless (mkdir $$self{'home'})
142 0 0 unless (-e $dir)
148 0 0 unless (-e $dir . '.Date')
171 0 0 if (not defined $linesplit[1]) { }
204 0 0 unless (-e $dir)
210 0 0 unless (-e $dir . '.size')
233 0 0 if (not defined $linesplit[1]) { }
266 0 0 unless (-e $dir)
272 0 0 unless (-e $dir . '.From')
295 0 0 if (not defined $linesplit[1]) { }
328 0 0 unless (-e $dir)
334 0 0 unless (-e $dir . '.Subject')
357 0 0 if (not defined $linesplit[1]) { }
403 0 0 if ($$self{'error'})
409 0 0 if ($$self{'error'})
415 0 0 if ($$self{'error'})
421 0 0 if ($$self{'error'})
448 0 0 unless (-e $dir)
474 0 0 if (defined $_[1])
481 0 0 unless (defined $uids[0])
515 0 0 if ($uid =~ /^\./)
519 0 0 if ($uid =~ m[/])
523 0 0 if ($uid =~ /\\/)
528 0 0 if ($process)
546 0 0 if (-f $dir . '/' . $uid)
593 0 0 unless (defined $account)
596 0 0 if ($account eq '')
601 0 0 if ($account =~ m[/])
610 0 0 unless (-e $dir)
611 0 0 unless (mkdir $dir)
641 0 0 unless (defined $box)
644 0 0 if ($box eq '')
649 0 0 if ($box =~ m[/])
659 0 0 unless (-e $dir)
660 0 0 unless (mkdir $dir)
668 0 0 unless (-e $dir . '/.Date')
673 0 0 unless (-e $dir . '/.From')
678 0 0 unless (-e $dir . '/.Subject')
683 0 0 unless (-e $dir . '/.size')
716 0 0 unless (defined $cache)
719 0 0 if ($cache eq '')
724 0 0 if ($cache =~ m[/])
732 0 0 unless (-e $$self{'home'} . $cache)
733 0 0 unless (mkdir $$self{'home'} . $cache)
768 0 0 unless (defined $type)
771 0 0 if ($type eq '')
779 0 0 if ($type =~ m[/])
788 0 0 unless (-e $dir)
789 0 0 unless (mkdir $dir)
823 0 0 unless (defined $uid)
829 0 0 unless (defined $headers)
835 0 0 unless (defined $size)
843 0 0 if ($uid =~ /^\./)
849 0 0 if ($uid =~ /^\|/)
859 0 0 unless (defined $subject)
864 0 0 unless (defined $from)
869 0 0 unless (defined $date)