Condition Coverage

blib/lib/Game/TextMapper.pm
Criterion Covered Total %
condition 14 93 15.0


and 3 conditions

line !l l&&!r l&&r condition
320 0 0 0 $it->x <= $maxx and $it->x >= $minx
0 0 0 $it->x <= $maxx and $it->x >= $minx and $it->y <= $maxy
0 0 0 $it->x <= $maxx and $it->x >= $minx and $it->y <= $maxy and $it->y >= $miny
326 0 0 0 $_->x <= $maxx and $_->x >= $minx
0 0 0 $_->x <= $maxx and $_->x >= $minx and $_->y <= $maxy
349 0 0 0 not ref $a || ref $b and $a cmp $b
0 0 0 ref $Game::TextMapper::a->[0] eq "Game::TextMapper::Point" and $Game::TextMapper::a->[0]->cmp($Game::TextMapper::b->[0])
0 0 0 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])

or 2 conditions

line l !l condition
185 1 1 $c->param("type") // "hex"
404 1 1 $c->param("type") // "hex"
457 0 0 $c->param("type") // "hex"
496 0 1 $c->param("pillars") // 1
497 0 1 $c->param("rooms") // 5
498 0 1 $c->param("caves") // 0

or 3 conditions

line l !l&&r !l&&!r condition
167 0 0 2 shift() // $c->param("step")
169 0 2 0 $c->param('seed') || int rand 1000000000
292 0 0 0 not defined $minx or $x < $minx
293 0 0 0 not defined $miny or $y < $miny
294 0 0 0 not defined $maxx or $x > $maxx
295 0 0 0 not defined $maxy or $y > $maxy
349 0 0 0 ref $a || ref $b
0 0 0 ref $b cmp ref $a or not ref $a || ref $b and $a cmp $b
0 0 0 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]
0 0 0 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])
0 0 0 $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])
0 0 0 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])
393 0 0 2 shift() // $c->param("step")
395 0 2 0 $c->param('seed') || int rand 1000000000
443 0 0 0 shift() // $c->param("step")
445 0 0 0 $c->param('seed') || int rand 1000000000
495 0 1 0 $c->param('seed') || int rand 1000000000
530 0 1 0 $c->param('seed') || int rand 1000000000
563 0 1 0 $c->param('seed') || int rand 1000000000