blib/lib/WWW/Simpy.pm

filter: Statementstmt 81.8% 9 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 86.6% 13 / 15 CC 1 SCAR 0.7
CC
1
Cov
82%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary
1 package WWW::Simpy;
2  
3 1 ▶use 5.006001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 0 ▶use XML::Parser;
Subroutine BEGIN: called CC=1 SCAR=2.6
7 use LWP::UserAgent;
8 use URI;
9 use HTTP::Request::Common;
10 use Data::Dumper;
11  
12  
13 use constant API_NETLOC => "www.simpy.com:80";
14 use constant API_REALM => "/simpy/api/rest";
15 use constant API_BASE => "http://" . API_NETLOC . API_REALM . "/";
16  
17 use constant PUBLIC => 1;
18 use constant PRIVATE => 0;
19  
20 use constant SUCCESS => 0;
21 use constant PARAMETER_MISSING => 100;
22 use constant NONEXISTENT_ENTITY => 200;
23 use constant TRANSIENT_ERROR => 300;
24 use constant STORAGE_ERROR => 301;
25 use constant QUOTA_REACHED => 500;
26  
27 # must be all on one line, or MakeMaker will get confused
28 our $VERSION = do { my @r = (q$Revision: 1.15 $ =~ /\d+/g); sprintf "%d."."%03d" x $#r, @r };
29 $VERSION = eval $VERSION;
30  
31 require Exporter;
32 use AutoLoader qw(AUTOLOAD);
33  
34 our @ISA = qw(Exporter);
35  
36 # Items to export into callers namespace by default. Note: do not export
37 # names by default without a very good reason. Use EXPORT_OK instead.
38 # Do not simply export all your public functions/methods/constants.
39  
40 # This allows declaration use Simpy ':all';
41 # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
42 # will save memory.
43 our %EXPORT_TAGS = ( 'all' => [ qw(
44
45 ) ] );
46  
47 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
48  
49 our @EXPORT = qw( PUBLIC PRIVATE
50 SUCCESS
51 PARAMETER_MISSING
52 NONEXISTENT_ENTITY
53 TRANSIENT_ERROR
54 STORAGE_ERROR
55 QUOTA_REACHED
56 );
57  
58  
59 # Preloaded methods go here.
60  
61 # Autoload methods go after =cut, and are processed by the autosplit program.
62  
63 1;
64 __END__
↑ Summary