Types/Extend.pm

filter: Statementstmt 100% 30 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 100% 39 / 39 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Util/compat_double_diamond.pm ↑ Summary
1 package MOP4Import::Types::Extend;
2 20 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 20 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 20 ▶use warnings qw(FATAL all NONFATAL misc);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 20 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 20 ▶use MOP4Import::Opts qw/Opts m4i_opts/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 20 ▶use MOP4Import::Types -as_base;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 20 ▶use MOP4Import::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 20 ▶use constant DEBUG => $ENV{DEBUG_MOP4IMPORT};
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 sub import {
14 27 ▶ my $myPack = shift;
Subroutine import: called CC=1 SCAR=0.0
15  
16 27 m4i_log_start() if DEBUG;
17  
18 27 my Opts $opts = m4i_opts([caller])->take_hash_maybe(\@_);
19  
20 27 $opts->{extending} = 1;
21  
22 27 $myPack->dispatch_pairs_as_declare(type => $opts, @_);
23  
24 27 m4i_log_end($opts->{callpack}) if DEBUG;
25 }
26  
27 20 1;
« Util/compat_double_diamond.pm ↑ Summary