Branch Coverage

blib/lib/Games/Go/Image2SGF.pm
Criterion Covered Total %
branch 0 34 0.0


line true false branch
121 0 0 unless (defined $$self{$_})
138 0 0 unless $img->open('file', $$self{'image'})
148 0 0 unless $$self{'img'} = $$self{'img'}->to_paletted('make_colors', 'none', 'colors', $$self{'mycolors'}, 'max_colors', 3)
185 0 0 if ($m_top == $m_bottom)
188 0 0 if ($m_left == $m_right)
233 0 0 if ($left_fg_x < $right_fg_x) { }
253 0 0 if ($top_fg_x < $bottom_fg_x) { }
297 0 0 if (($x_vertex - $k) ** 2 + ($y_vertex - $l) ** 2 <= $radius ** 2)
301 0 0 if $gp == undef
302 0 0 if (_color_cmp($gp, $black) == 1)
303 0 0 if (_color_cmp($gp, $board) == 1)
304 0 0 if (_color_cmp($gp, $white) == 1)
316 0 0 if ($whitecount > $blackcount and $whitecount > $boardcount) { }
0 0 elsif ($blackcount > $boardcount) { }
325 0 0 if ($stone == 1 or $stone == 2)
357 0 0 if ($stone == 2) { }
0 0 elsif ($stone == 1) { }