File Coverage

blib/lib/CPANPLUS/Config/BaseEnv.pm
Criterion Covered Total %
statement 9 9 100.0
branch 1 2 50.0
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 14 15 93.3


line stmt bran cond sub pod time code
1             package CPANPLUS::Config::BaseEnv;
2             $CPANPLUS::Config::BaseEnv::VERSION = '0.06';
3             #ABSTRACT: Set the environment for the CPANPLUS base dir
4              
5 1     1   15763 use strict;
  1         2  
  1         25  
6 1     1   3 use File::Spec;
  1         2  
  1         62  
7              
8             sub setup {
9 1     1 1 642 my $conf = shift;
10             $conf->set_conf( base => File::Spec->catdir( $ENV{PERL5_CPANPLUS_BASE}, '.cpanplus' ) )
11 1 50       17 if $ENV{PERL5_CPANPLUS_BASE};
12 1         180 return 1;
13             }
14              
15             'YACSmoking';
16              
17             __END__