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
371 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
377 0 0 0 $_->x <= $maxx and $_->x >= $minx
0 0 0 $_->x <= $maxx and $_->x >= $minx and $_->y <= $maxy
400 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
175 1 1 $c->param("type") // "hex"
455 1 1 $c->param("type") // "hex"
508 0 0 $c->param("type") // "hex"
547 0 1 $c->param("pillars") // 1
548 0 1 $c->param("rooms") // 5
549 0 1 $c->param("caves") // 0

or 3 conditions

line l !l&&r !l&&!r condition
155 0 0 2 shift() // $c->param("step")
157 0 2 0 $c->param('seed') || int rand 1000000000
343 0 0 0 not defined $minx or $x < $minx
344 0 0 0 not defined $miny or $y < $miny
345 0 0 0 not defined $maxx or $x > $maxx
346 0 0 0 not defined $maxy or $y > $maxy
400 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])
444 0 0 2 shift() // $c->param("step")
446 0 2 0 $c->param('seed') || int rand 1000000000
494 0 0 0 shift() // $c->param("step")
496 0 0 0 $c->param('seed') || int rand 1000000000
546 0 1 0 $c->param('seed') || int rand 1000000000
581 0 1 0 $c->param('seed') || int rand 1000000000
614 0 1 0 $c->param('seed') || int rand 1000000000