Branch Coverage

blib/lib/Games/Blackjack.pm
Criterion Covered Total %
branch 14 32 43.7


line true false branch
73 0 3 unless exists $$self{'shoe'}
94 26 24 if ($$_[1] =~ /\d/) { }
24 0 elsif ($$_[1] eq 'A') { }
112 4 14 unless eigenstates $counts
114 2 12 unless defined $how
116 1 11 if ($how eq 'hard') { }
11 0 elsif ($how eq 'soft') { }
134 1 1 unless defined $c
137 1 0 if $c == 21 and $c == 11 and @{$$self{'cards'};} == 2
155 0 0 $self->blackjack ? :
0 0 $self->busted ? :
173 0 0 if $self->busted
175 0 0 if $dealer->busted
177 0 0 if $self->blackjack and $dealer->blackjack
180 0 0 if $self->blackjack
182 0 0 if $dealer->blackjack