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

filter: Statementstmt 100% 15 / 15 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 95.2% 20 / 21 CC 2 SCAR 3.4
CC
2
Cov
94%
_make_compatible_with
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Moose/Meta/Method/Accessor/Native/Array/insert.pm ↑ Summary blib/lib/Moose/Meta/Method/Accessor/Native/Array/set.pm »
1 package Moose::Meta::Role::Method;
2 386 our $VERSION = '2.4001';
3  
4 386 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 386 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 386 ▶use parent 'Moose::Meta::Method';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 5 ▶sub _make_compatible_with {
Subroutine _make_compatible_with: called CC=2 SCAR=7.0
10 5 my $self = shift;
11 5 my ($other) = @_;
12  
13 # XXX: this is pretty gross. the issue here is blah blah blah
14 # see the comments in CMOP::Method::Meta and CMOP::Method::Wrapped
15 5 ▶ return $self unless $other->_is_compatible_with($self->_real_ref_name);
Branch: 1 branch
BranchTrueFalseTotal
unless $other->_is_compatible_with($self->_real_ref_name) 0 5 5
16  
17 5 return $self->SUPER::_make_compatible_with(@_);
18 }
19  
20 386 1;
21  
22 # ABSTRACT: A Moose Method metaclass for Roles
23  
24 __END__
« blib/lib/Moose/Meta/Method/Accessor/Native/Array/insert.pm ↑ Summary blib/lib/Moose/Meta/Method/Accessor/Native/Array/set.pm »