Condition Coverage

blib/lib/Net/SIP/Simple/RTP.pm
Criterion Covered Total %
condition 32 64 50.0


and 2 conditions

line l !l condition
86 0 3 $mdtmf && $mdtmf->[$i] && $args->{'cb_dtmf'} && [$mdtmf->[$i], $args->{'cb_dtmf'}]
171 0 6 $mdtmf && $mdtmf->[$i] && $args->{'cb_dtmf'} && [$mdtmf->[$i], $args->{'cb_dtmf'}]
197 0 6 $mdtmf && $mdtmf->[$i] && $args->{'cb_dtmf'} && [$mdtmf->[$i], $args->{'cb_dtmf'}]

and 3 conditions

line !l l&&!r l&&r condition
64 0 50 1751 $s_sock and $remote
67 1751 0 0 @pkt and $pkt[0] ne ''
184 0 0 14 $addr and my $s_sock = $ssocks->[$i]
249 4427 0 5208 $from && defined $buf
269 5208 0 0 $cc && substr($buf, 0, 4 * $cc, '')
281 5208 0 0 $targs->{'ssrc'} and $targs->{'ssrc'} != $ssrc
285 20 5188 0 defined $targs->{'rseq'} and $seq <= $targs->{'rseq'}
5208 0 0 defined $targs->{'rseq'} and $seq <= $targs->{'rseq'} and $targs->{'rseq'} - $seq < 60000
343 2117 96 1307 @pkt and $pkt[0] ne ''
429 0 3856 1415 $dtmfs and @$dtmfs

or 2 conditions

line l !l condition
45 30 0 $lsocks->[$i] || (next)
86 0 30 $delay || 0
186 12 2 $args->{'cb_rtp_done'} || sub { (shift())->bye; }
197 0 14 $repeat || 1
401 0 2201 $targs->{'rtp_param'}[0] || 0

or 3 conditions

line l !l&&r !l&&!r condition
40 0 30 0 $args->{'media_ssocks'} || $lsocks
144 0 14 0 $args->{'media_ssocks'} || $lsocks
249 4427 0 5208 not $from && defined $buf or $buf eq ''
366 0 0 0 $targs->{'wseq'} ||= int rand 65536
390 0 0 2201 not defined $buf or $buf eq ''
440 1403 84 0 $dtmf->{'sub'} ||= dtmf_generator($dtmf->{'event'}, $duration, %$dtmf)