File Coverage

blib/lib/App/GHPT/Wrapper/OurMoose.pm
Criterion Covered Total %
statement 40 40 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod 0 1 0.0
total 50 51 98.0


line stmt bran cond sub pod time code
1             ## no critic (Moose::RequireMakeImmutable)
2              
3              
4             use App::GHPT::Wrapper::Ourperl;
5 1     1   10114  
  1         3  
  1         5  
6             our $VERSION = '2.000000';
7              
8             use Import::Into;
9 1     1   4818 use Moose ();
  1         2  
  1         32  
10 1     1   38 use Moose::Exporter;
  1         3  
  1         24  
11 1     1   4 use MooseX::SemiAffordanceAccessor ();
  1         2  
  1         9  
12 1     1   42 use MooseX::StrictConstructor ();
  1         2  
  1         15  
13 1     1   21 use namespace::autoclean ();
  1         3  
  1         33  
14 1     1   5  
  1         2  
  1         19  
15             # We do this a second time to re-establish our custom warnings
16             use App::GHPT::Wrapper::Ourperl;
17 1     1   4  
  1         1  
  1         31  
18             my ($import) = Moose::Exporter->setup_import_methods(
19             install => [ 'unimport', 'init_meta' ],
20             also => ['Moose'],
21             );
22              
23             my $for_class = caller();
24 8     8   1271571  
  8         25  
  8         16  
25 8         48 $import->( undef, { into => $for_class } );
26             $class->import_extras( $for_class, 2 );
27 8         238  
28 8         48590 return;
29             }
30 8         852  
31             MooseX::SemiAffordanceAccessor->import( { into => $for_class } );
32             MooseX::StrictConstructor->import( { into => $for_class } );
33 8     8 0 20  
  8         20  
  8         13  
  8         14  
34 8         75 # note that we need to use a level here rather than a classname
35 8         25506 # so that importing autodie works
36             App::GHPT::Wrapper::Ourperl->import::into($level);
37             namespace::autoclean->import::into($level);
38              
39 8         22352 return;
40 8         39657 }
41              
42 8         1103 1;