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'})
289 46 12 140 not $tr and $t->{'tid'} eq $tid
58 4 136 not $tr and $t->{'tid'} eq $tid and $method eq $t->{'request'}->method
321 34 93 9 $method eq 'INVITE' and $code >= 300
344 0 0 3 $auth and $r->authorize($response, $auth)
373 37 0 0 $self->{'method'} ne 'INVITE' and $code >= 200 && $code < 300 || $code >= 400
389 3 27 0 not $self->{'remote_contact'} and my(@route) = $response->get_header('record-route')
475 20 37 0 defined $self->{'_cseq_incoming'} and $cseq_num < $self->{'_cseq_incoming'}
499 0 21 0 defined $self->{'_cseq_incoming'} and $cseq_num != $self->{'_cseq_incoming'}
506 20 16 0 defined $self->{'_cseq_incoming'} and $cseq_num == $self->{'_cseq_incoming'}
522 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')
552 0 0 3 $response->cseq =~ /(\d+)/ && "$1 INVITE"

or 2 conditions

line l !l condition
68 0 53 $self->{'cseq'} ||= 0
442 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]
341 3 0 70 $code == 401 or $code == 407
363 6 27 37 $method eq 'CANCEL' or $method eq 'BYE'
373 0 0 0 $code >= 200 && $code < 300 || $code >= 400
378 0 0 7 $code == 300 or $code == 301
497 18 3 36 $method eq 'ACK' or $method eq 'CANCEL'
514 57 0 0 $self->{'_callback'} || do { DEBUG(50, 'no callback at context!'); return }
540 15 3 39 $method eq 'BYE' or $method eq 'CANCEL'