blib/lib/Mouse/Meta/Role/Method.pm

filter: Statementstmt 92.3% 12 / 13 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 88.8% 16 / 18 CC 2 SCAR 4.4
CC
2
Cov
87%
_new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« blib/lib/Mouse/Object.pm ↑ Summary blib/lib/Squirrel.pm »
1 package Mouse::Meta::Role::Method;
2 108 ▶use Mouse::Util; # enables strict and warnings
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 108 ▶use Mouse::Meta::Method;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 108 our @ISA = qw(Mouse::Meta::Method);
6  
7 8 ▶sub _new{
Subroutine _new: called CC=2 SCAR=7.4
8 8 my($class, %args) = @_;
9 8 my $self = bless \%args, $class;
10  
11 8 ▶ if($class ne __PACKAGE__){
Branch: 1 branch
BranchTrueFalseTotal
if ($class ne __PACKAGE__) 0 8 8
12 0 $self->meta->_initialize_object($self, \%args);
13 }
14 8 return $self;
15 }
16  
17 108 1;
18 __END__
« blib/lib/Mouse/Object.pm ↑ Summary blib/lib/Squirrel.pm »