Condition Coverage

blib/lib/Net/SIP/Endpoint/Context.pm
Criterion Covered Total %
condition 43 76 56.5


and 3 conditions

line !l l&&!r l&&r condition
206 113 0 0 $rsp40x and $self->{'auth'}
0 0 0 $rsp40x and $self->{'auth'} and $request->authorize($rsp40x, $self->{'auth'})
292 46 7 141 not $tr and $t->{'tid'} eq $tid
53 3 138 not $tr and $t->{'tid'} eq $tid and $method eq $t->{'request'}->method
324 34 95 9 $method eq 'INVITE' and $code >= 300
347 0 0 3 $auth and $r->authorize($response, $auth)
377 37 0 0 $self->{'method'} ne 'INVITE' and $code >= 200 && $code < 300 || $code >= 400
393 3 27 0 not $self->{'remote_contact'} and my(@route) = $response->get_header('record-route')
479 20 37 0 defined $self->{'_cseq_incoming'} and $cseq_num < $self->{'_cseq_incoming'}
503 0 21 0 defined $self->{'_cseq_incoming'} and $cseq_num != $self->{'_cseq_incoming'}
510 20 16 0 defined $self->{'_cseq_incoming'} and $cseq_num == $self->{'_cseq_incoming'}
526 37 0 20 $ctx_is_new and $method eq 'INVITE'
37 20 0 $ctx_is_new and $method eq 'INVITE' and my(@route) = $request->get_header('record-route')
556 0 0 3 $response->cseq =~ /(\d+)/ && "$1 INVITE"

or 2 conditions

line l !l condition
68 0 53 $self->{'cseq'} ||= 0
446 0 0 $self->{'route'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
67 18 35 0 $self->{'callid'} ||= md5_hex(time, rand 4294967296)
171 0 65 0 delete $args{'cseq'} || ++$self->{'cseq'}
179 30 35 0 $self->{'remote_contact'} || (sip_hdrval2parts('to', $to))[0]
344 3 0 70 $code == 401 or $code == 407
367 6 27 37 $method eq 'CANCEL' or $method eq 'BYE'
377 0 0 0 $code >= 200 && $code < 300 || $code >= 400
382 0 0 7 $code == 300 or $code == 301
501 18 3 36 $method eq 'ACK' or $method eq 'CANCEL'
518 57 0 0 $self->{'_callback'} || do { DEBUG(50, 'no callback at context!'); return }
544 15 3 39 $method eq 'BYE' or $method eq 'CANCEL'