HTTP/Response/Result.pm

filter: Statementstmt 100% 15 / 15 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 0.0% 0 / 7 totaltotal 80.0% 28 / 35 CC 3 SCAR 3.1
CC
3
Cov
100%
is_success
2.0
has_canonical_id
2.0
BEGIN
1.0
CRAP 1.4
« HTTP/Response.pm ↑ Summary HTTP/Response/ResultSet.pm »
1 package WWW::FCM::HTTP::Response::Result;
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 6 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
7 6 my ($class, $result) = @_;
8 6 bless $result, $class;
9 }
10  
11 6 ▶sub is_success {
Subroutine is_success: called CC=2 SCAR=6.9
Pod undocumented
12 6 ▶ shift->error ? 0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
(shift())->error ? : 1 5 6
13 }
14  
15 6 ▶sub has_canonical_id {
Subroutine has_canonical_id: called CC=2 SCAR=6.9
Pod undocumented
16 6 ▶ shift->registration_id ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
(shift())->registration_id ? : 1 5 6
17 }
18  
19 6 ▶sub message_id {
Subroutine message_id: called CC=1 SCAR=0.0
Pod undocumented
20 6 shift->{message_id};
21 }
22  
23 12 ▶sub error {
Subroutine error: called CC=1 SCAR=0.0
Pod undocumented
24 12 shift->{error};
25 }
26  
27 12 ▶sub registration_id {
Subroutine registration_id: called CC=1 SCAR=0.0
Pod undocumented
28 12 shift->{registration_id};
29 }
30  
31 6 ▶sub sent_reg_id {
Subroutine sent_reg_id: called CC=1 SCAR=0.0
Pod undocumented
32 6 shift->{_sent_reg_id};
33 }
34  
35 3 1;
« HTTP/Response.pm ↑ Summary HTTP/Response/ResultSet.pm »