blib/lib/Magpie/Error/Simplified.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 3 totaltotal 81.2% 13 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
body
1.0
body_headers
1.0
CRAP 1.0
« blib/lib/Magpie/Transformer/Middleware.pm ↑ Summary blib/lib/Magpie/Machine.pm »
1 package Magpie::Error::Simplified;
2 5 $Magpie::Error::Simplified::VERSION = '1.163200';
3 5 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # A simple role to work around HTTP::Throwable's over-helpfulness
6  
7 6 ▶sub body { shift->reason }
Subroutine body: called CC=1 SCAR=0.0
Pod undocumented
8  
9 5 ▶sub body_headers {
Subroutine body_headers: called CC=1 SCAR=0.0
Pod undocumented
10 5 my ($self, $body) = @_;
11 return [
12 5 'Content-Length' => length $body,
13 ];
14 }
15  
16 1 ▶sub as_string { shift->body }
Subroutine as_string: called CC=1 SCAR=0.0
Pod undocumented
17  
18 5 1;
19  
20 __END__
« blib/lib/Magpie/Transformer/Middleware.pm ↑ Summary blib/lib/Magpie/Machine.pm »