Branch Coverage

blib/lib/Game/Cribbage/Play.pm
Criterion Covered Total %
branch 26 28 92.8


line true false branch
33 1 14 if ($total > 31)
61 0 53 if ($total > 31)
86 16 37 if ($score->score)
96 1 0 if ($_->card->match($card))
108 1 7 unless $self->cards->[0]
124 9 58 if ($self->cards->[-1] and $self->cards->[-1]->symbol eq $card->symbol)
125 4 5 if ($self->cards->[-2] and $self->cards->[-2]->symbol eq $card->symbol) { }
126 1 3 if ($self->cards->[-3] and $self->cards->[-3]->symbol eq $card->symbol) { }
147 317 17 unless $n <= $length
152 14 9 if ($first != $new[$i])
157 3 14 if ($match)
173 54 83 if ($set)
182 4 63 if ($total == 15) { }
1 62 elsif ($total == 31) { }