File Coverage

lib/App/Perlbrew/Path/Root.pm
Criterion Covered Total %
statement 20 20 100.0
branch 2 2 100.0
condition n/a
subroutine 9 9 100.0
pod 0 5 0.0
total 31 36 86.1


line stmt bran cond sub pod time code
1 59     59   158770 use strict;
  59         125  
  59         1780  
2 59     59   295 use warnings;
  59         134  
  59         2175  
3              
4             package App::Perlbrew::Path::Root;
5              
6 59     59   692 use App::Perlbrew::Path ();
  59         128  
  59         854  
7 59     59   23855 use App::Perlbrew::Path::Installations ();
  59         140  
  59         9523  
8              
9             our @ISA = qw( App::Perlbrew::Path );
10              
11             sub bin {
12 68     68 0 337 shift->child(bin => @_);
13             }
14              
15             sub build {
16 36     36 0 316 shift->child(build => @_);
17             }
18              
19             sub dists {
20 40     40 0 255 shift->child(dists => @_);
21             }
22              
23             sub etc {
24 10     10 0 31 shift->child(etc => @_);
25             }
26              
27             sub perls {
28 394     394 0 1850 my ($self, @params) = @_;
29              
30 394         1545 my $return = $self->_child('App::Perlbrew::Path::Installations', 'perls');
31 394 100       1592 $return = $return->child(@params) if @params;
32              
33 394         1856 return $return;
34             }
35              
36             1;
37