Game/LowA5TripleDraw.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 44 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Poker::Game::LowA5TripleDraw;
2 our $VERSION = '0.12';
3  
4  
5 use strict;
6 use warnings FATAL => 'all';
7 use Moo;
8 use Poker::Eval::Community;
9 use Poker::Score::LowA5;
10  
11 =head1 NAME
12  
13 Poker::Game::LowA5TripleDraw - A-5 triple draw
14  
15 =head1 VERSION
16  
17 Version 0.12
18  
19 =cut
20  
21  
22 extends 'Poker::Game';
23  
24 has '+hole_count' => ( default => sub { 5 } );
25 has '+board_size' => ( default => sub { 0 } );
26 has '+max_draw_rounds' => ( default => sub { 3 } );
27  
28 around BUILDARGS => sub {
29 my ( $orig, $class, @args ) = @_;
30 my $args = $class->$orig(@args);
31 $args = {} unless ref $args eq 'HASH';
32 $args->{scorer} //= Poker::Score::LowA5->new;
33 $args->{eval_engine} //= Poker::Eval::Community->new(
34 scorer => $args->{scorer},
35 );
36 return $args;
37 };
38  
39 1;