Pipeline.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package WWW::Pipeline;
2 $VERSION = '0.1';
3  
4 use base Application::Pipeline;
5  
6 =head1 WWW::Pipeline
7  
8 WWW::Pipeline is a subclass of Application::Pipeline that establishes phases
9 useful for handling http requests. Those phases are:
10  
11 Initialization ParseRequest GenerateResponse SendResponse Teardown.
12  
13 =cut
14  
15 #-- pragmas ----------------------------
16 use strict;
17 use warnings;
18  
19 #===============================================================================
20  
21 =head2 Methods defined by WWW::Pipeline
22  
23 =head3 new
24  
25 my $pipeline = MyApplication->new( param => value, ... )
26  
27 Constructor. Key/value pairs passed into the constructor will be stored in and
28 accessibly by the application's C<param()> method.
29  
30 =cut
31  
32 sub new {
33  
34 my( $class, %params ) = @_;
35 my $self = bless {}, $class;
36  
37 $self->setPhases( qw(
38 Initialization
39 ParseRequest
40 GenerateResponse
41 SendResponse
42 Teardown
43 ));
44  
45 $self->setPluginLocations( qw(
46 Application::Pipeline::Services
47 WWW::Pipeline::Services
48 ));
49  
50 $self->loadPlugin( 'WWW::Pipeline::Services', \%params )
51 or die "Could not install basic www services";
52  
53 return $self;
54 }
55  
56 #========
57 1;
58  
59 =head2 See Also
60  
61 Application::Pipeline
62 WWW::Pipeline::Services
63  
64 =head2 Authors
65  
66 Stephen Howard <stephen@thunkit.com>
67  
68 =head2 License
69  
70 This module may be distributed under the same terms as Perl itself.
71  
72 =cut