Condition Coverage

blib/lib/IO/Socket/Multicast6.pm
Criterion Covered Total %
condition 16 34 47.0


and 3 conditions

line !l l&&!r l&&r condition
218 1 1 1 not defined $port and $addr =~ /^($IPv4):(\d+)$/
227 1 1 1 not defined $port and $addr =~ /^\[($IPv6)\]:(\d+)$/

or 2 conditions

line l !l condition
33 1 10 $$arg{'Proto'} ||= 'udp'
34 2 9 $$arg{'ReuseAddr'} ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
41 2 0 0 shift() || croak('usage: $sock->mcast_add($mcast_addr [,$interface])')
68 0 0 0 shift() || croak('usage: $sock->mcast_add_source($mcast_addr, $source_addr [,$interface])')
69 0 0 0 shift() || croak('usage: $sock->mcast_add_source($mcast_addr, $source_addr [,$interface])')
94 2 0 0 shift() || croak('usage: $sock->mcast_drop($mcast_addr [,$interface])')
223 0 0 3 not defined $addr or length $addr == 0
232 0 0 3 not defined $addr or length $addr == 0
249 2 0 0 shift() || croak('usage: $sock->mcast_send($data [,$address[,$port]])')
251 2 0 0 $sock->mcast_dest || croak('no destination specified with mcast_send() or mcast_dest()')