Branch Coverage

blib/lib/Brick/Files.pm
Criterion Covered Total %
branch 0 28 0.0


line true false branch
53 0 0 if ($format eq 'application/msword') { }
0 0 elsif ($format =~ m[x-system/x-error]) { }
57 0 0 $uploaded_ext =~ /^xl[st]$/ ? :
79 0 0 $t ? :
96 0 0 unless (UNIVERSAL::isa($setup->{'mime_types'}, ref []))
113 0 0 unless -e $$input{$setup->{'file_field'}}
121 0 0 unless $mime_type
126 0 0 if lc $mime_type eq lc $expected_type
165 0 0 unless (UNIVERSAL::isa($setup->{'extensions'}, ref []))
184 0 0 unless exists $extensions{$extension}
223 0 0 unless -x $clamscan
231 0 0 unless $setup->{'filename'} =~ /^[\w.]+\z/
238 0 0 unless -f $setup->{'filename'}
250 0 0 if $results