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 70     70   312846 use strict;
  70         130  
  70         5056  
2 70     70   338 use warnings;
  70         175  
  70         4453  
3              
4             package App::Perlbrew::Path::Root;
5              
6 70     70   892 use App::Perlbrew::Path ();
  70         193  
  70         1430  
7 70     70   30437 use App::Perlbrew::Path::Installations ();
  70         205  
  70         12966  
8              
9             our @ISA = qw( App::Perlbrew::Path );
10              
11             sub bin {
12 81     81 0 390 shift->child(bin => @_);
13             }
14              
15             sub build {
16 41     41 0 414 shift->child(build => @_);
17             }
18              
19             sub dists {
20 45     45 0 216 shift->child(dists => @_);
21             }
22              
23             sub etc {
24 12     12 0 46 shift->child(etc => @_);
25             }
26              
27             sub perls {
28 408     408 0 2116 my ($self, @params) = @_;
29              
30 408         1597 my $return = $self->_child('App::Perlbrew::Path::Installations', 'perls');
31 408 100       1765 $return = $return->child(@params) if @params;
32              
33 408         1956 return $return;
34             }
35              
36             1;
37