Branch Coverage

blib/lib/Mail/Builder/Attachment.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
58 4 2 if (defined $filename and lc($filename->basename) =~ /\.([0-9a-z]{1,4})$/)
61 4 0 if defined $mimetype
65 2 4 unless (defined $filetype)
81 0 1 if (defined $filename)
85 1 0 unless (defined $name and not $name =~ /^\s*$/)
96 0 3 if $self->has_cache
103 3 0 if (&blessed($file)) { }
104 2 1 if ($file->isa('IO::File')) { }
1 0 elsif ($file->isa('Path::Class::File')) { }