Condition Coverage

blib/lib/IPTables/Rule.pm
Criterion Covered Total %
condition 25 42 59.5


and 3 conditions

line !l l&&!r l&&r condition
152 3 5 0 $self->{'ipver'} eq '4' and not $arg =~ /\A(filter|nat|mangle|raw)\z/i
153 5 3 0 $self->{'ipver'} eq '6' and not $arg =~ /\A(filter|mangle|raw)\z/i
197 9 1 1 $self->{'ipver'} eq '6' and $arg eq 'icmp'
201 1 8 1 $self->{'ipver'} eq '4' and $arg eq 'icmpv6'
433 6 0 0 defined $self->{'spt'} and not $self->{'proto'} =~ /\A(tcp|udp)\z/i
437 5 1 0 defined $self->{'dpt'} and not $self->{'proto'} =~ /\A(tcp|udp)\z/i
442 6 0 0 defined $self->{'logprefix'} and not $self->{'target'} =~ /\Alog\z/i
483 4 0 0 defined $self->{'icmp_type'} and not $self->{'proto'} =~ /\Aicmp(v6)?\z/i

or 3 conditions

line l !l&&r !l&&!r condition
240 6 4 7 __is_valid_inet_host($arg) or __is_valid_inet_cidr($arg)
10 0 7 __is_valid_inet_host($arg) or __is_valid_inet_cidr($arg) or __is_valid_inet_range($arg)
262 6 3 7 __is_valid_inet_host($arg) or __is_valid_inet_cidr($arg)
9 0 7 __is_valid_inet_host($arg) or __is_valid_inet_cidr($arg) or __is_valid_inet_range($arg)
499 0 0 0 __is_valid_inet_host($self->{'src'}) or __is_valid_inet_cidr($self->{'src'})
507 0 0 0 __is_valid_inet_host($self->{'dst'}) or __is_valid_inet_cidr($self->{'dst'})