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'
127 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
130 2 4 0 $route =~ /^[0-9\.]+$/ and $gateway =~ /^[0-9\.]+$/
0 4 0 $route =~ /^[0-9\.]+$/ and $gateway =~ /^[0-9\.]+$/ and $netmask =~ /^[0-9\.]+$/
154 2 0 2 $route eq '0.0.0.0' and $netmask eq '0.0.0.0'
197 0 0 8 defined $route and defined $gateway
0 1 7 defined $route and defined $gateway and defined $interface
199 1 6 0 $route =~ m[^[0-9a-f:/]+$]i and $gateway =~ m[^[0-9a-f:/]+$]i
222 4 2 0 $route eq '::/0' and $interface ne 'lo'

or 2 conditions

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