Condition Coverage

blib/lib/Business/ISMN.pm
Criterion Covered Total %
condition 8 18 44.4


and 3 conditions

line !l l&&!r l&&r condition
140 0 0 1 defined $ismn and length $ismn == 10
169 397 61 1320 defined $tuple->[2] and $code > $tuple->[2]
171 0 397 60 $code >= $tuple->[1] and $code <= $tuple->[2]
218 0 0 0 defined $ismn and is_valid_checksum($ismn) eq GOOD_ISMN()
243 1 0 0 is_valid_checksum($self->{'ismn'} eq GOOD_ISMN()) and defined $self->{'publisher_code'}

or 3 conditions

line l !l&&r !l&&!r condition
128 0 0 3 $position > 9 or $position < 1