Condition Coverage

blib/lib/Game/Life.pm
Criterion Covered Total %
condition 28 64 43.7


and 3 conditions

line !l l&&!r l&&r condition
89 0 0 6 defined $breedlife and ref $breedlife eq 'ARRAY'
0 0 6 defined $breedlife and ref $breedlife eq 'ARRAY' and defined $keeplife
0 0 6 defined $breedlife and ref $breedlife eq 'ARRAY' and defined $keeplife and ref $keeplife eq 'ARRAY'
133 0 0 0 $i < $array_x and $i + $x < $$self{'size_x'}
134 0 0 0 $j < $array_y and $j + $y < $$self{'size_y'}
149 6 0 35 $i < $array_x and $i + $x < $$self{'size_x'}
150 35 0 234 $j < $array_y and $j + $y < $$self{'size_y'}
205 1626 1626 23766 $i >= 0 and $i < $$self{'size_x'}
3252 1148 22618 $i >= 0 and $i < $$self{'size_x'} and $j >= 0
2774 1148 21470 $i >= 0 and $i < $$self{'size_x'} and $j >= 0 and $j < $$self{'size_y'}
2296 18878 2592 $i >= 0 and $i < $$self{'size_x'} and $j >= 0 and $j < $$self{'size_y'} and $$self{'grid'}[$i][$j]

or 2 conditions

line l !l condition
77 0 6 $breedlife ||= [3]
78 0 6 $keeplife ||= [2, 3]
166 8 0 $filled ||= 'X'
167 8 0 $empty ||= '.'
182 8 0 shift() || 1

or 3 conditions

line l !l&&r !l&&!r condition
61 6 0 0 shift() || $default_size
129 0 0 0 $x < 0 or $x >= $$self{'size_x'}
0 0 0 $x < 0 or $x >= $$self{'size_x'} or $y < 0
0 0 0 $x < 0 or $x >= $$self{'size_x'} or $y < 0 or $y >= $$self{'size_y'}
145 0 0 6 $x < 0 or $x >= $$self{'size_x'}
0 0 6 $x < 0 or $x >= $$self{'size_x'} or $y < 0
0 0 6 $x < 0 or $x >= $$self{'size_x'} or $y < 0 or $y >= $$self{'size_y'}