| 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
Condition66%2/3
defined $content and ref $content eq "ARRAY"
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"
| |||||||||||||||||||||||||||||
| 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__ | ||||||||||||||||||||||||||||