Condition Coverage

blib/lib/PDF/API2/Resource/XObject/Form/BarCode/code128.pm
Criterion Covered Total %
condition 6 11 54.5


and 2 conditions

line l !l condition
166 0 16 $character =~ /\d/ and scalar @characters

and 3 conditions

line !l l&&!r l&&r condition
137 1 0 0 $character =~ /[\xf2-\xf4]/ and $code eq "c"

or 3 conditions

line l !l&&r !l&&!r condition
167 0 1 15 $character =~ /^[^\d]*$/ or $character =~ /^\d[^\d]*$/
194 4 1 0 $code ||= $string =~ /^\d{2,}$/ ? "c" : "b"