File Coverage

blib/lib/Tanker/RequestGenerator.pm
Criterion Covered Total %
statement 16 17 94.1
branch n/a
condition 2 5 40.0
subroutine 4 5 80.0
pod 0 2 0.0
total 22 29 75.8


line stmt bran cond sub pod time code
1             package Tanker::RequestGenerator;
2              
3 1     1   6 use strict;
  1         1  
  1         26  
4 1     1   4 use warnings;
  1         1  
  1         17  
5 1     1   4 use Tanker::Request;
  1         2  
  1         107  
6              
7             sub new ($$)
8             {
9             # standard stuff for creating a new object
10             # I'm not sure if this *should* be an object
11             # but I think it'll probably be useful in the end
12 1     1 0 2 my $proto = shift;
13 1   33     5 my $class = ref($proto) || $proto;
14            
15             # yes, we must have a pipeline
16 1   50     4 my $pipeline = shift || die "You must pass a pipeline file to $class\n";
17              
18             # bless our self into a hash
19 1         2 my $self = {};
20 1         3 bless ($self, $class);
21              
22 1         4 $self->{pipeline} = $pipeline;
23              
24             # and give it on back
25 1         3 return $self;
26             }
27              
28             sub run($)
29 0     0 0   {
30             # do nothing
31             }
32              
33             1;
34             __END__