File Coverage

blib/lib/File/HomeDir/Tiny.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition 1 2 50.0
subroutine 3 3 100.0
pod 0 1 0.0
total 11 13 84.6


line stmt bran cond sub pod time code
1 1     1   318 use 5.004;
  1         3  
2             package File::HomeDir::Tiny;
3             $VERSION='0.01';
4             sub import{
5 2     2   19 shift;
6             "home"ne$_
7             &&die __PACKAGE__." does not export $_ at ".join(' line ',(caller)[1,2])
8             .".\n"
9 2   50     15 for@_;
10 1         2 *{caller()."'home"}=\&home;_:
  1         4  
11             }
12 3     3 0 221 eval'sub home(){'
13             .($^Oeq Win32&&"$]"<5.016?'$ENV{HOME}||$ENV{USERPROFILE}}':'(<~>)[0]}');
14             @EXPORT='home';