Condition Coverage

blib/lib/MIME/Detect/Type.pm
Criterion Covered Total %
condition 20 33 60.6


and 3 conditions

line !l l&&!r l&&r condition
160 0 243 2006 ref $rule eq 'HASH' and $rule->{'type'} eq 'string'
0 180 63 ref $rule eq 'HASH' and $rule->{'type'} eq 'little32'
0 156 24 ref $rule eq 'HASH' and $rule->{'type'} eq 'little16'
0 60 96 ref $rule eq 'HASH' and $rule->{'type'} eq 'big32'
0 33 27 ref $rule eq 'HASH' and $rule->{'type'} eq 'big16'
0 21 12 ref $rule eq 'HASH' and $rule->{'type'} eq 'host16'
0 12 9 ref $rule eq 'HASH' and $rule->{'type'} eq 'host32'
0 0 12 ref $rule eq 'HASH' and $rule->{'type'} eq 'byte'
257 254 0 0 $matches && $self->matches($buffer, $rule->{'and'})

or 3 conditions

line l !l&&r !l&&!r condition
251 0 2 225 $matches || 1 + index(substr($buf, 0, $2 - $1 + length($value)), $value)
255 0 6 1266 $matches || substr($buf, 0, length $value) eq $value