Branch Coverage

blib/lib/NetHack/FOV.pm
Criterion Covered Total %
branch 38 46 82.6


line true false branch
32 4105 2763 $flip ? :
33 4105 2763 $flip ? :
39 8443 19182 if ($fmin >= 0)
41 4095 23530 unless ($self->_clear($px, $py))
54 2165 2212 $hs == 1 ? :
65 3845 2617 if ($left_clear)
67 0 6462 if ($right_edge >= $rail)
73 2617 3845 unless ($left_clear)
74 1612 1005 if ($right_edge > $right_mark)
75 279 1333 $self->_clear($hs * $right_mark, $row - ($row <=> 0)) ? :
87 1557 2288 if ($left != 0)
89 999 3236 if $self->_Q_path($hs * $left, $row)
92 0 1557 if ($left >= $rail)
94 0 0 if ($left == $rail)
101 800 757 if ($left >= $right_edge)
108 1064 1981 if ($right_mark < $right_edge) { }
110 859 1774 unless $self->_Q_path($hs * $right, $row)
116 2969 76 if ($left <= $right)
117 66 241 if ($left == $right and $left == 0 and not $self->_clear($hs, $row) and $left != $rail)
122 0 2969 if ($right > $rail)
149 0 352 if $xr + $$self{'x'} == 80
150 0 352 if $xl + $$self{'x'} < 0
170 26899 0 unless $x < 0 or $y < 0