File Coverage

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


line stmt bran cond sub pod time code
1             package CPANPLUS::Config::YACSmoke;
2             $CPANPLUS::Config::YACSmoke::VERSION = '1.06';
3             # Dist::Zilla: +PodWeaver
4             #ABSTRACT: Set the environment for YACSmoking
5              
6 2     2   40382 use strict;
  2         5  
  2         51  
7 2     2   9 use File::Spec;
  2         4  
  2         171  
8              
9             sub setup {
10 2     2 1 1640 my $conf = shift;
11             $conf->set_conf( base => File::Spec->catdir( $ENV{PERL5_YACSMOKE_BASE}, '.cpanplus' ) )
12 2 100       26 if $ENV{PERL5_YACSMOKE_BASE};
13 2         250 return 1;
14             }
15              
16             'YACSmoking';
17              
18             __END__