blib/lib/CPAN/Packager/Home.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 9 | 13 | 69.2 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 3 | 4 | 75.0 |
pod | 0 | 1 | 0.0 |
total | 12 | 20 | 60.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package CPAN::Packager::Home; | ||||||
2 | 3 | 3 | 18 | use strict; | |||
3 | 6 | ||||||
3 | 117 | ||||||
3 | 3 | 3 | 18 | use warnings; | |||
3 | 7 | ||||||
3 | 109 | ||||||
4 | 3 | 3 | 18 | use CPAN::Packager::FileUtil qw(dir); | |||
3 | 7 | ||||||
3 | 420 | ||||||
5 | |||||||
6 | sub detect { | ||||||
7 | 0 | 0 | 0 | my $class = shift; | |||
8 | 0 | 0 | if ( $ENV{CPAN_PACKAGER_HOME} ) { | ||||
9 | 0 | return dir( $ENV{CPAN_PACKAGER_HOME} ); | |||||
10 | } | ||||||
11 | 0 | return dir( $ENV{HOME}, '.cpanpackager' ); | |||||
12 | } | ||||||
13 | |||||||
14 | 1; | ||||||
15 | |||||||
16 | __END__ |