Condition Coverage

blib/lib/Console/Blackjack.pm
Criterion Covered Total %
condition 0 75 0.0


and 3 conditions

line !l l&&!r l&&r condition
98 0 0 0 $owner == 1 and $i == 1
0 0 0 $owner == 1 and $i == 1 and $hand->{'hide_down_card'}
103 0 0 0 $method eq 1 and $v == 1
0 0 0 $method eq 1 and $v == 1 and $total < 11
107 0 0 0 $method eq 1 and $total > 21
118 0 0 0 is_ace(@$cards[0]) and is_ten(@$cards[1])
120 0 0 0 is_ace(@$cards[1]) && is_ten(@$cards[0])
204 0 0 0 $game->{'num_decks'} == @$spec[1] and $used > @$spec[0]
235 0 0 0 $i == 1 and $dealer_hand->{'hide_down_card'}
268 0 0 0 not $player_hand->{'played'} and $index == $game->{'current_player_hand'}
335 0 0 0 $soft_count < 18 and $hard_count < 17
391 0 0 0 not $player_hand->{'payed'} and player_is_busted($player_hand)
558 0 0 0 @$cards == 2 && @$cards[0]->{'value'} == @$cards[1]->{'value'}
747 0 0 0 dealer_upcard_is_ace(\%dealer_hand) and not is_blackjack(+(\%player_hand)->{'cards'})

or 3 conditions

line l !l&&r !l&&!r condition
128 0 0 0 $player_hand->{'played'} || $player_hand->{'stood'} || 21 == hand_value($player_hand, 0, 0) || is_blackjack($player_hand->{'cards'}) || player_is_busted($player_hand)
134 0 0 0 $player_hand->{'stood'} || player_is_busted($player_hand) || is_blackjack($player_hand->{'cards'})
314 0 0 0 player_is_busted($player_hand) or is_blackjack($player_hand->{'cards'})
381 0 0 0 $player_hand->{'played'} or $player_hand->{'stood'}
0 0 0 $player_hand->{'played'} or $player_hand->{'stood'} or is_blackjack($player_hand->{'cards'})
0 0 0 $player_hand->{'played'} or $player_hand->{'stood'} or is_blackjack($player_hand->{'cards'}) or player_is_busted($player_hand)
0 0 0 $player_hand->{'played'} or $player_hand->{'stood'} or is_blackjack($player_hand->{'cards'}) or player_is_busted($player_hand) or 21 == hand_value($player_hand, 1, 0)
0 0 0 $player_hand->{'played'} or $player_hand->{'stood'} or is_blackjack($player_hand->{'cards'}) or player_is_busted($player_hand) or 21 == hand_value($player_hand, 1, 0) or 21 == hand_value($player_hand, 0, 0)
428 0 0 0 $dhb or $phv > $dhv
554 0 0 0 $player_hand->{'stood'} or scalar @{$game->{'player_hands'};} >= 7
569 0 0 0 $player_hand->{'stood'} || scalar @{$player_hand->{'cards'};} != 2 || player_is_busted($player_hand) || is_blackjack($player_hand->{'cards'})