Condition Coverage

blib/lib/Barcode/DataMatrix/Engine.pm
Criterion Covered Total %
condition 67 152 44.0


and 3 conditions

line !l l&&!r l&&r condition
117 30 0 12 stringToType($_) == $i and defined $i
136 0 0 0 $FORMATS[$i][0] == $w and $FORMATS[$i][1] == $h
325 10 0 94 $i > $FORMATS[$k][7] and $k < 30
327 28 18 48 $self->{'currentEncoding'} != E_C40() and $self->{'currentEncoding'} != E_TEXT()
328 46 0 0 $self->{'C49rest'} == 1 and $$ai1[$i - 2] == 254
46 0 0 $self->{'C49rest'} == 1 and $$ai1[$i - 2] == 254 and $FORMATS[$k][7] == $i - 1
360 0 4 2 $self->{'C49rest'} == 0 and $i == $self->{'totaldata'}
4 2 0 $self->{'C49rest'} == 0 and $i == $self->{'totaldata'} and $$ai1[$i - 1] == 254
6 6 0 $self->{'currentEncoding'} == E_C40() || $self->{'currentEncoding'} == E_TEXT() and ($self->{'C49rest'} == 0 and $i == $self->{'totaldata'} and $$ai1[$i - 1] == 254)
394 16 0 0 $self->{'rows'} == 144 and $_ > 7
421 0 494 0 $i >= 48 && $i <= 57
432 308 0 0 $i >= 97 && $i <= 122
443 0 0 308 $i >= 65 && $i <= 90
473 2 0 2 $self->{'currentEncoding'} == E_ASCII() and $iterator < $i
476 0 2 0 $iterator + 1 < $i and isIDigit($ai->[$iterator])
2 0 0 $iterator + 1 < $i and isIDigit($ai->[$iterator]) and isIDigit($$ai[$iterator + 1])
502 0 2 0 not $flag1 and $self->{'currentEncoding'} == E_ASCII()
516 0 2 62 $self->{'currentEncoding'} == E_C40() and $iterator < $i
528 2 0 0 $self->{'currentEncoding'} == E_TEXT() and $iterator < $i
567 2 184 0 $k < $i - 1 and isIDigit($ai->[$k])
186 0 0 $k < $i - 1 and isIDigit($ai->[$k]) and isIDigit($$ai[$k + 1])
577 0 186 0 not $flag1 and defined $as->[$k]
648 308 0 0 defined $as->[$j] and $DEBUG{'EAUTO'}
670 62 0 0 $d + 1 <= $d2 and $d + 1 <= $d3
62 0 0 $d + 1 <= $d2 and $d + 1 <= $d3 and $d + 1 <= $d4
672 0 62 0 $d4 + 1 < $d3 and $d4 + 1 < $d2
673 62 0 0 $d3 + 1 < $d and $d3 + 1 < $d2
62 0 0 $d3 + 1 < $d and $d3 + 1 < $d2 and $d3 + 1 < $d4
674 2 0 60 $d2 + 1 < $d and $d2 + 1 < $d3
2 0 60 $d2 + 1 < $d and $d2 + 1 < $d3 and $d2 + 1 < $d4
682 4 0 0 $d <= $d2 and $d <= $d3
4 0 0 $d <= $d2 and $d <= $d3 and $d <= $d4
683 4 0 0 $d3 < $d and $d3 < $d2
4 0 0 $d3 < $d and $d3 < $d2 and $d3 < $d4
684 4 0 0 $d4 < $d and $d4 < $d3
4 0 0 $d4 < $d and $d4 < $d3 and $d4 < $d2
708 186 0 0 $l >= 97 and $l <= 122
709 0 0 186 $l >= 65 and $l <= 90
723 372 124 62 $flag2 and $k == 0
804 186 0 0 $flag and $self->SelectEncoding($j1 + 1, $src, E_BASE256()) != E_BASE256()
872 350 12984 742 $k2 > 0 and ($k2 + 1) % $self->{'datacols'} == 0
877 12 318 20 $i2 > 0 and ($i2 + 1) % $self->{'datarows'} == 0

or 2 conditions

line l !l condition
171 0 12 stringToFormat(shift()) || -1

or 3 conditions

line l !l&&r !l&&!r condition
334 0 0 46 $self->{'C49rest'} != 0 or $$ai1[$i - 1] != 254
0 44 2 $self->{'C49rest'} != 0 or $$ai1[$i - 1] != 254 or $FORMATS[$k][7] != $i - 1
360 4 2 6 $self->{'currentEncoding'} == E_C40() || $self->{'currentEncoding'} == E_TEXT()
578 0 0 0 $ai->[$k] == 234 or $ai->[$k] == 237
0 0 0 $ai->[$k] == 234 or $ai->[$k] == 237 or $ai->[$k] == 236
0 0 0 $ai->[$k] == 234 or $ai->[$k] == 237 or $ai->[$k] == 236 or $ai->[$k] == 232
587 0 0 0 $ai->[$k] == 233 or $ai->[$k] == 241
627 0 0 64 shift() || $self->{'currentEncoding'}