Condition Coverage

blib/lib/File/MimeInfo/Magic.pm
Criterion Covered Total %
condition 7 23 30.4


and 2 conditions

line l !l condition
162 0 0 "$file line $line skipped\n" && (next)
172 0 0 "$file line $line skipped\n" && (next)

and 3 conditions

line !l l&&!r l&&r condition
36 0 0 8 -s $file and -r _
113 0 0 0 $DEBUG and not $lev

or 2 conditions

line l !l condition
174 5 26 $2 || 1
2 29 $3 || 1

or 3 conditions

line l !l&&r !l&&!r condition
35 0 0 0 magic($file) || default($file)
56 0 8 0 ref $file or -s $file
147 1 0 0 $file || croak("Could not open file '${file}' for reading")