File Coverage

blib/lib/Game/Cribbage/Player.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Game::Cribbage::Player;
2              
3 9     9   90380 use strict;
  9         14  
  9         339  
4 9     9   31 use warnings;
  9         22  
  9         436  
5              
6 9     9   484 use Object::Proto::Sugar -types;
  9         11771  
  9         64  
7              
8             has [qw/id number/] => (
9             is => 'ro',
10             isa => Int
11             );
12              
13             has name => (
14             is => 'ro',
15             isa => Str
16             );
17              
18              
19             sub player {
20 750     750 1 1510 return 'player' . $_[0]->number;
21             }
22              
23             1;
24              
25             __END__