APNS.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 96.0% 24 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« APNS/Notification.pm ↑ Summary
1 package Net::APNS;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Net::APNS::Notification;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Sub::Exporter -setup => {
Subroutine BEGIN: called CC=1 SCAR=0.0
6 exports => [ qw/notify/ ],
7 2 };
8 2 our $VERSION = '0.0202';
9  
10 1 ▶sub new { bless {}, $_[0]; }
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
11  
12 1 ▶sub notify {
Subroutine notify: called CC=1 SCAR=0.0
Pod documented
13 1 my ( $self, $args ) = @_;
14 return Net::APNS::Notification->new(
15 cert => $args->{cert},
16 key => $args->{key},
17 passwd => $args->{passwd},
18 1 );
19 }
20  
21 2 1;
22 __END__
« APNS/Notification.pm ↑ Summary