Branch Coverage

blib/lib/Net/SIP/Endpoint.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
58 0 18 if (my $sub = UNIVERSAL::can($app, 'receive')) { }
105 0 0 unless defined $expires
151 0 113 if delete $args{'call-id'}
153 35 78 if (not UNIVERSAL::isa($ctx, 'Net::SIP::Endpoint::Context')) { }
161 71 42 if $callback
190 0 6 $request ? :
0 6 unless my($pkt) = $ctx->find_outstanding_requests($request ? ('request', $request) : ('method', 'INVITE'))
231 90 0 if ref $id
255 139 60 $packet->is_response ? :
302 21 39 unless ($ctx)
303 0 21 if ($method eq 'BYE' or $method eq 'CANCEL') { }
3 18 elsif ($method eq 'ACK') { }
337 18 39 if ($method eq 'ACK')
357 71 0 if $ctx