blib/lib/WWW/Google/Cloud/Messaging/Response/Result.pm

filter: Statementstmt 46.6% 7 / 15 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 22.2% 2 / 9 Podpod 100% 7 / 7 totaltotal 45.7% 16 / 35 CC 3 SCAR 11.9
CC
3
Cov
37%
is_success
6.0
has_canonical_id
6.0
new
2.0
CRAP 3.3
« Build ↑ Summary blib/lib/WWW/Google/Cloud/Messaging/Response/ResultSet.pm »
1 package WWW::Google::Cloud::Messaging::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 0 ▶ my ($class, $result) = @_;
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
8 0 bless $result, $class;
9 }
10  
11 sub is_success {
12 0 ▶ shift->error ? 0 : 1;
Subroutine is_success: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
(shift())->error ? : 0 0 0
13 }
14  
15 sub has_canonical_id {
16 0 ▶ shift->registration_id ? 1 : 0;
Subroutine has_canonical_id: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
(shift())->registration_id ? : 0 0 0
17 }
18  
19 sub message_id {
20 0 ▶ shift->{message_id};
Subroutine message_id: not called CC=1 SCAR=6.9
Pod documented
21 }
22  
23 sub error {
24 0 ▶ shift->{error};
Subroutine error: not called CC=1 SCAR=6.9
Pod documented
25 }
26  
27 sub registration_id {
28 0 ▶ shift->{registration_id};
Subroutine registration_id: not called CC=1 SCAR=6.9
Pod documented
29 }
30  
31 sub target_reg_id {
32 0 ▶ shift->{_reg_id};
Subroutine target_reg_id: not called CC=1 SCAR=6.9
Pod documented
33 }
34  
35 3 1;
36 __END__
« Build ↑ Summary blib/lib/WWW/Google/Cloud/Messaging/Response/ResultSet.pm »