File Coverage

blib/lib/Language/Homespring/River.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition 2 4 50.0
subroutine 3 3 100.0
pod 0 1 0.0
total 19 22 86.3


line stmt bran cond sub pod time code
1             package Language::Homespring::River;
2              
3             $VERSION = 0.01;
4              
5 4     4   21 use warnings;
  4         7  
  4         110  
6 4     4   18 use strict;
  4         7  
  4         423  
7              
8             my $river_count = 0;
9              
10             sub new {
11 95     95 0 130 my $class = shift;
12 95         232 my $self = bless {}, $class;
13              
14 95         114 my $options = shift;
15 95         190 $self->{interp} = $options->{interp};
16 95   50     250 $self->{up_node} = $options->{up_node} || undef;
17 95   50     480 $self->{down_node} = $options->{down_node} || undef;
18 95         158 $self->{uid} = ++$river_count;
19              
20 95         234 return $self;
21             }
22              
23             1;