Branch Coverage

blib/lib/Mail/Builder/Image.pm
Criterion Covered Total %
branch 9 18 50.0


line true false branch
55 2 1 if (defined $filename and $filename->basename =~ /\.(PNG|JPE?G|GIF)$/i) { }
58 0 2 if $filetype eq 'image/jpg'
65 0 3 unless (defined $filetype)
78 0 1 if (defined $filename)
84 1 0 unless (defined $id and not $id =~ /^\s*$/)
95 0 2 if $self->has_cache
102 2 0 if (&blessed($file)) { }
103 2 0 if ($file->isa('IO::File')) { }
0 0 elsif ($file->isa('Path::Class::File')) { }