Branch Coverage

blib/lib/Imager/LineTrace/Algorithm.pm
Criterion Covered Total %
branch 36 38 94.7


line true false branch
9 16 0 exists $$opt{'ignore'} ? :
10 0 16 exists $$opt{'limit'} ? :
24 19 95 if ($val != $ignore)
33 19 35 if 0 <= $y
37 16 19 if ($y < 0)
48 9 10 if ($x0 < $w - 1 and $y0 < $h - 1)
49 2 7 if ($$pixels_ref[$y][$x + 1] == $trace_value and $$pixels_ref[$y + 1][$x] == $trace_value)
55 2 17 if ($is_close) { }
69 10 23 if ($x + 1 < $w and $$pixels_ref[$y][$x + 1] == $trace_value)
73 10 10 if $w <= $x + 1
80 7 26 if ($y + 1 < $h and $$pixels_ref[$y + 1][$x] == $trace_value)
84 7 7 if $h <= $y + 1
91 2 31 if (0 < $x - 1 and $$pixels_ref[$y][$x - 1] == $trace_value)
95 2 2 if $x - 1 < 0
102 2 31 if (0 < $y - 1 and $$pixels_ref[$y - 1][$x] == $trace_value)
106 2 2 if $y - 1 < 0
113 20 13 if ($number_of_points == scalar @points)
114 2 18 if ($is_close) { }
116 1 1 if ($$p1[0] == $$p2[0] and $$p1[1] == $$p2[1]) { }