/usr/local/lib/perl5/site_perl/5.44.0/Moo/sification.pm

filter: Statementstmt 75.0% 21 / 28 Branchbran 37.5% 3 / 8 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 77.7% 7 / 9 Podpod n/a totaltotal 62.0% 31 / 50 CC 6 SCAR 15.2
CC
6
Cov
62%
DESTROY
12.0
unimport
6.0
import
3.2
CRAP 4.6
« /usr/local/lib/perl5/5.44.0/warnings/register.pm ↑ Summary blib/lib/Skilletor/Probe.pm »
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
BranchTrueFalseTotal
if $Moo::HandleMoose::SETUP_DONE 0 0 0
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
BranchTrueFalseTotal
unless (our $disabled or &_in_global_destruction()) 0 0 0
Condition0%0/3
our $disabled or &_in_global_destruction()
l!l&&r!l&&!r
000
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()
ABresult
1X1
011
000
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
BranchTrueFalseTotal
if our $setup_done 5 7 12
26 7 ▶ if ($INC{"Moose.pm"}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($INC{'Moose.pm'}) { } 0 7 7
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;
« /usr/local/lib/perl5/5.44.0/warnings/register.pm ↑ Summary blib/lib/Skilletor/Probe.pm »