Cribbage/Player.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Cribbage/Play/Card.pm ↑ Summary Cribbage/Round/Score.pm »
1 package Game::Cribbage::Player;
2  
3 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 13 ▶use Object::Proto::Sugar -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 has [qw/id number/] => (
9 is => 'ro',
10 isa => Int
11 13 );
12  
13 has name => (
14 is => 'ro',
15 isa => Str
16 13 );
17  
18  
19 978 ▶sub player {
Subroutine player: called CC=1 SCAR=0.0
Pod documented
20 978 return 'player' . $_[0]->number;
21 }
22  
23 13 1;
24  
25 __END__
« Cribbage/Play/Card.pm ↑ Summary Cribbage/Round/Score.pm »