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 70     70   697 use strict;
  70         368  
  70         2961  
2 70     70   387 use warnings;
  70         191  
  70         15950  
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 369     369 0 1203 my ($self, @params) = @_;
13              
14 369         690 my $return = $self;
15 369 50       1350 $return = $return->_child('App::Perlbrew::Path::Installation' => shift @params) if @params;
16 369 100       1142 $return = $return->child(@params) if @params;
17              
18 369         2382 $return;
19             }
20              
21             sub children {
22 179     179 0 627 shift->_children('App::Perlbrew::Path::Installation' => @_);
23             }
24              
25             sub list {
26 179     179 0 566 shift->children;
27             }
28              
29             1;
30