StrictConstructor/Role/Constructor.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« StrictConstructor/Role/Constructor/Late.pm ↑ Summary StrictConstructor/Role/Constructor/Base.pm »
1 2 ▶use strict; # redundant, but quiets perlcritic
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 package MooX::StrictConstructor::Role::Constructor;
4  
5 2 our $VERSION = '0.013';
6  
7 2 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 with 'MooX::StrictConstructor::Role::Constructor::Base';
10  
11 6 ▶around _check_required => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
12 6 my ($orig, $self, $spec, @rest) = @_;
13 6 my $code = $self->$orig($spec, @rest);
14 6 $code .= $self->_cap_call($self->_check_strict($spec, '$args'));
15 6 return $code;
16 2 };
17  
18 2 1;
19  
20 __END__
« StrictConstructor/Role/Constructor/Late.pm ↑ Summary StrictConstructor/Role/Constructor/Base.pm »