Meta/Role/WarnOnConflict.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/WarnOnConflict.pm ↑ Summary
1 package MooseX::Meta::Role::WarnOnConflict;
2  
3 # ABSTRACT: metaclass for Moose::Meta::Role
4  
5 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 extends 'Moose::Meta::Role';
7  
8 2 our $VERSION = '0.01';
9  
10 3 ▶override apply => sub {
Subroutine __ANON__: called CC=3 SCAR=13.3
11 3 my ( $self, $other, @args ) = @_;
12  
13 3 ▶ if ( blessed($other) && $other->isa('Moose::Meta::Class') ) {
Branch: 1 branch
BranchTrueFalseTotal
if (builtin::blessed($other) and $other->isa("Moose::Meta::Class")) 3 0 3
Condition33%1/3
builtin::blessed($other) and $other->isa("Moose::Meta::Class")
!ll&&!rl&&r
003
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
14 # already loaded
15 3 return MooseX::Meta::Role::Application::ToClass::WarnOnConflig->new(@args)
16 ->apply( $self, $other );
17 }
18  
19 0 super;
20 2 };
21  
22 2 1;
23  
24 __END__
« Role/WarnOnConflict.pm ↑ Summary