Condition Coverage

blib/lib/Net/SIP/NATHelper/Base.pm
Criterion Covered Total %
condition 0 69 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}
489 0 0 0 $data and not %{$data->{'sessions'};}
618 0 0 0 %expired_sg and delete $expired_sg{$data->{'socket_group_from'}}
905 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(); }
502 0 0 $self->{'from'}{$from} || (next)
562 0 0 $active_pairs{"$idfrom\000$idto"} || 0
0 0 $active_pairs{"$idto\000$idfrom"} || 0
955 0 0 $self->{'sfrom'} && $self->{'sfrom'}{'id'} || 'NO.SFROM'
0 0 $self->{'sto'} && $self->{'sto'}{'id'} || 'NO.STO'
1003 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) }
648 0 0 0 %{$data->{'socket_groups_to'};} or $data->{'socket_group_from'}
898 0 0 0 recv($read_socket, my $buf, 65536, 0) || do { DEBUG(10, "recv data failed: $!"); return }