Condition Coverage

blib/lib/Game/Cribbage.pm
Criterion Covered Total %
condition 9 33 27.2


and 3 conditions

line !l l&&!r l&&r condition
162 0 0 0 $card->can("go") and $card->go
201 0 0 0 scalar @can and ref $can[0]
210 0 0 0 $card->can("go") and $card->go
426 3 2 1 not $all and $_->used
467 0 0 0 !$it && $_ < 10
565 0 1 1 $self->board and $self->board->current_play_score

or 2 conditions

line l !l condition
456 0 0 $vertical || 10
618 217 42 $color ||= 90
619 10 249 $back ||= 102

or 3 conditions

line l !l&&r !l&&!r condition
222 0 0 0 not $number =~ /^\d+$/ or $number > scalar @{$hands->player2->cards;}
247 0 0 0 not $number =~ /^\d+$/ or $number > 52
354 0 0 0 not $number =~ /^\d+$/ or $number > 52