Branch Coverage

blib/lib/App/Games/Keno.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
47 1 13 unless defined $self->draws
49 1 12 if defined $self->spots and defined $self->num_spots
51 1 1 unless defined $self->spots or defined $self->num_spots
54 10 1 if (defined $self->spots) { }
1 0 elsif ($self->num_spots >= 1 and $self->num_spots <= 10) { }
55 1 9 if (&any(sub {
58 24 1 unless $_ < 1
3 6 if (&any(sub {
61 1 5 if (scalar @{$self->spots;} != &uniq(@{$self->spots;}))
64 1 4 if (scalar @{$self->spots;} < 1)
67 1 3 if (my $too_many_spots = scalar @{$self->spots;} > 10)
184 0 0 if ($matches > 6 and $matches == $self->num_spots)
201 0 5 if $seen{$candidate}++
213 0 0 if (exists $self->payout_table->{$spot}{$match}) { }