blib/lib/Magpie/Constants.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond 50.0% 2 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 82.6% 19 / 23 CC 3 SCAR 7.3
CC
3
Cov
88%
__ANON__
3.1
__ANON__
1.0
BEGIN
1.0
CRAP 2.1
« blib/lib/Magpie/SymbolTable.pm ↑ Summary blib/lib/Magpie/Plugin/Resource/Cache.pm »
1 package Magpie::Constants;
2 49 $Magpie::Constants::VERSION = '1.141660';
3 # ABSTRACT: Common Handler Control Constants;
4  
5 use constant {
6 49 OK => 100,
7 DECLINED => 199,
8 DONE => 299,
9 OUTPUT => 300,
10 SERVER_ERROR => 500,
11 HANDLER_ERROR => 501,
12 QUEUE_ERROR => 502,
13 49 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 use Sub::Exporter -setup => {
16 exports => [
17 qw(OK DECLINED DONE OUTPUT SERVER_ERROR HANDLER_ERROR QUEUE_ERROR),
18 HTTP_METHODS => sub {
19 496 ▶ my ( $class, $name, $arg, $col ) = @_;
Subroutine __ANON__: called CC=1 SCAR=0.1
20  
21 sub () {
22 qw(GET POST PUT DELETE HEAD OPTIONS TRACE PATCH CONNECT),
23 187 ▶ @{ $arg{extra_http_methods} // [] },
Condition50%1/2
$arg{"extra_http_methods"} // []
l!l
0187
MC/DC0%0/1
$arg{"extra_http_methods"} // []
$arg{"extra_http_methods"}
Truth table50%1/2
A
A= $arg{"extra_http_methods"}
Aresult
11
00
24 187 ▶ @{ $col{extra_http_methods} // [] };
Subroutine __ANON__: called CC=3 SCAR=11.4
Condition50%1/2
$col{"extra_http_methods"} // []
l!l
0187
MC/DC0%0/1
$col{"extra_http_methods"} // []
$col{"extra_http_methods"}
Truth table50%1/2
A
A= $col{"extra_http_methods"}
Aresult
11
00
25 496 };
26 },
27 49 ],
28 groups => [
29 default => [
30 qw(OK DECLINED DONE OUTPUT SERVER_ERROR HANDLER_ERROR QUEUE_ERROR HTTP_METHODS)
31 ],
32 ],
33 collectors => [qw(extra_http_methods)]
34 49 ▶};
Subroutine BEGIN: called CC=1 SCAR=0.0
35  
36 # SEEALSO: Magpie, Magpie::Component, Magpie::Event
37  
38 49 1;
39  
40  
41 =pod
42  
43 =head1 NAME
44  
45 Magpie::Constants - Common Handler Control Constants;
46  
47 =head1 VERSION
48  
49 version 1.141660
50  
51 =head1 AUTHORS
52  
53 =over 4
54  
55 =item *
56  
57 Kip Hampton <kip.hampton@tamarou.com>
58  
59 =item *
60  
61 Chris Prather <chris.prather@tamarou.com>
62  
63 =back
64  
65 =head1 COPYRIGHT AND LICENSE
66  
67 This software is copyright (c) 2011 by Tamarou, LLC.
68  
69 This is free software; you can redistribute it and/or modify it under
70 the same terms as the Perl 5 programming language system itself.
71  
72 =cut
73  
74  
75 __END__
« blib/lib/Magpie/SymbolTable.pm ↑ Summary blib/lib/Magpie/Plugin/Resource/Cache.pm »