EveCentral/Request.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond 66.6% 2 / 3 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 94.1% 32 / 34 CC 3 SCAR 5.6
CC
3
Cov
96%
http_request
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« EveCentral/Request/History.pm ↑ Summary EveCentral.pm »
1 package Games::EveOnline::EveCentral::Request;
2 {
3 20 $Games::EveOnline::EveCentral::Request::VERSION = '0.001';
4 }
5  
6  
7 # ABSTRACT: Base class for the Request::* classes.
8  
9  
10 20 ▶use Moo 1.003001;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 20 ▶use MooX::Types::MooseLike 0.25;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 20 ▶use MooX::StrictConstructor 0.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 20 ▶use 5.012;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 20 ▶use Games::EveOnline::EveCentral::HTTPRequest;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18  
19  
20 13 ▶sub http_request {
Subroutine http_request: called CC=3 SCAR=11.0
Pod documented
21 13 my ($self, $path, $content) = @_;
22 13 ▶ my $method = (defined $content && ref $content eq 'ARRAY')? 'POST' : 'GET';
Branch: 1 branch
BranchTrueFalseTotal
defined $content && ref $content eq 'ARRAY' ? : 2 11 13
Condition66%2/3
defined $content and ref $content eq "ARRAY"
!ll&&!rl&&r
1102
MC/DC50%1/2
defined $content and ref $content eq "ARRAY"
defined $content ref $content eq "ARRAY"
Truth table66%2/3
A and B
A= defined $contentB= ref $content eq "ARRAY"
ABresult
0X0
100
111
23  
24 13 return Games::EveOnline::EveCentral::HTTPRequest->new(
25 method => $method,
26 path => $path,
27 content => $content
28 )->http_request;
29 }
30  
31  
32  
33 20 1; # End of Games::EveOnline::EveCentral::Request
34  
35 __END__
« EveCentral/Request/History.pm ↑ Summary EveCentral.pm »