Branch Coverage

blib/lib/AnyEvent/APNS.pm
Criterion Covered Total %
branch 22 34 64.7


line true false branch
102 0 3 defined $expiry ? :
116 0 3 if ($$payload{'aps'}{'badge'} and looks_like_number($$payload{'aps'}{'badge'}))
122 2 1 if ((my $exceeded = &bytes::length($json) - 256) > 0)
123 1 1 if (ref $$payload{'aps'}{'alert'} eq 'HASH') { }
147 0 2 if $start_length <= 0
154 2 4 if $trimmed
163 0 5 if ($self->connected and $self->handler)
168 0 5 $self->sandbox ? :
173 5 0 if ($self->is_debug)
178 0 5 unless my($fh) = @_
182 2 3 if (ref $self->certificate) { }
189 2 3 if (ref $self->private_key) { }
203 0 5 !$self->is_debug ? :
210 1 4 if ($self->on_eof)
218 0 5 if ($self->on_error_response) { }
243 0 0 if ($command != 8)
262 0 3 if ($next_identifier >= 4294967296)