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'}
154 35 78 if (not UNIVERSAL::isa($ctx, 'Net::SIP::Endpoint::Context')) { }
162 71 42 if $callback
191 0 6 $request ? :
0 6 unless my($pkt) = $ctx->find_outstanding_requests($request ? ('request', $request) : ('method', 'INVITE'))
232 90 0 if ref $id
256 138 60 $packet->is_response ? :
303 21 39 unless ($ctx)
304 0 21 if ($method eq 'BYE' or $method eq 'CANCEL') { }
3 18 elsif ($method eq 'ACK') { }
338 18 39 if ($method eq 'ACK')
358 70 0 if $ctx