Gears/X/HTTP.pm

filter: Statementstmt 100% 12 / 12 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 20 / 20 CC 2 SCAR 2.9
CC
2
Cov
100%
raise
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Gears/Component.pm ↑ Summary Gears/Router/Location.pm »
1 package Gears::X::HTTP;
2 1 $Gears::X::HTTP::VERSION = '0.105';
3 1 ▶use v5.40;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Mooish::Base -standard;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 extends 'Gears::X';
7  
8 1 has param 'code' => (
9 isa => IntRange [400, 599],
10 );
11  
12 1 ▶sub _raise_exception ($self, $code, $message)
Subroutine _raise_exception: called CC=1 SCAR=0.0
13 {
14 1 $self->new(code => $code, message => $message)->raise;
15 }
16  
17 2 ▶sub raise ($self, @args)
Subroutine raise: called CC=2 SCAR=6.9
Pod documented
18 {
19 2 ▶ $self->_raise_exception(@args)
Branch: 1 branch
BranchTrueFalseTotal
if @args != 0 1 1 2
20 if @args != 0;
21  
22 1 die $self;
23 }
24  
25 1 ▶sub _build_message ($self)
Subroutine _build_message: called CC=1 SCAR=0.0
26 {
27 1 return $self->code . ' - ' . $self->message;
28 }
29  
30 __END__
« Gears/Component.pm ↑ Summary Gears/Router/Location.pm »