File Coverage

lib/App/Perlbrew/Path/Installations.pm
Criterion Covered Total %
statement 13 13 100.0
branch 3 4 75.0
condition n/a
subroutine 5 5 100.0
pod 0 3 0.0
total 21 25 84.0


line stmt bran cond sub pod time code
1 59     59   399 use strict;
  59         110  
  59         1706  
2 59     59   371 use warnings;
  59         123  
  59         10962  
3              
4             package App::Perlbrew::Path::Installations;
5              
6             require App::Perlbrew::Path;
7             require App::Perlbrew::Path::Installation;
8              
9             our @ISA = qw( App::Perlbrew::Path );
10              
11             sub child {
12 360     360 0 950 my ($self, @params) = @_;
13              
14 360         590 my $return = $self;
15 360 50       1398 $return = $return->_child('App::Perlbrew::Path::Installation' => shift @params) if @params;
16 360 100       1264 $return = $return->child(@params) if @params;
17              
18 360         2386 $return;
19             }
20              
21             sub children {
22 179     179 0 565 shift->_children('App::Perlbrew::Path::Installation' => @_);
23             }
24              
25             sub list {
26 179     179 0 479 shift->children;
27             }
28              
29             1;
30