| 1 | package WWW::Google::C2DM::Response; | ||||||||||||
| 2 | |||||||||||||
| 3 | 3 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 3 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | |||||||||||||
| 6 | 0 | ▶ | sub new { | ||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 7 | 0 | my ($class, %args) = @_; | |||||||||||
| 8 | 0 | ▶ | $args{params} ||= {}; | ||||||||||
|
Condition0%0/2
$args{"params"} ||= {}
MC/DC0%0/1
$args{"params"} ||= {}
$args{"params"}
Truth table0%0/2
A
A= $args{"params"}
| |||||||||||||
| 9 | 0 | bless { %args }, $class; | |||||||||||
| 10 | } | ||||||||||||
| 11 | |||||||||||||
| 12 | 0 | ▶ | sub is_success { | ||||||||||
|
Subroutine
is_success: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 13 | 0 | ▶ | $_[0]->{is_success} ? 1 : 0; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | 0 | ▶ | sub has_error { | ||||||||||
|
Subroutine
has_error: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 17 | 0 | !$_[0]->is_success; | |||||||||||
| 18 | } | ||||||||||||
| 19 | 3 | *is_error = *has_error; | |||||||||||
| 20 | |||||||||||||
| 21 | 0 | ▶ | sub code { | ||||||||||
|
Subroutine
code: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 22 | 0 | $_[0]->http_response->code; | |||||||||||
| 23 | } | ||||||||||||
| 24 | |||||||||||||
| 25 | 0 | ▶ | sub message { | ||||||||||
|
Subroutine
message: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 26 | 0 | $_[0]->http_response->message; | |||||||||||
| 27 | } | ||||||||||||
| 28 | |||||||||||||
| 29 | 0 | ▶ | sub error_code { | ||||||||||
|
Subroutine
error_code: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 30 | 0 | ▶ | $_[0]->{error_code} || ''; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 31 | } | ||||||||||||
| 32 | |||||||||||||
| 33 | 0 | ▶ | sub status_line { | ||||||||||
|
Subroutine
status_line: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 34 | 0 | $_[0]->http_response->status_line; | |||||||||||
| 35 | } | ||||||||||||
| 36 | |||||||||||||
| 37 | 0 | ▶ | sub http_response { | ||||||||||
|
Subroutine
http_response: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 38 | 0 | $_[0]->{http_response}; | |||||||||||
| 39 | } | ||||||||||||
| 40 | 3 | *res = *http_response; | |||||||||||
| 41 | |||||||||||||
| 42 | 0 | ▶ | sub params { | ||||||||||
|
Subroutine
params: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 43 | 0 | $_[0]->{params}; | |||||||||||
| 44 | } | ||||||||||||
| 45 | |||||||||||||
| 46 | 0 | ▶ | sub id { | ||||||||||
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||
| 47 | 0 | $_[0]->params->{id}; | |||||||||||
| 48 | } | ||||||||||||
| 49 | |||||||||||||
| 50 | 3 | 1; | |||||||||||
| 51 | __END__ | ||||||||||||