Meta/Role/Strict.pm

filter: Statementstmt 90.9% 10 / 11 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 70.0% 14 / 20 CC 3 SCAR 11.3
CC
3
Cov
75%
__ANON__
3.8
BEGIN
1.0
CRAP 3.1
« Role/Strict.pm ↑ Summary
1 package MooseX::Meta::Role::Strict;
2  
3 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 extends 'Moose::Meta::Role';
5  
6 2 our $VERSION = 0.05;
7  
8 2 ▶override apply => sub {
Subroutine __ANON__: called CC=3 SCAR=13.3
9 2 my ( $self, $other, @args ) = @_;
10  
11 2 ▶ if ( blessed($other) && $other->isa('Moose::Meta::Class') ) {
Branch: 1 branch
BranchTrueFalseTotal
if (builtin::blessed($other) and $other->isa("Moose::Meta::Class")) 2 0 2
Condition33%1/3
builtin::blessed($other) and $other->isa("Moose::Meta::Class")
!ll&&!rl&&r
002
MC/DC0%0/2
builtin::blessed($other) and $other->isa("Moose::Meta::Class")
builtin::blessed($other) $other->isa("Moose::Meta::Class")
Truth table33%1/3
A and B
A= builtin::blessed($other)B= $other->isa("Moose::Meta::Class")
ABresult
0X0
100
111
12 # already loaded
13 2 return MooseX::Meta::Role::Application::ToClass::Strict->new(@args)
14 ->apply( $self, $other );
15 }
16  
17 0 super;
18 2 };
19  
20 2 1;
21  
22 __END__
« Role/Strict.pm ↑ Summary