File Coverage

blib/lib/Dist/Joseki/DistType.pm
Criterion Covered Total %
statement 12 16 75.0
branch 0 4 0.0
condition n/a
subroutine 4 5 80.0
pod 0 1 0.0
total 16 26 61.5


line stmt bran cond sub pod time code
1             package Dist::Joseki::DistType;
2 1     1   6 use warnings;
  1         3  
  1         32  
3 1     1   6 use strict;
  1         1  
  1         29  
4 1     1   819 use Dist::Joseki::DistType::ModuleBuild;
  1         3  
  1         18  
5 1     1   744 use Dist::Joseki::DistType::MakeMaker;
  1         3  
  1         11  
6             our $VERSION = '0.20';
7              
8             sub new {
9 0     0 0   my $class = shift;
10 0 0         return Dist::Joseki::DistType::ModuleBuild->new if -e "Build.PL";
11 0 0         return Dist::Joseki::DistType::MakeMaker->new if -e "Makefile.PL";
12 0           die "Can't determine dist type. Is this a perl distribution root dir?\n";
13             }
14             1;
15             __END__