blib/lib/Magpie/Dispatcher/RequestMethod.pm

filter: Statementstmt 100% 15 / 15 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 91.3% 21 / 23 CC 2 SCAR 3.4
CC
2
Cov
100%
load_queue
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Magpie/Transformer/TT2.pm ↑ Summary blib/lib/Magpie/Transformer.pm »
1 package Magpie::Dispatcher::RequestMethod;
2 48 $Magpie::Dispatcher::RequestMethod::VERSION = '1.141660';
3 #ABSTRACT: INCOMPLETE - Placeholder for future Dispatcher Role
4 48 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 48 ▶use Magpie::Constants;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 54 ▶sub events { (qw(method_not_allowed), HTTP_METHODS) };
Subroutine events: called CC=1 SCAR=0.0
Pod undocumented
7  
8 sub load_queue {
9 132 ▶ my $self = shift;
Subroutine load_queue: called CC=2 SCAR=6.9
Pod undocumented
10 132 my $method = $self->plack_request->method;
11 132 ▶ if ( scalar grep { $_ eq $method } HTTP_METHODS ) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar grep({$_ eq $method;} &HTTP_METHODS())) 131 1 132
12 131 return $method;
13 }
14 1 return 'method_not_allowed';
15 }
16  
17 48 1;
18  
19  
20  
21 =pod
22  
23 =head1 NAME
24  
25 Magpie::Dispatcher::RequestMethod - INCOMPLETE - Placeholder for future Dispatcher Role
26  
27 =head1 VERSION
28  
29 version 1.141660
30  
31 #SEEALSO: Magpie
32  
33 =head1 AUTHORS
34  
35 =over 4
36  
37 =item *
38  
39 Kip Hampton <kip.hampton@tamarou.com>
40  
41 =item *
42  
43 Chris Prather <chris.prather@tamarou.com>
44  
45 =back
46  
47 =head1 COPYRIGHT AND LICENSE
48  
49 This software is copyright (c) 2011 by Tamarou, LLC.
50  
51 This is free software; you can redistribute it and/or modify it under
52 the same terms as the Perl 5 programming language system itself.
53  
54 =cut
55  
56  
57 __END__
« blib/lib/Magpie/Transformer/TT2.pm ↑ Summary blib/lib/Magpie/Transformer.pm »