blib/lib/Magpie/Resource/Abstract.pm

filter: Statementstmt 88.0% 22 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 3 totaltotal 79.4% 27 / 34 CC 1 SCAR 1.5
CC
1
Cov
88%
DELETE
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Magpie/Transformer.pm ↑ Summary blib/lib/Magpie/Transformer/Middleware.pm »
1 package Magpie::Resource::Abstract;
2 48 $Magpie::Resource::Abstract::VERSION = '1.163200';
3 # ABSTRACT: INCOMPLETE - Default Resource class.
4  
5 48 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 48 extends 'Magpie::Resource';
7 48 ▶use Magpie::Constants;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 106 ▶sub GET {
Subroutine GET: called CC=1 SCAR=0.0
Pod undocumented
10 106 my $self = shift;
11 106 my $ctxt = shift;
12 106 $self->parent_handler->resource($self);
13 106 $self->data( $self->plack_response->body );
14 106 return OK;
15 }
16  
17 3 ▶sub POST {
Subroutine POST: called CC=1 SCAR=0.0
Pod undocumented
18 3 my $self = shift;
19 3 my $ctxt = shift;
20 3 $self->parent_handler->resource($self);
21 3 $self->data( $self->plack_response->body );
22 3 return OK;
23 }
24  
25 0 ▶sub DELETE {
Subroutine DELETE: not called CC=1 SCAR=6.9
26 0 my $self = shift;
27 0 $self->parent_handler->resource($self);
28 0 return OK;
29 };
30  
31 1 ▶sub PUT {
Subroutine PUT: called CC=1 SCAR=0.0
Pod undocumented
32 1 my $self = shift;
33 1 $self->parent_handler->resource($self);
34 1 return OK;
35 };
36 48 1;
37  
38 __END__
« blib/lib/Magpie/Transformer.pm ↑ Summary blib/lib/Magpie/Transformer/Middleware.pm »