blib/lib/MOP4Import/Types.pm untested

filter: Statementstmt 0.0% 0 / 35 Branchbran 0.0% 0 / 8 Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 56 CC 5 SCAR 25.5
CC
5
Cov
0%
import
30.0
BEGIN
2.0
BEGIN
2.0
CRAP 12.8
1 package MOP4Import::Types;
2 use 5.010;
3 use strict;
4 use warnings qw(FATAL all NONFATAL misc);
5 use Carp;
6  
7 use MOP4Import::Pairs -as_base, qw/Opts m4i_opts/;
8 # XXX: [carp_not => MOP4Import::Util]
9 use MOP4Import::Declare::Type -as_base;
10 use MOP4Import::Util;
11  
12 use constant DEBUG => $ENV{DEBUG_MOP4IMPORT};
13  
14 sub import {
15 my $myPack = shift;
16  
17 m4i_log_start() if DEBUG;
18  
19 my Opts $opts = m4i_opts([caller])->take_hash_maybe(\@_);
20  
21 $myPack->dispatch_pairs_as_declare(type => $opts, @_);
22  
23 my $tasks;
24 if ($tasks = $opts->{delayed_tasks} and @$tasks) {
25 print STDERR " Calling delayed tasks for $opts->{destpkg}\n" if DEBUG;
26 $_->($opts) for @$tasks;
27 }
28  
29 m4i_log_end($opts->{callpack}) if DEBUG;
30 }
31  
32 1;