Switch/Handler.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Switch.pm ↑ Summary Switch/HandlerDeclinedResponse.pm »
1 package HTTP::Response::Switch::Handler;
2 {
3 3 $HTTP::Response::Switch::Handler::VERSION = '1.1.1';
4 }
5 # ABSTRACT: handle one specific type of HTTP::Response
6  
7  
8 3 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use HTTP::Response::Switch::HandlerDeclinedResponse ();
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13 3 requires 'handle';
14  
15  
16 3 has 'response' => (
17 is => 'ro',
18 isa => 'HTTP::Response',
19 required => 1,
20 );
21  
22  
23 5 ▶sub decline {
Subroutine decline: called CC=1 SCAR=0.0
Pod documented
24 5 HTTP::Response::Switch::HandlerDeclinedResponse->throw;
25 }
26  
27  
28 3 1;
29  
30 __END__
« Switch.pm ↑ Summary Switch/HandlerDeclinedResponse.pm »