Branch Coverage

blib/lib/Net/APNs/Extended.pm
Criterion Covered Total %
branch 25 30 83.3


line true false branch
61 2 2 unless defined $device_token and ref $payload eq 'HASH'
68 2 0 $self->_send($data) ? :
73 1 4 unless ref $datum eq 'ARRAY'
78 1 5 unless ref $stuff eq 'ARRAY'
80 1 4 unless defined $device_token and ref $payload eq 'HASH'
87 2 0 $self->_send($data) ? :
93 1 2 unless defined $data
95 1 1 if ($data eq '')
116 1 6 unless ref $payload->{'aps'} eq 'HASH'
119 2 4 if exists $payload->{'aps'}{'badge'}
124 429 422 if (ref $payload->{'aps'}{'alert'} eq 'HASH' and exists $payload->{'aps'}{'alert'}{'body'}) { }
422 0 elsif (exists $payload->{'aps'}{'alert'}) { }
137 1 5 if ($command == 0) { }
5 0 elsif ($command == 1) { }
154 0 851 if (not defined $body or length $body == 0)