Tanker/ResponseGenerator.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
handle
2.0
BEGIN
2.0
CRAP 2.0
1 package Tanker::ResponseHandler;
2  
3 use strict;
4 use warnings;
5 use Tanker::Request;
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 my $proto = shift;
13 my $class = ref($proto) || $proto;
14
15 # bless our self into a hash
16 my $self = {};
17 bless ($self, $class);
18  
19  
20 # and give it on back
21 return $self;
22 }
23  
24 sub handle ($$)
25 {
26 my ($self, $request) = @_;
27
28 # do something
29 }
30  
31  
32  
33  
34 1;
35 __END__