File Coverage

blib/lib/Starch.pm
Criterion Covered Total %
statement 19 19 100.0
branch 2 2 100.0
condition n/a
subroutine 6 6 100.0
pod 0 1 0.0
total 27 28 96.4


line stmt bran cond sub pod time code
1             package Starch;
2 13     13   3893723 use 5.008001;
  13         140  
3 13     13   86 use strictures 2;
  13         107  
  13         548  
4             our $VERSION = '0.12';
5              
6 13     13   8605 use Starch::Factory;
  13         56  
  13         495  
7 13     13   139 use Moo::Object qw();
  13         29  
  13         254  
8              
9 13     13   73 use namespace::clean;
  13         50  
  13         97  
10              
11             sub new {
12 70     70 0 141253 my $class = shift;
13 70         1567 my $args = Moo::Object->BUILDARGS( @_ );
14              
15 70         7713 my $plugins = delete( $args->{plugins} );
16 70 100       1374 my $factory = Starch::Factory->new(
17             defined($plugins) ? (plugins=>$plugins) : (),
18             );
19              
20 70         34899 return $factory->manager_class->new(
21             %$args,
22             factory => $factory,
23             );
24             }
25              
26             1;
27             __END__