Branch Coverage

blib/lib/Mojo/APNS.pm
Criterion Covered Total %
branch 4 38 10.5


line true false branch
51 0 3 $ENV{'MOJO_APNS_DEBUG'} ? :
127 0 0 if ($event eq 'feedback' and not $$self{'feedback_id'})
147 0 0 unless $self
193 0 0 ref $_[-1] eq 'CODE' ? :
199 0 0 if (defined(my $sound = delete $args{'sound'}))
200 0 0 if length $sound
203 0 0 if (defined(my $content_available = delete $args{'content_available'}))
204 0 0 if length $content_available
207 0 0 if (%args)
213 0 0 if (length $message > 256)
227 0 0 $type eq 'gateway' ? :
245 0 0 if $error
256 0 0 if $_[1]
264 0 0 unless ($id)
269 0 0 unless delete $$self{'messages'}
274 0 0 unless ($stream = $self->ioloop->stream($id))
285 0 1 unless my $ioloop = $self->ioloop
287 0 1 if (my $id = $$self{'gateway_id'})
290 0 1 if (my $id = $$self{'feedback_id'})