Condition Coverage

blib/lib/Net/SIP/NATHelper/Base.pm
Criterion Covered Total %
condition 0 68 0.0


and 3 conditions

line !l l&&!r l&&r condition
371 0 0 0 $cseq_data && $cseq_data->{$cseq}
426 0 0 0 $by_cseq && $by_cseq->{$cseq}
440 0 0 0 $gfrom and $gto
482 0 0 0 $data && $data->{$cseq}
483 0 0 0 $data && delete $data->{'sessions'}{$idto}
602 0 0 0 %expired_sg and delete $expired_sg{$data->{'socket_group_from'}}
889 0 0 0 $$rfrom and $peer ne $$rfrom

or 2 conditions

line l !l condition
188 0 0 $args{'unused'} ||= 180
189 0 0 $args{'active'} ||= 30
224 0 0 $callback ||= sub { return shift(); }
496 0 0 $self->{'from'}{$from} || (next)
499 0 0 delete $by_cseq->{$cseq}{'sessions'}{$to} || (next)
547 0 0 $active_pairs{"$idfrom\000$idto"} || 0
0 0 $active_pairs{"$idto\000$idfrom"} || 0
939 0 0 $self->{'sfrom'} && $self->{'sfrom'}{'id'} || 'NO.SFROM'
0 0 $self->{'sto'} && $self->{'sto'}{'id'} || 'NO.STO'
987 0 0 $self->{'nathelper'} || (return)

or 3 conditions

line l !l&&r !l&&!r condition
112 0 0 0 $self->{'calls'}{$callid} ||= $self->create_call($callid)
187 0 0 0 $args{'time'} ||= &gettimeofday()
298 0 0 0 not $port or $addr eq '0.0.0.0'
0 0 0 not $port or $addr eq '0.0.0.0' or $addr eq '::'
385 0 0 0 $cseq_data ||= ($self->{'from'}{$idfrom} = {})
400 0 0 0 $data->{'socket_group_from'} ||= do { DEBUG(10, "new socketgroup with idfrom $idfrom"); return unless 'Net::SIP::NATHelper::SocketGroup'->new($nathelper, $idfrom, $addr, $media) }
406 0 0 0 $data->{'socket_groups_to'}{$idto} ||= do { DEBUG(10, "new socketgroup with idto $idto"); return unless 'Net::SIP::NATHelper::SocketGroup'->new($nathelper, $idto, $addr, $media) }
632 0 0 0 %{$data->{'socket_groups_to'};} or $data->{'socket_group_from'}
882 0 0 0 recv($read_socket, my $buf, 65536, 0) || do { DEBUG(10, "recv data failed: $!"); return }