File Coverage

blib/lib/App/SCM/Digest/SCM/Factory.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 21 21 100.0


line stmt bran cond sub pod time code
1             package App::SCM::Digest::SCM::Factory;
2              
3 4     4   20 use strict;
  4         8  
  4         108  
4 4     4   41 use warnings;
  4         7  
  4         121  
5              
6 4     4   2401 use App::SCM::Digest::SCM::Git;
  4         13  
  4         133  
7 4     4   2946 use App::SCM::Digest::SCM::Hg;
  4         13  
  4         314  
8              
9             sub new
10             {
11 5     5 1 20 my ($class, $name) = @_;
12              
13 5         33 my $pkg = 'App::SCM::Digest::SCM::'.(ucfirst (lc $name));
14 5         83 return $pkg->new();
15             }
16              
17             1;
18              
19             __END__