blib/lib/WWW/FCM/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
« blib/lib/WWW/FCM/HTTP.pm ↑ Summary blib/lib/WWW/FCM/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 sub new {
7 6 ▶ my ($class, $result) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8 6 bless $result, $class;
9 }
10  
11 sub is_success {
12 6 ▶ shift->error ? 0 : 1;
Subroutine is_success: called CC=2 SCAR=6.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
(shift())->error ? : 1 5 6
13 }
14  
15 sub has_canonical_id {
16 6 ▶ shift->registration_id ? 1 : 0;
Subroutine has_canonical_id: called CC=2 SCAR=6.9
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
(shift())->registration_id ? : 1 5 6
17 }
18  
19 sub message_id {
20 6 ▶ shift->{message_id};
Subroutine message_id: called CC=1 SCAR=0.0
Pod undocumented
21 }
22  
23 sub error {
24 12 ▶ shift->{error};
Subroutine error: called CC=1 SCAR=0.0
Pod undocumented
25 }
26  
27 sub registration_id {
28 12 ▶ shift->{registration_id};
Subroutine registration_id: called CC=1 SCAR=0.0
Pod undocumented
29 }
30  
31 sub sent_reg_id {
32 6 ▶ shift->{_sent_reg_id};
Subroutine sent_reg_id: called CC=1 SCAR=0.0
Pod undocumented
33 }
34  
35 3 1;
« blib/lib/WWW/FCM/HTTP.pm ↑ Summary blib/lib/WWW/FCM/HTTP/Response/ResultSet.pm »