Condition Coverage

blib/lib/IPTables/Parse.pm
Criterion Covered Total %
condition 0 230 0.0


and 3 conditions

line !l l&&!r l&&r condition
71 0 0 0 -e $fwc_bin and -x $fwc_bin
0 0 0 -e $ipt_bin and -x $ipt_bin
0 0 0 -e $ipt6_bin and -x $ipt6_bin
84 0 0 0 $self->{'_ipv6'} and $self->{'_iptables'} eq $ipt_bin
85 0 0 0 -e $ipt6_bin and -x $ipt6_bin
258 0 0 0 $self->{'_ipt_rules_file'} and not $file
290 0 0 0 $self->{'_ipt_rules_file'} and not $file
339 0 0 0 $self->{'_ipt_rules_file'} and not $file
377 0 0 0 $found_chain and $line =~ /^\s*Chain\s+/
433 0 0 0 $rnum and $rnum ne $rule_num
453 0 0 0 $self->{'_ipt_bin_name'} eq 'firewall-cmd' and $self->{'_fwd_args'} =~ /\sipv6/
496 0 0 0 $self->{'_ipt_bin_name'} eq 'firewall-cmd' and $self->{'_fwd_args'} =~ /\sipv6/
551 0 0 0 $self->{'_ipt_rules_file'} and not $file
582 0 0 0 $found_chain and $line =~ /^\s*Chain\s+/
599 0 0 0 $self->{'_ipt_bin_name'} eq 'firewall-cmd' and $self->{'_fwd_args'} =~ /ipv6/
609 0 0 0 $policy eq 'ACCEPT' and $line =~ /$drop_re/
618 0 0 0 $p_tmp and $p_tmp =~ /LOG.*\s+prefix\s+ \`\s*(.+?)\s*\'/x
642 0 0 0 %protocols and $found_default_drop
660 0 0 0 $self->{'_ipt_rules_file'} and not $file
701 0 0 0 $line =~ /^\s*Chain\s+(.*?)\s+\(/ and not $line =~ /0\s+references/
711 0 0 0 $self->{'_ipt_bin_name'} eq 'firewall-cmd' and $self->{'_fwd_args'} =~ /\sipv6/
729 0 0 0 $self->{'_ipt_bin_name'} eq 'firewall-cmd' and $self->{'_fwd_args'} =~ /\sipv6/
783 0 0 0 $line =~ /^\s*Chain\s+\Q$start_chain\E\s+\(/ and not $line =~ /0\s+references/
789 0 0 0 $found and $line =~ /^\s*Chain\s/
794 0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP'
0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP' and $new_chain ne 'REJECT'
0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP' and $new_chain ne 'REJECT' and $new_chain ne 'ACCEPT'
0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP' and $new_chain ne 'REJECT' and $new_chain ne 'ACCEPT' and $new_chain ne 'RETURN'
0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP' and $new_chain ne 'REJECT' and $new_chain ne 'ACCEPT' and $new_chain ne 'RETURN' and $new_chain ne 'QUEUE'
0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP' and $new_chain ne 'REJECT' and $new_chain ne 'ACCEPT' and $new_chain ne 'RETURN' and $new_chain ne 'QUEUE' and $new_chain ne 'SNAT'
0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP' and $new_chain ne 'REJECT' and $new_chain ne 'ACCEPT' and $new_chain ne 'RETURN' and $new_chain ne 'QUEUE' and $new_chain ne 'SNAT' and $new_chain ne 'DNAT'
0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP' and $new_chain ne 'REJECT' and $new_chain ne 'ACCEPT' and $new_chain ne 'RETURN' and $new_chain ne 'QUEUE' and $new_chain ne 'SNAT' and $new_chain ne 'DNAT' and $new_chain ne 'MASQUERADE'
0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP' and $new_chain ne 'REJECT' and $new_chain ne 'ACCEPT' and $new_chain ne 'RETURN' and $new_chain ne 'QUEUE' and $new_chain ne 'SNAT' and $new_chain ne 'DNAT' and $new_chain ne 'MASQUERADE' and $new_chain ne 'pkts'
0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP' and $new_chain ne 'REJECT' and $new_chain ne 'ACCEPT' and $new_chain ne 'RETURN' and $new_chain ne 'QUEUE' and $new_chain ne 'SNAT' and $new_chain ne 'DNAT' and $new_chain ne 'MASQUERADE' and $new_chain ne 'pkts' and $new_chain ne 'Chain'
0 0 0 $new_chain ne 'LOG' and $new_chain ne 'DROP' and $new_chain ne 'REJECT' and $new_chain ne 'ACCEPT' and $new_chain ne 'RETURN' and $new_chain ne 'QUEUE' and $new_chain ne 'SNAT' and $new_chain ne 'DNAT' and $new_chain ne 'MASQUERADE' and $new_chain ne 'pkts' and $new_chain ne 'Chain' and $new_chain ne 'target'

or 2 conditions

line l !l condition
48 0 0 $args{'iptables'} || $args{'ip6tables'} || ''
0 0 $args{'firewall-cmd'} || ''
0 0 $args{'fwd_args'} || '--direct --passthrough ipv4'
0 0 $args{'use_ipv6'} || 0
0 0 $args{'ipt_alarm'} || 30
0 0 $args{'debug'} || 0
0 0 $args{'verbose'} || 0
0 0 $args{'ipt_rules_file'} || ''
0 0 $args{'ipt_exec_style'} || 'waitpid'
0 0 $args{'ipt_exec_sleep'} || 0
0 0 $args{'sigchld_handler'} || \&IPTables::Parse::REAPER
0 0 $args{'skip_ipt_exec_check'} || 0
253 0 0 shift() || ''
286 0 0 shift() || ''
327 0 0 shift() || ''
471 0 0 $7 || ''
509 0 0 $5 || ''
547 0 0 shift() || ''
653 0 0 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
48 0 0 0 $args{'iptout'} || '/tmp/ipt.out' . $$
0 0 0 $args{'ipterr'} || '/tmp/ipt.err' . $$
52 0 0 0 $self->{'_firewall_cmd'} or $self->{'_iptables'}
252 0 0 0 shift() || croak('[*] Specify a table, e.g. "nat"')
284 0 0 0 shift() || croak('[*] Specify a table, e.g. "nat"')
285 0 0 0 shift() || croak('[*] Specify a chain, e.g. "OUTPUT"')
325 0 0 0 shift() || croak('[*] Specify a table, e.g. "nat"')
326 0 0 0 shift() || croak('[*] Specify a chain, e.g. "OUTPUT"')
453 0 0 0 $self->{'_ipt_bin_name'} eq 'ip6tables' or $self->{'_ipt_bin_name'} eq 'firewall-cmd' and $self->{'_fwd_args'} =~ /\sipv6/
496 0 0 0 $self->{'_ipt_bin_name'} eq 'ip6tables' or $self->{'_ipt_bin_name'} eq 'firewall-cmd' and $self->{'_fwd_args'} =~ /\sipv6/
529 0 0 0 $rule_hr->{'protocol'} eq 'tcp' or $rule_hr->{'protocol'} eq 'udp'
545 0 0 0 shift() || croak('[*] Specify a table, e.g. "nat"')
546 0 0 0 shift() || croak('[*] Specify a chain, e.g. "OUTPUT"')
599 0 0 0 $self->{'_ipt_bin_name'} eq 'ip6tables' or $self->{'_ipt_bin_name'} eq 'firewall-cmd' and $self->{'_fwd_args'} =~ /ipv6/
651 0 0 0 shift() || croak('[*] Specify a table, e.g. "nat"')
652 0 0 0 shift() || croak('[*] Specify a chain, e.g. "OUTPUT"')
711 0 0 0 $self->{'_ipt_bin_name'} eq 'ip6tables' or $self->{'_ipt_bin_name'} eq 'firewall-cmd' and $self->{'_fwd_args'} =~ /\sipv6/
729 0 0 0 $self->{'_ipt_bin_name'} eq 'ip6tables' or $self->{'_ipt_bin_name'} eq 'firewall-cmd' and $self->{'_fwd_args'} =~ /\sipv6/
816 0 0 0 shift() || croak('[*] Must specify an ' . "$self->{'_ipt_bin_name'} command to run.")
827 0 0 0 $cmd =~ /^\s*iptables/ or $cmd =~ m[^\S+/iptables]
0 0 0 $cmd =~ /^\s*iptables/ or $cmd =~ m[^\S+/iptables] or $cmd =~ /^\s*ip6tables/
0 0 0 $cmd =~ /^\s*iptables/ or $cmd =~ m[^\S+/iptables] or $cmd =~ /^\s*ip6tables/ or $cmd =~ m[^\S+/ip6tables]
0 0 0 $cmd =~ /^\s*iptables/ or $cmd =~ m[^\S+/iptables] or $cmd =~ /^\s*ip6tables/ or $cmd =~ m[^\S+/ip6tables] or $cmd =~ /^\s*firewall-cmd/
0 0 0 $cmd =~ /^\s*iptables/ or $cmd =~ m[^\S+/iptables] or $cmd =~ /^\s*ip6tables/ or $cmd =~ m[^\S+/ip6tables] or $cmd =~ /^\s*firewall-cmd/ or $cmd =~ m[^\S+/firewall-cmd]
845 0 0 0 $debug or $verbose
855 0 0 0 $debug or $verbose
875 0 0 0 $debug or $verbose
931 0 0 0 $debug or $verbose
952 0 0 0 $debug or $verbose