Condition Coverage

blib/lib/Net/APNs/Extended.pm
Criterion Covered Total %
condition 22 27 81.4


and 3 conditions

line !l l&&!r l&&r condition
61 1 1 2 defined $device_token and ref $payload eq 'HASH'
80 1 0 4 defined $device_token and ref $payload eq 'HASH'
124 422 0 429 ref $payload->{'aps'}{'alert'} eq 'HASH' and exists $payload->{'aps'}{'alert'}{'body'}

or 2 conditions

line l !l condition
64 1 1 $extra ||= {}
65 1 1 $extra->{'identifier'} ||= 0
66 1 1 $extra->{'expiry'} ||= 0
67 2 0 $self->_create_send_data($device_token, $payload, $extra) || (return 0)
82 2 2 $extra ||= {}
84 2 2 $extra->{'expiry'} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
83 2 1 1 $extra->{'identifier'} ||= $i++
154 0 0 851 not defined $body or length $body == 0