Declare/DefaultSuperclassing.pm

filter: Statementstmt 81.8% 18 / 22 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 88.8% 8 / 9 Podpod n/a totaltotal 72.2% 26 / 36 CC 3 SCAR 11.9
CC
3
Cov
69%
__ANON__
9.3
BEGIN
1.1
__ANON__
1.1
CRAP 3.3
« Declare/Controller/Meta/TypeConstraintMapping.pm ↑ Summary Declare/Context/StringParsing.pm »
1 15 ▶use MooseX::Declare;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 15 ▶role CatalystX::Declare::DefaultSuperclassing {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.5
4  
5 15 requires qw(
6 default_superclasses
7 );
8  
9 0 ▶ before add_optional_customizations (Object $ctx, Str $package) {
Subroutine BEGIN: called CC=1 SCAR=1.2
Subroutine __ANON__: not called CC=3 SCAR=22.3
10  
11 0 ▶ unless (@{ $ctx->options->{extends} || [] }) {
Branch: 1 branch
BranchTrueFalseTotal
unless (@{$ctx->options->{"extends"} or [];}) 0 0 0
Condition0%0/2
$ctx->options->{'extends'} || []
l!l
00
MC/DC0%0/1
$ctx->options->{'extends'} || []
$ctx->options->{'extends'}
Truth table0%0/2
A
A= $ctx->options->{'extends'}
Aresult
11
00
12 0 $ctx->options->{extends} = [$self->default_superclasses];
13 }
14 15 }
15 15 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
« Declare/Controller/Meta/TypeConstraintMapping.pm ↑ Summary Declare/Context/StringParsing.pm »