Condition Coverage

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


and 2 conditions

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

and 3 conditions

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

or 3 conditions

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