Condition Coverage

blib/lib/File/MMagic.pm
Criterion Covered Total %
condition 30 87 34.4


and 3 conditions

line !l l&&!r l&&r condition
535 0 0 0 $^O ne 'MSWin32' and not $File::MMagic::followLinks
0 0 0 $^O ne 'MSWin32' and not $File::MMagic::followLinks and -l _
558 6 0 0 -x $file and -T _
596 0 0 4 defined $desc and $desc ne ''
606 0 2 156 $m == $#{$$self{'magic'};} and not $$self{'MF'}[0]->eof
674 0 0 0 defined $desc and $desc ne ''
683 0 1 129 $m == $#{$$self{'magic'};} and not $$self{'MF'}[0]->eof
727 1 2 0 not defined $mtype and check_binary($data)
743 0 0 0 defined $type and not $type =~ /;/
839 0 0 0 defined $ch and $ch ne "\000"
0 0 0 defined $ch and $ch ne "\000" and $ch ne "\n"
1145 354 0 323 'ARRAY' eq ref $entry and @$entry

or 2 conditions

line l !l condition
856 0 0 $data || ''
1020 0 0 $data || ''
1150 32 28 readMagicEntry($$entry[2], $MF, $depth + 1) || 0

or 3 conditions

line l !l&&r !l&&!r condition
351 0 9 0 ref $proto || $proto
442 0 0 0 @_ || keys %{$$self{'SPECIALS'};}
461 0 0 0 @_ || keys %{$$self{'FILEEXTS'};}
534 0 0 6 not -f _ or -z _
712 1 0 2 not defined $matched_pos or $matched_pos > $tmp
743 0 0 0 defined $type and not $type =~ /;/ or not defined $type
830 140 0 22 $type =~ /^string/ or $type =~ /^regex/
997 97 0 21 $type =~ /^string/ or $type =~ /^regex/
1134 696 201 765 $line =~ /^\#/ or $line =~ /^\s*$/
1150 0 0 60 (readMagicEntry($$entry[2], $MF, $depth + 1) || 0) < $depth or $$MF[0]->eof
1267 291 0 1 exists $File::MMagic::TEMPLATES{$type} or $type =~ /^string/
1 0 0 exists $File::MMagic::TEMPLATES{$type} or $type =~ /^string/ or $type =~ /^regex/
0 0 0 exists $File::MMagic::TEMPLATES{$type} or $type =~ /^string/ or $type =~ /^regex/ or $type =~ m[^search/]
1299 248 0 44 $type =~ /^string/ or $type =~ /^regex/
1362 0 0 32 $operator eq '>' or $operator eq '<'