File Coverage

blib/lib/Email/FolderType/Maildir.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition 3 3 100.0
subroutine 3 3 100.0
pod 0 1 0.0
total 14 15 93.3


line stmt bran cond sub pod time code
1 7     7   5948 use strict;
  7         13  
  7         235  
2 7     7   34 use warnings;
  7         15  
  7         791  
3             package Email::FolderType::Maildir;
4             {
5             $Email::FolderType::Maildir::VERSION = '0.814';
6             }
7             # ABSTRACT: class to help Email::FolderType recognise maildirs
8              
9             sub match {
10 7     7 0 15 my $folder = shift;
11 7   100     98 return ($folder =~ m{[^/]/$} || -d "$folder/cur");
12             }
13              
14             1;
15              
16             __END__