Branch Coverage

blib/lib/Games/Wumpus/Cave.pm
Criterion Covered Total %
branch 8 34 23.5


line true false branch
66 0 2 if ($main::DEBUG)
69 0 0 if ($room->has_hazard($Games::Wumpus::Cave::WUMPUS))
72 0 0 if ($room->has_hazard($Games::Wumpus::Cave::BAT))
75 0 0 if ($room->has_hazard($Games::Wumpus::Cave::PIT))
126 0 2 if $args{'shuffle_names'}
171 3 1 if $room->near_hazard($Games::Wumpus::Cave::WUMPUS)
172 2 2 if $room->near_hazard($Games::Wumpus::Cave::PIT)
173 1 3 if $room->near_hazard($Games::Wumpus::Cave::BAT)
192 0 0 $self->location->exit_by_name($new) ? :
209 0 0 if ($self->location->has_hazard($Games::Wumpus::Cave::WUMPUS))
213 0 0 if ($self->location->has_hazard($Games::Wumpus::Cave::PIT))
217 0 0 if ($self->location->has_hazard($Games::Wumpus::Cave::BAT))
242 0 0 unless ($e)
251 0 0 if ($cur->has_hazard($Games::Wumpus::Cave::WUMPUS))
252 0 0 if ($cur == $self->location)
266 0 0 if (rand 1 < $Games::Wumpus::Cave::WUMPUS_MOVES)
273 0 0 if ($main::DEBUG)