Branch Coverage

blib/lib/Games/RolePlay/MapGen/Generator/SparseAndLoops.pm
Criterion Covered Total %
branch 21 24 87.5


line true false branch
12 34822 104878 if $_[0]{'od'}{$_}
24 33 23 if (&roll(1, 100) <= $$opts{'remove_deadend_percent'})
31 202 16 if (my $nex = $$tile{'nb'}{$dir}) { }
35 33 169 if ($$nex{'type'}) { }
44 16 153 if (&roll(1, 100) > $$opts{'same_way_percent'})
57 0 16 unless $dir
76 554 595 $$tile{'od'}{'e'} ? :
565 1149 $$tile{'od'}{'s'} ? :
608 1714 $$tile{'od'}{'n'} ? :
81 0 2322 if exists $$opts{'t_cb'}
86 0 2322 unless defined $nex
91 63 7 if --$sparseness > 0