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 109 0 0 $rsp40x and $self->{'auth'}
0 0 0 $rsp40x and $self->{'auth'} and $request->authorize($rsp40x, $self->{'auth'})
292 46 12 143 not $tr and $t->{'tid'} eq $tid
58 6 137 not $tr and $t->{'tid'} eq $tid and $method eq $t->{'request'}->method
324 34 94 9 $method eq 'INVITE' and $code >= 300
347 0 0 3 $auth and $r->authorize($response, $auth)
377 35 0 0 $self->{'method'} ne 'INVITE' and $code >= 200 && $code < 300 || $code >= 400
393 1 27 0 not $self->{'remote_contact'} and my(@route) = $response->get_header('record-route')
479 18 33 0 defined $self->{'_cseq_incoming'} and $cseq_num < $self->{'_cseq_incoming'}
503 0 19 0 defined $self->{'_cseq_incoming'} and $cseq_num != $self->{'_cseq_incoming'}
510 18 14 0 defined $self->{'_cseq_incoming'} and $cseq_num == $self->{'_cseq_incoming'}
526 33 0 18 $ctx_is_new and $method eq 'INVITE'
33 18 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 51 $self->{'cseq'} ||= 0
446 0 0 $self->{'route'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
67 16 35 0 $self->{'callid'} ||= md5_hex(time, rand 4294967296)
171 0 63 0 delete $args{'cseq'} || ++$self->{'cseq'}
179 28 35 0 $self->{'remote_contact'} || (sip_hdrval2parts('to', $to))[0]
344 3 0 68 $code == 401 or $code == 407
367 6 27 35 $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 16 3 32 $method eq 'ACK' or $method eq 'CANCEL'
518 51 0 0 $self->{'_callback'} || do { DEBUG(50, 'no callback at context!'); return }
544 13 3 35 $method eq 'BYE' or $method eq 'CANCEL'