Condition Coverage

lib/Net/ISP/Balance.pm
Criterion Covered Total %
condition 34 79 43.0


and 3 conditions

line !l l&&!r l&&r condition
202 0 0 2 $conf and -r $conf
466 4 2 4 $d and $d =~ /failover/i
748 0 0 1 $network and $device
1070 0 0 0 -f $script and -x _
1455 10 0 15 $service and $device
10 0 15 $service and $device and $role
1556 0 2 0 ref $self and exists $self->{'_interface_info_cache'}
2015 0 0 6 defined $mark and defined $table

or 2 conditions

line l !l condition
479 0 0 $self->{'dev_lookup_retries'} || 10
493 0 0 $self->{'dev_lookup_retry_delay'} || 1
569 0 12 $seen_rule{$_}++ or $self->sh('iptables', $_)
672 11 2 $self->{'firewall_op'} || 'append'
1465 6 9 $ping_dest || 'www.google.ca'
1466 6 9 $weight || 1
1585 14 4 $bits ||= 32
2268 0 0 $signal ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
201 2 0 0 $conf ||= $class->default_conf_file
215 0 2 0 ref $class || $class
846 3 0 0 $dhost ||= $host
847 2 1 0 $dport ||= $port
889 0 0 0 $dhost ||= $host
890 0 0 0 $dport ||= $port
1527 1 12 0 $s->{$svc}{'gateway'} || $info->{'gw'}
1603 0 6 0 $vnet{$dev}{$net} || $dev
1616 2 14 0 $nets{$dev} || ($peer ? "$peer/32" : undef) || "$block"
1617 0 12 0 $gws{$dev} || $peer || $self->_dhcp_gateway($dev) || $block->nth(1)
1638 2 0 0 eval { do { $self->{'dummy_data'}{'ip_addr_show'} } } || `ip addr show`
1643 2 0 0 eval { do { $self->{'dummy_data'}{'ip_route_show'} } } || `ip route show all`
1905 0 0 5 $f =~ /(~|\.bak)$/ or $f =~ /^#/