Branch Coverage

blib/lib/Games/RolePlay/MapGen/Tools.pm
Criterion Covered Total %
branch 55 82 67.0


line true false branch
26 0 440144 if $_[0] > $#$this
55 11370 480 unless $i == $#$map
56 11370 480 unless $i == 0
57 11370 480 unless $j == $jend
58 11370 480 unless $j == 0
71 1920 45480 unless $n
73 0 45480 unless $$t{'od'}{$d} == $$n{'od'}{$o}
74 0 45480 unless $$n{'nb'}{$o} == $t
88 0 16 if tied $map
104 0 16 if ($@)
112 0 0 unless $@ =~ /global destruction/u
157 0 51 if (@_)
159 0 0 if exists $$h{'name'}
160 0 0 if exists $$h{'type'}
169 30 0 if @_
177 50 0 if @_
196 50 11 if ($loc and $size)
226 1648 0 unless ($points{$xc}{$yc})
234 0 1648 if $xc < $$mloc[0]
235 0 1648 if $yc < $$mloc[1]
236 216 1432 if $xc > $$Mloc[0]
237 242 1406 if $yc > $$Mloc[1]
239 0 1648 if $mapo
244 0 61 unless $i_count > 0
253 61 0 if $nloc > 0
284 1700 0 unless ($points{$xc}{$yc})
326 0 7026 if $ENV{'VERBOSE_TILE_DEATH'}
339 21 32 unless $$this{'locked'}
340 42 11 unless $$this{'stuck'}
341 45 8 unless $$this{'secret'}
342 0 53 unless ref $$this{'open_dir'}
343 53 0 unless $$this{'open'}
388 0 383027 if $rhs < $lhs
391 400 382627 if ($correlation) { }
392 0 400 unless defined $global::last_rand
394 200 200 if ($correlation == 1) { }
200 0 elsif ($correlation == -1) { }
428 5030 95034 if $s eq '-0'
437 1 50 if $str =~ /^\d+$/u
440 9 6 $3 eq '+' ? :
442 1 49 if $str =~ /\D/u