Branch Coverage

lib/Rex/Resource/firewall/Provider/iptables.pm
Criterion Covered Total %
branch 0 74 0.0


line true false branch
37 0 0 if ($rule_config->{'source'} and not $rule_config->{'source'} =~ m[/(\d+)$]u and $self->_version->[0] >= 1 and $self->_version->[1] >= 4)
46 0 0 if defined $rule_config->{'table'}
48 0 0 if defined $rule_config->{'chain'}
50 0 0 if defined $rule_config->{'proto'}
52 0 0 if defined $rule_config->{'proto'}
54 0 0 if defined $rule_config->{'source'}
56 0 0 if defined $rule_config->{'destination'}
58 0 0 if defined $rule_config->{'sport'}
60 0 0 if defined $rule_config->{'dport'}
62 0 0 if defined $rule_config->{'tcp_flags'}
64 0 0 if defined $rule_config->{'iniface'}
66 0 0 if defined $rule_config->{'outiface'}
68 0 0 if defined $rule_config->{'reject_with'}
70 0 0 if defined $rule_config->{'log_level'}
72 0 0 if defined $rule_config->{'log_prefix'}
74 0 0 if defined $rule_config->{'state'}
76 0 0 if defined $rule_config->{'action'}
78 0 0 unless (Rex::Commands::Iptables::_rule_exists($rule_config->{'ip_version'}, @iptables_rule))
103 0 0 if ($rule_config->{'source'} and not $rule_config->{'source'} =~ m[/(\d+)$]u and $self->_version->[0] >= 1 and $self->_version->[1] >= 4)
112 0 0 if defined $rule_config->{'table'}
114 0 0 if defined $rule_config->{'chain'}
116 0 0 if defined $rule_config->{'source'}
118 0 0 if defined $rule_config->{'proto'}
120 0 0 if defined $rule_config->{'proto'}
122 0 0 if defined $rule_config->{'destination'}
124 0 0 if defined $rule_config->{'sport'}
126 0 0 if defined $rule_config->{'dport'}
128 0 0 if defined $rule_config->{'tcp_flags'}
130 0 0 if defined $rule_config->{'iniface'}
132 0 0 if defined $rule_config->{'outiface'}
134 0 0 if defined $rule_config->{'reject_with'}
136 0 0 if defined $rule_config->{'log_level'}
138 0 0 if defined $rule_config->{'log_prefix'}
140 0 0 if defined $rule_config->{'state'}
142 0 0 if defined $rule_config->{'action'}
144 0 0 if (Rex::Commands::Iptables::_rule_exists($rule_config->{'ip_version'}, @iptables_rule))
160 0 0 if (exists $self->{'__version__'})