Branch Coverage

blib/lib/Net/APNs/Extended.pm
Criterion Covered Total %
branch 22 28 78.5


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 0 2 unless defined $data
111 1 6 unless ref $$payload{'aps'} eq 'HASH'
114 2 4 if exists $$payload{'aps'}{'badge'}
119 429 422 if (ref $$payload{'aps'}{'alert'} eq 'HASH' and exists $$payload{'aps'}{'alert'}{'body'}) { }
422 0 elsif (exists $$payload{'aps'}{'alert'}) { }
132 1 5 if ($command == 0) { }
5 0 elsif ($command == 1) { }
149 0 851 if (not defined $body or length $body == 0)