Branch Coverage

blib/lib/Net/Frame/Layer.pm
Criterion Covered Total %
branch 20 56 35.7


line true false branch
68 0 8 $@ ? :
77 0 11 $@ ? :
83 0 0 $self->payload ? :
111 11 0 unless ($@)
119 0 11 unless ($inetp_found)
124 0 0 unless ($@)
132 11 0 if ($inetp_found)
138 0 11 if ($@) { }
162 11 0 unless ($@)
172 0 12 if ($err)
176 12 0 if (@res > 0) { }
181 0 12 if ($err)
198 0 11 unless ($getaddr_found)
203 0 0 unless ($@)
210 0 0 if (@res >= 5)
225 11 0 if ($getaddr_found)
231 0 11 if ($@) { }
256 0 1 unless (defined $name)
261 0 1 if ($name =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)
266 1 0 @addrs ? :
277 0 0 unless (defined $name)
282 0 0 if ($name =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)
287 0 0 @addrs ? :
298 0 1 unless (defined $name)
303 0 1 if (Net::IPv6Addr::is_ipv6($name))
308 0 1 unless (defined $ipv6)
325 0 2 if $highPort < 1025
339 0 0 if length($phpkt) % 2