Branch Coverage

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


line true false branch
58 0 16 if (my $sub = UNIVERSAL::can($app, 'receive')) { }
105 0 0 unless defined $expires
151 0 109 if delete $args{'call-id'}
153 35 74 if (not UNIVERSAL::isa($ctx, 'Net::SIP::Endpoint::Context')) { }
161 69 40 if $callback
190 0 6 $request ? :
0 6 unless my($pkt) = $ctx->find_outstanding_requests($request ? ('request', $request) : ('method', 'INVITE'))
231 86 0 if ref $id
255 139 54 $packet->is_response ? :
302 19 35 unless ($ctx)
303 0 19 if ($method eq 'BYE' or $method eq 'CANCEL') { }
3 16 elsif ($method eq 'ACK') { }
337 16 35 if ($method eq 'ACK')
357 65 0 if $ctx