Branch Coverage

blib/lib/QRCode/Encoder/Matrix.pm
Criterion Covered Total %
branch 46 48 95.8


line true false branch
43 0 0 $_ & 1 ? :
148 2 7 if $matrix->[$y][$x] < 52 or $matrix->[$y][$x + 4] < 52 or $$matrix[$y + 4][$x] < 52
174 297 2050 unless (@queue)
175 292 5 if ($i < $n_expanded) { }
200 1675 1675 if ($x % 2 == $left) { }
207 27 3323 if ($d < 0 and $y < 0) { }
23 4987 elsif ($d > 0 and $y >= $side_size) { }
217 4 3346 if ($x == 6)
221 2343 1007 if $$matrix[$y + 4][$x + 4] > 55
223 1154 1189 $bit ? :
237 14496 13760 $$matrix[$i + 4][$_] & 1 ? :
242 14496 13760 $matrix->[$_][$i + 4] & 1 ? :
258 1309 483 if @contributions
282 53399 52585 if $$matrix[$i + $oi + 4][$j + $oj + 4] & 1
284 3095 23401 if $count == 0 or $count == 4
291 14496 30144 $_ & 1 ? :
317 8680 35960 if ($matrix->[$i][$j] >= 54 and &$mask($i - 4, $j - 4)) { }
336 8 24 if not $best_matrix or $penalty < $best_penalty
352 128 128 $format & 1 ? :
356 96 128 $format & 1 ? :
363 96 96 $format & 1 ? :
367 32 32 $format & 1 ? :
371 16 16 $format & 1 ? :
374 80 112 $format & 1 ? :