Condition Coverage

blib/lib/Net/SIP/Simple/RTP.pm
Criterion Covered Total %
condition 33 61 54.1


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 1853 $s_sock and $remote
67 1853 0 0 @pkt and $pkt[0] ne ''
184 0 0 16 $addr and my $s_sock = $ssocks->[$i]
249 4261 0 5362 $from && defined $buf
269 5362 0 0 $cc && substr($buf, 0, 4 * $cc, '')
281 23 5339 0 $targs->{'rseq'} and $seq <= $targs->{'rseq'}
5362 0 0 $targs->{'rseq'} and $seq <= $targs->{'rseq'} and $targs->{'rseq'} - $seq < 60000
339 2216 96 1310 @pkt and $pkt[0] ne ''
425 0 4057 1418 $dtmfs and @$dtmfs

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
40 0 32 0 $args->{'media_ssocks'} || $lsocks
144 0 16 0 $args->{'media_ssocks'} || $lsocks
249 4261 0 5362 not $from && defined $buf or $buf eq ''
362 0 0 0 $targs->{'wseq'} ||= int rand 65536
386 0 0 2300 not defined $buf or $buf eq ''
436 1406 84 0 $dtmf->{'sub'} ||= dtmf_generator($dtmf->{'event'}, $duration, %$dtmf)