Cribbage/Play/Card.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Cribbage/Error.pm ↑ Summary Cribbage/Player.pm »
1 package Game::Cribbage::Play::Card;
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/player card/] => (
9 is => 'ro',
10 isa => Object
11 13 );
12  
13 454 ▶sub value {
Subroutine value: called CC=1 SCAR=0.0
Pod documented
14 454 $_[0]->card->value;
15 }
16  
17 111 ▶sub symbol {
Subroutine symbol: called CC=1 SCAR=0.0
Pod documented
18 111 $_[0]->card->symbol;
19 }
20  
21 13 1;
22  
23 __END__
« Cribbage/Error.pm ↑ Summary Cribbage/Player.pm »