Condition Coverage

blib/lib/File/FormatIdentification/Pronom.pm
Criterion Covered Total %
condition 36 54 66.6


and 3 conditions

line !l l&&!r l&&r condition
54 10926 3627 3900 scalar @rx_groups > 0 and $rx_groups[0]{'position'} == $rx->{'position'}
129 0 0 4983 defined $minoffset and length $minoffset > 0
132 1305 0 3678 defined $maxoffset and length $maxoffset > 0
150 0 0 4983 defined $minoffset and length $minoffset > 0
182 0 1305 4788 defined $maxstr and $maxstr > 0
1305 4761 27 defined $maxstr and $maxstr > 0 and $minstr > $maxstr
216 108 0 26712 defined $minoffset and length $minoffset > 0
108 1305 25407 defined $minoffset and length $minoffset > 0 and defined $maxoffset
1305 0 25407 defined $minoffset and length $minoffset > 0 and defined $maxoffset and length $maxoffset > 0
1305 3678 21729 defined $minoffset and length $minoffset > 0 and defined $maxoffset and length $maxoffset > 0 and $minoffset == $maxoffset
4983 108 0 !defined($minoffset) || length $minoffset == 0 and !defined($maxoffset) || length $maxoffset == 0

or 3 conditions

line l !l&&r !l&&!r condition
54 3900 0 14553 scalar @rx_groups > 0 and $rx_groups[0]{'position'} == $rx->{'position'} or $pos_diff > 1
193 1305 0 4788 not defined $maxoffset or length $maxoffset == 0
196 0 0 6093 not defined $minoffset or length $minoffset == 0
216 108 0 4983 !defined($minoffset) || length $minoffset == 0
108 0 0 !defined($maxoffset) || length $maxoffset == 0
301 471 0 7686 not defined $direction or length $direction == 0
339 276 0 6852 not defined $reference or 0 == length $reference