Branch Coverage

blib/lib/App/SilverSplash/IPTables.pm
Criterion Covered Total %
branch 0 24 0.0


line true false branch
54 0 0 unless open $fh, '<', $Config->sl_root . "/conf/$file"
56 0 0 unless close $fh
214 0 0 unless $rule =~ /\S/
235 0 0 unless system("sudo $Iptables $cmd") == 0
253 0 0 if (not $iptables_ip) { }
0 0 elsif ($ip ne $iptables_ip) { }
0 0 elsif ($ip eq $iptables_ip) { }
342 0 0 unless $line =~ /^MARK/
344 0 0 if ($ip) = $line =~ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*?MAC\s+$mac/i
348 0 0 unless $ip
395 0 0 if $bytes_in > $Config->sl_down_overage
398 0 0 if $bytes_out > $Config->sl_up_overage