Condition Coverage

blib/lib/Games/Roguelike/Caves.pm
Criterion Covered Total %
condition 21 25 84.0


and 3 conditions

line !l l&&!r l&&r condition
24 0 0 1 $w and $h
41 240 588 11172 $x && $y

or 2 conditions

line l !l condition
25 0 1 $iterations ||= 12
26 0 1 $percentWalls ||= 0.45

or 3 conditions

line l !l&&r !l&&!r condition
41 828 228 10944 not $x && $y or $x == $w - 1
1056 576 10368 not $x && $y or $x == $w - 1 or $y == $h - 1
105 16 18 287 $$terrain[$y - 1][$x - 1] eq $floor or $$terrain[$y - 1][$x + 1] eq $floor
34 16 271 $$terrain[$y - 1][$x - 1] eq $floor or $$terrain[$y - 1][$x + 1] eq $floor or $$terrain[$y + 1][$x - 1] eq $floor
34 23 248 $$terrain[$y - 1][$x - 1] eq $floor or $$terrain[$y - 1][$x + 1] eq $floor or $$terrain[$y + 1][$x - 1] eq $floor or $$terrain[$y + 1][$x + 1] eq $floor