lib/Amazon/SQS/Constants.pm

filter: Statementstmt 100% 28 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Amazon/SQS/Model/ReceiveMessageRequest.pm ↑ Summary
1 package Amazon::SQS::Constants;
2  
3 # constants for Amazon::SQS classes
4  
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use parent qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 # booleans
13 3 Readonly::Scalar our $TRUE => 1;
14 3 Readonly::Scalar our $FALSE => 0;
15  
16 # chars
17 3 Readonly::Scalar our $EMPTY => q{};
18 3 Readonly::Scalar our $EQUALS => q{=};
19 3 Readonly::Scalar our $AMPERSAND => q{&};
20 3 Readonly::Scalar our $SLASH => q{/};
21  
22 # http
23 3 Readonly::Scalar our $HTTP_OK => '200';
24 3 Readonly::Scalar our $HTTP_INTERNAL_SERVER_ERROR => '500';
25 3 Readonly::Scalar our $HTTP_GATEWAY_TIMEOUT => '503';
26  
27 3 our %EXPORT_TAGS = (
28 chars => [
29 qw(
30 $EMPTY
31 $EQUALS
32 $AMPERSAND
33 $SLASH
34 )
35 ],
36 booleans => [
37 qw(
38 $TRUE
39 $FALSE
40 )
41 ],
42 http => [
43 qw(
44 $HTTP_OK
45 $HTTP_INTERNAL_SERVER_ERROR
46 $HTTP_GATEWAY_TIMEOUT
47 )
48 ]
49 );
50  
51 3 our @EXPORT_OK;
52  
53 3 foreach my $k ( keys %EXPORT_TAGS ) {
54 9 push @EXPORT_OK, @{ $EXPORT_TAGS{$k} };
55 }
56  
57 3 $EXPORT_TAGS{'all'} = [@EXPORT_OK];
58  
59 3 1;
60  
61 __END__
« lib/Amazon/SQS/Model/ReceiveMessageRequest.pm ↑ Summary