Branch Coverage

blib/lib/Game/Life.pm
Criterion Covered Total %
branch 14 20 70.0


line true false branch
62 3 3 if (ref $$self{'size'}) { }
89 0 6 unless defined $breedlife and ref $breedlife eq 'ARRAY' and defined $keeplife and ref $keeplife eq 'ARRAY'
129 0 0 if $x < 0 or $x >= $$self{'size_x'} or $y < 0 or $y >= $$self{'size_y'}
135 0 0 $$array[$i][$j] > 0 ? :
145 0 6 if $x < 0 or $x >= $$self{'size_x'} or $y < 0 or $y >= $$self{'size_y'}
151 24 210 substr($array[$i], $j, 1) eq $living ? :
173 30 279 $$self{'grid'}[$i][$j] ? :
205 2592 20026 if $i >= 0 and $i < $$self{'size_x'} and $j >= 0 and $j < $$self{'size_y'} and $$self{'grid'}[$i][$j]
209 292 2710 if $$self{'grid'}[$x][$y]
211 292 2710 $$self{'grid'}[$x][$y] ? :