Branch Coverage

blib/lib/Net/RTP.pm
Criterion Covered Total %
branch 12 40 30.0


line true false branch
31 2 2 unless ($@)
37 0 2 unless (defined $SUPER_CLASS)
45 2 0 unless $@
59 1 1 unless @_
73 2 0 if (defined $result)
76 0 2 if (_is_multicast_ip($group))
77 0 0 if ($self->superclass =~ /Multicast/) { }
79 0 0 unless $self->mcast_add($group)
94 0 2 unless defined $group
97 2 0 if ($group =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/) { }
0 0 elsif ($group =~ /^ff[0-9a-f]{2}\:/i) { }
98 0 2 if $1 >= 224 and $1 <= 239
120 0 0 unless defined $size
125 0 0 if (defined $data and $data ne '')
131 0 0 if ($sockaddr_in ne '' and defined $packet)
133 0 0 if ($self->sockdomain == &AF_INET) { }
0 0 elsif ($Net::RTP::HAVE_SOCKET6) { }
140 0 0 if ($self->sockdomain == &AF_INET6)
149 0 0 unless (defined $$packet{'source_ip'})
165 0 1 if (not defined $packet or ref $packet ne 'Net::RTP::Packet')