Condition Coverage

blib/lib/Net/Routing/Linux.pm
Criterion Covered Total %
condition 22 37 59.4


and 3 conditions

line !l l&&!r l&&r condition
33 1 0 0 $family ne 'inet4' and $family ne 'inet6'
123 0 0 8 defined $route and defined $gateway
0 2 6 defined $route and defined $gateway and defined $interface
2 0 6 defined $route and defined $gateway and defined $interface and defined $netmask
126 2 4 0 $route =~ /^[0-9\.]+$/ and $gateway =~ /^[0-9\.]+$/
0 4 0 $route =~ /^[0-9\.]+$/ and $gateway =~ /^[0-9\.]+$/ and $netmask =~ /^[0-9\.]+$/
150 2 0 2 $route eq '0.0.0.0' and $netmask eq '0.0.0.0'
193 0 0 8 defined $route and defined $gateway
0 1 7 defined $route and defined $gateway and defined $interface
195 1 6 0 $route =~ m[^[0-9a-f:/]+$]i and $gateway =~ m[^[0-9a-f:/]+$]i
218 4 2 0 $route eq '::/0' and $interface ne 'lo'

or 2 conditions

line l !l condition
61 3 1 $cmd4 ||= [$bin, '-rnA', 'inet']
62 3 1 $cmd6 ||= [$bin, '-rnA', 'inet6']