Gungho/Handler/Null.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
handle_response
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # $Id: /mirror/gungho/lib/Gungho/Handler/Null.pm 31309 2007-11-29T13:16:23.310269Z lestrrat $
2 #
3 # Copyright (c) 2007 Daisuke Maki <daisuke@endeworks.jp>
4 # All rights reserved.
5  
6 package Gungho::Handler::Null;
7 use strict;
8 use warnings;
9 use base qw(Gungho::Handler);
10  
11 sub handle_response
12 {
13 my $self = shift;
14 my $c = shift;
15 my $req = shift;
16 my $res = shift;
17  
18 $c->log->info($req->uri . " responded with code " . $res->code);
19 }
20  
21 1;
22  
23 =head1 NAME
24  
25 Gungho::Handler::Null - A Handler That Does Nothing
26  
27 =head1 METHODS
28  
29 =head2 handle_response
30  
31 Prints out the URI that just got fetched and its status code
32  
33 =cut