blib/lib/Class/MOP/Mixin.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 89.6% 26 / 29 CC 2 SCAR 2.6
CC
2
Cov
95%
meta
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm ↑ Summary blib/lib/Moose/Meta/Method/Accessor/Native/String/substr.pm »
1 package Class::MOP::Mixin;
2 460 our $VERSION = '2.4001';
3  
4 460 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 460 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 460 ▶use Scalar::Util 'blessed';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 460 ▶use Module::Runtime 'use_module';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 27081 ▶sub meta {
Subroutine meta: called CC=2 SCAR=7.1
11 27081 require Class::MOP::Class;
12 27081 ▶ Class::MOP::Class->initialize( blessed( $_[0] ) || $_[0] );
Condition66%2/3
builtin::blessed($_[0]) || $_[0]
l!l&&r!l&&!r
459266220
MC/DC0%0/2
builtin::blessed($_[0]) || $_[0]
builtin::blessed($_[0]) $_[0]
Truth table66%2/3
A || B
A= builtin::blessed($_[0])B= $_[0]
ABresult
1X1
011
000
13 }
14  
15 157 ▶sub _throw_exception {
Subroutine _throw_exception: called CC=1 SCAR=0.0
16 157 my ($class, $exception_type, @args_to_exception) = @_;
17 157 die use_module( "Moose::Exception::$exception_type" )->new( @args_to_exception );
18 }
19  
20 460 1;
21  
22 # ABSTRACT: Base class for mixin classes
23  
24 __END__
« blib/lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm ↑ Summary blib/lib/Moose/Meta/Method/Accessor/Native/String/substr.pm »