script/cmis_test_server.pl untested

filter: Statementstmt 0.0% 0 / 26 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 41 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl
2  
3 use strict;
4 use warnings;
5  
6 =head1 NAME
7  
8 cmis_test_server.pl - Standalone server for CPAN::Mini::Inject::Server
9  
10 =head1 SYNOPSIS
11  
12 cmis_test_server.pl [options]
13  
14 Options:
15 -help brief help message
16 -man full documentation
17 -port Port to run the server on
18  
19 =head1 OPTIONS
20  
21 =over 8
22  
23 =item B<-help>
24  
25 Print a brief help message and exits.
26  
27 =item B<-man>
28  
29 Prints the manual page and exits.
30  
31 =item B<-port>
32  
33 The port on which the server will be run. Defaults to 9000.
34  
35 =back
36  
37 =head1 DESCRIPTION
38  
39 Test dev server for CPAN::Mini::Inject::Server
40  
41 =cut
42  
43 =head1 VERSION
44  
45 Version 0.03
46  
47 =cut
48  
49 our $VERSION = '0.03';
50  
51 use Carp;
52 use Getopt::Long;
53 use Pod::Usage;
54 use CGI::Application::Dispatch::Server;
55  
56 my ($help, $man);
57 my $port = 9000;
58  
59 GetOptions(
60 'help|?' => \$help,
61 'man' => \$man,
62 'port=i' => \$port,
63 ) or pod2usage(2);
64  
65 pod2usage(1) if $help;
66 pod2usage(-exitstatus => 0, -verbose => 2) if $man;
67  
68 my $server = CGI::Application::Dispatch::Server->new(
69 class => 'CPAN::Mini::Inject::Server::Dispatch',
70 port => $port,
71 );
72  
73 $server->run;
74  
75 =head1 AUTHOR
76  
77 Christopher Mckay (cmckay), C<< <cmckay@iseek.com.au> >>
78  
79 =head1 SUPPORT
80  
81 You can find documentation for this module with the perldoc command.
82  
83 perldoc cmis_test_server.pl
84  
85  
86 =head1 ACKNOWLEDGEMENTS
87  
88  
89 =head1 COPYRIGHT & LICENSE
90  
91 Copyright 2009 iseek Communications, all rights reserved.
92  
93 This program is released under the following license: restrictive
94  
95  
96 =cut
97  
98 # End of cmis_test_server.pl
99