Object/AUTHORITY.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran 50.0% 1 / 2 Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 94.1% 32 / 34 CC 4 SCAR 8.8
CC
4
Cov
93%
import
4.2
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« Role/Commons/Authority.pm ↑ Summary Role/Commons/ObjectID.pm »
1 4 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Object::AUTHORITY;
6  
7 4 our $AUTHORITY = 'cpan:TOBYINK';
8 4 our $VERSION = '0.104';
9  
10 4 ▶use Role::Commons ();
Subroutine BEGIN: called CC=1 SCAR=0.0
11 4 ▶use Role::Commons::Authority ();
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 sub import
14 3 ▶{
Subroutine import: called CC=4 SCAR=14.3
15 3 shift;
16 3 my (undef, $opts) = Role::Commons::->parse_arguments(Authority => @_);
17 my @packages = ref $opts->{package}
18 0 ▶ ? @{ $opts->{package} }
Condition100%2/2
$opts->{"package"} or scalar caller
l!l
21
MC/DC100%1/1
$opts->{"package"} or scalar caller
$opts->{"package"}
Truth table100%2/2
A
A= $opts->{"package"}
Aresult
11
00
19 3 ▶ : ($opts->{package}|| scalar caller);
Branch: 1 branch
BranchTrueFalseTotal
ref $opts->{'package'} ? : 0 3 3
20
21 3 Role::Commons::->import('Authority', -into => $_) for @packages;
22 }
23  
24 4 *AUTHORITY = Role::Commons::Authority::->can('AUTHORITY');
25  
26 4 1;
27  
« Role/Commons/Authority.pm ↑ Summary Role/Commons/ObjectID.pm »