| 1 | package Moo::sification; | ||||||||||||||||||||||||||||
| 2 | 7 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 7 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 7 | ▶ | no warnings 'once'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 7 | ▶ | use Carp qw(croak); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | 7 | ▶ | BEGIN { our @CARP_NOT = qw(Moo::HandleMoose) } | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | 7 | ▶ | use Moo::_Utils qw(_in_global_destruction); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 0 | ▶ | sub unimport { | ||||||||||||||||||||||||||
|
Subroutine
unimport: not called CC=2 SCAR=17.9
| |||||||||||||||||||||||||||||
| 11 | 0 | ▶ | croak "Can't disable Moo::sification after inflation has been done" | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 12 | if $Moo::HandleMoose::SETUP_DONE; | ||||||||||||||||||||||||||||
| 13 | 0 | our $disabled = 1; | |||||||||||||||||||||||||||
| 14 | } | ||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||
| 16 | 0 | ▶ | sub Moo::HandleMoose::AuthorityHack::DESTROY { | ||||||||||||||||||||||||||
|
Subroutine
DESTROY: not called CC=3 SCAR=24.8
| |||||||||||||||||||||||||||||
| 17 | 0 | ▶ | unless (our $disabled or _in_global_destruction) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
our $disabled or &_in_global_destruction()
MC/DC0%0/2
our $disabled or &_in_global_destruction()
our $disabled
&_in_global_destruction()
Truth table0%0/3
A or B
A= our $disabledB= &_in_global_destruction()
| |||||||||||||||||||||||||||||
| 18 | 0 | require Moo::HandleMoose; | |||||||||||||||||||||||||||
| 19 | 0 | Moo::HandleMoose->import; | |||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||
| 21 | } | ||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 12 | ▶ | sub import { | ||||||||||||||||||||||||||
|
Subroutine
import: called CC=3 SCAR=11.8
| |||||||||||||||||||||||||||||
| 24 | return | ||||||||||||||||||||||||||||
| 25 | 12 | ▶ | if our $setup_done; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 26 | 7 | ▶ | if ($INC{"Moose.pm"}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 27 | 0 | require Moo::HandleMoose; | |||||||||||||||||||||||||||
| 28 | 0 | Moo::HandleMoose->import; | |||||||||||||||||||||||||||
| 29 | } else { | ||||||||||||||||||||||||||||
| 30 | 7 | $Moose::AUTHORITY = bless({}, 'Moo::HandleMoose::AuthorityHack'); | |||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||
| 32 | 7 | $setup_done = 1; | |||||||||||||||||||||||||||
| 33 | } | ||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||
| 35 | 7 | 1; | |||||||||||||||||||||||||||