Branch Coverage

blib/lib/Game/TextMapper.pm
Criterion Covered Total %
branch 4 40 10.0


line true false branch
175 1 1 if ($type eq 'hex') { }
340 0 0 if (($x, $y, $text) = /^(\d\d)(\d\d)\s+(.*)/u) { }
0 0 elsif (($points, $text) = /^(-?\d\d-?\d\d(?:--?\d\d-?\d\d)+)\s+(.*)/u) { }
341 0 0 if not defined $minx or $x < $minx
342 0 0 if not defined $miny or $y < $miny
343 0 0 if not defined $maxx or $x > $maxx
344 0 0 if not defined $maxy or $y > $maxy
346 0 0 if $empty
366 0 0 if (ref $_) { }
368 0 0 if (ref $it eq 'Game::TextMapper::Point') { }
369 0 0 if ($it->x <= $maxx and $it->x >= $minx and $it->y <= $maxy and $it->y >= $miny)
375 0 0 if $_->x <= $maxx and $_->x >= $minx and $_->y <= $maxy
378 0 0 unless $outside
386 0 0 if ($empty)
390 0 0 unless ($seen{$point->coordinates})
398 0 0 unless ref $b cmp ref $a or not ref $a || ref $b and $a cmp $b or ref $Game::TextMapper::b->[0] cmp ref $Game::TextMapper::a->[0] or ref $Game::TextMapper::a->[0] eq "Game::TextMapper::Point" and $Game::TextMapper::a->[0]->cmp($Game::TextMapper::b->[0]) or ref $Game::TextMapper::a->[0] eq "Game::TextMapper::Line" and $Game::TextMapper::a->[0]->points->[0]->cmp($Game::TextMapper::b->[0]->points->[0]) || $Game::TextMapper::a->[0]->points->[1]->cmp($Game::TextMapper::b->[0]->points->[1])
415 0 0 if (ref $_) { }
417 0 0 if (ref $it eq 'Game::TextMapper::Point') { }
454 1 1 if ($type eq 'hex') { }
507 0 0 if ($type eq 'hex') { }