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.5
CC
3
Cov
88%
__ANON__
3.2
__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 50 $Magpie::Constants::VERSION = '1.163200';
3 # ABSTRACT: Common Handler Control Constants;
4  
5 50 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 50 OK => 100,
7 DECLINED => 199,
8 DONE => 299,
9 OUTPUT => 300,
10 SERVER_ERROR => 500,
11 HANDLER_ERROR => 501,
12 QUEUE_ERROR => 502,
13 50 };
14  
15 50 ▶use Sub::Exporter -setup => {
Subroutine BEGIN: called CC=1 SCAR=0.0
16 exports => [
17 qw(OK DECLINED DONE OUTPUT SERVER_ERROR HANDLER_ERROR QUEUE_ERROR),
18 505 ▶ HTTP_METHODS => sub {
Subroutine __ANON__: called CC=1 SCAR=0.1
19 505 my ( $class, $name, $arg, $col ) = @_;
20  
21 188 ▶ sub () {
Subroutine __ANON__: called CC=3 SCAR=11.7
22 qw(GET POST PUT DELETE HEAD OPTIONS TRACE PATCH CONNECT),
23 188 ▶ @{ $arg{extra_http_methods} // [] },
Condition50%1/2
$arg{"extra_http_methods"} // []
l!l
0188
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 188 ▶ @{ $col{extra_http_methods} // [] };
Condition50%1/2
$col{"extra_http_methods"} // []
l!l
0188
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 505 };
26 },
27 50 ],
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 50 };
35  
36 # SEEALSO: Magpie, Magpie::Component, Magpie::Event
37  
38 50 1;
39  
40 __END__
« blib/lib/Magpie/SymbolTable.pm ↑ Summary blib/lib/Magpie/Plugin/Resource/Cache.pm »