blib/lib/Games/Solitaire/Verify/Base.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 3 / 3 totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Games/Solitaire/Verify.pm ↑ Summary
1 package Games::Solitaire::Verify::Base;
2 32 $Games::Solitaire::Verify::Base::VERSION = '0.2301';
3 32 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 32 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6  
7 32 ▶use Class::XSAccessor;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9  
10  
11 sub new
12 {
13 17941 ▶ my $class = shift;
Subroutine new: called CC=1 SCAR=0.0
Pod documented
14 17941 my $self = {};
15 17941 bless $self, $class;
16  
17 # May throw an exception.
18 17941 $self->_init(@_);
19  
20 17933 return $self;
21 }
22  
23  
24 sub mk_accessors
25 {
26 1 ▶ my $package = shift;
Subroutine mk_accessors: called CC=1 SCAR=0.0
Pod documented
27 1 return $package->mk_acc_ref( [@_] );
28 }
29  
30  
31 sub mk_acc_ref
32 {
33 155 ▶ my $package = shift;
Subroutine mk_acc_ref: called CC=1 SCAR=0.0
Pod documented
34 155 my $names = shift;
35  
36 155 my $mapping = +{ map { $_ => $_ } @$names };
37  
38 155 eval <<"EOF";
39 package $package;
40  
41 Class::XSAccessor->import(
42 accessors => \$mapping,
43 );
44 EOF
45  
46 }
47  
48 32 1; # End of Games::Solitaire::Verify::Base
49  
50 __END__
« blib/lib/Games/Solitaire/Verify.pm ↑ Summary