| 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
MC/DC100%1/1
$opts->{"package"} or scalar caller
$opts->{"package"}
Truth table100%2/2
A
A= $opts->{"package"}
| |||||||||||||
| 19 | 3 | ▶ | : ($opts->{package}|| scalar caller); | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 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 | |||||||||||||