Branch Coverage

blib/lib/Logwatch/RecordTree/IPv4.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
39 2 10 unless ($$self{'identifier'})
40 1 1 unless ($identifier)
41 0 1 unless 'Net::IP::Identifier'->require(0.111)
61 12 4 if ($self->identify and $ip =~ m[^\d+\.\d+\.\d+\.\d+(/\d+)?$] || $ip =~ m[^[\d:]+(/\d+)?$])
65 12 0 if ($id)
66 0 12 if length $id > 8
82 32 2 if ($ip =~ m[^\d+\.\d+\.\d+\.\d+(/\d+)?$] or $ip =~ m[^[\d:]+(/\d+)?$]) { }
98 3 0 ref $self ? :
101 0 3 $case_sensitive ? :
117 0 9 defined $_->sort_key ? :
123 0 3 wantarray ? :
129 2 1 if ($self->snowshoe)
177 25 17 if ($ip & $mask) == $masked_ip
193 2 0 if $mask_width == 1
202 25 2 if $ip
203 25 2 if ($masked_ip)
204 22 3 if ($ip and $masked_ip == ($self->ip_to_bin($ip) & $mask)) { }
210 0 3 if (@group < 3) { }
225 3 22 if (@g_children) { }
238 3 24 if ($ip and not $masked_ip)