Branch Coverage

blib/lib/Games/JackThief.pm
Criterion Covered Total %
branch 26 36 72.2


line true false branch
112 2 3 defined $$Data{'no_of_Decks'} && $$Data{'no_of_Decks'} > 0 && $$Data{'no_of_Decks'} <= 5 ? :
113 2 3 defined $$Data{'no_of_Players'} && $$Data{'no_of_Players'} > 2 && $$Data{'no_of_Players'} <= 10 ? :
129 259 1 if scalar @{$$Self{'AllCards'};} > 0
137 0 10 if (scalar @{$$Self{'Player' . $_};} == 0)
160 0 1 if (scalar @{$$Self{'Player' . $fetch_by};} == 0) { }
0 1 elsif (scalar @{$$Self{'Player' . $fetch_from};} == 0) { }
184 1 0 if scalar @{$$Self{'FetchSeq'};} > 1
185 0 0 if scalar @{$$Self{'FetchSeq'};} == 1
204 2 0 defined $Players ? :
205 1 1 defined $a ? :
213 164 7 if (defined $$Self{$plyr}[$b] and defined $$Self{$plyr}[$b + 1])
215 69 95 if ($$Self{$plyr}[$b] =~ /\d+/ and $$Self{$plyr}[$b + 1] =~ /\d+/ and $$Self{$plyr}[$b] == $$Self{$plyr}[$b + 1]) { }
28 67 elsif ($$Self{$plyr}[$b] =~ /\w+/i and $$Self{$plyr}[$b + 1] =~ /\w+/i and $$Self{$plyr}[$b] eq $$Self{$plyr}[$b + 1]) { }
242 0 1 if (not $arg) { }
0 1 elsif ($arg == 1) { }
1 0 elsif ($arg == 2) { }
275 5 671 if ($N eq 'J' and not $DropOneJack) { }
296 14 652 if $i == $j