Branch Coverage

blib/lib/Games/RolePlay/MapGen/GeneratorPlugin/BasicDoors.pm
Criterion Covered Total %
branch 38 44 86.3


line true false branch
41 0 4 unless $max_span > 0
51 1594 1056 if ($$t{'type'})
54 870 5506 unless $n and $$n{'type'}
56 5345 161 unless ($$t{'_bchkt'}{$dir})
59 3804 1541 if ($ttype eq 'room' and $ntype eq 'room')
60 3683 121 if ($$t{'group'}{'name'} eq $$n{'group'}{'name'}) { }
68 1306 356 $$t{'od'}{$dir} ? :
73 0 1662 unless defined $chances
75 56 1606 if ((my $r = roll(1, 10000)) <= (my $c = $$chances{'door'} * 100))
81 3 53 unless @$span <= $max_span
92 51 108 roll(1, 10000) <= $$chances{$_} * 100 ? :
123 0 56 unless $$t{'nb'}{$dir} == $n
124 0 56 unless $$n{'nb'}{$opp} == $t
127 27 29 if $dir eq 'n' or $dir eq 's'
132 0 129 unless $$n{'nb'}{$opp} == $t and $$t{'nb'}{$dir} == $n
133 87 42 if ($$t{'od'}{$ud} == 1 and my $c = $$t{'nb'}{$ud})
134 70 17 if ($$n{'od'}{$ud} == 1 and my $d = $$n{'nb'}{$ud})
135 56 14 if ($$c{'od'}{$dir} == 1)
143 0 129 unless $$n{'nb'}{$opp} == $t and $$t{'nb'}{$dir} == $n
144 57 72 if ($$t{'od'}{$pd} == 1 and my $c = $$t{'nb'}{$pd})
145 38 19 if ($$n{'od'}{$pd} == 1 and my $d = $$n{'nb'}{$pd})
146 23 15 if ($$c{'od'}{$dir} == 1)