Branch Coverage

blib/lib/Game/Cribbage/Board.pm
Criterion Covered Total %
branch 12 26 46.1


line true false branch
34 1 1 unless ($exists)
46 3 3 if ($_->name =~ /^$player{'name'}$/)
64 34 0 unless $self->deck
65 34 0 unless $self->rounds
66 0 34 $args{'id'} ? :
34 0 if not $self->rounds->current_round or $self->rounds->current_round->complete
81 0 0 if ($self->deck->card_exists($card))
89 0 0 if ($round->card_exists($crib, $card))
105 1 0 if ($self->deck->card_exists($card))
114 0 0 if ($round->card_exists($player, $card))
340 0 1 ref $player ? :
346 0 35 ref $player ? :
348 35 0 if ($self->rounds->current_round->current_hands->play)