Branch Coverage

blib/lib/Logwatch/RecordTree/IPv4.pm
Criterion Covered Total %
branch 11 40 27.5


line true false branch
60 1 0 unless ($$self{'identifier'})
61 1 0 unless ($identifier)
62 0 1 unless 'Net::IP::Identifier'->require
82 1 0 if ($self->identify and $ip =~ m[^\d+\.\d+\.\d+\.\d+(/\d+)?$] || $ip =~ m[^[\d:]+(/\d+)?$])
86 0 0 if ($id)
87 0 0 if length $id > 8
103 4 2 if ($ip =~ m[^\d+\.\d+\.\d+\.\d+(/\d+)?$] or $ip =~ m[^[\d:]+(/\d+)?$]) { }
119 1 0 ref $self ? :
122 0 1 $case_sensitive ? :
138 0 6 defined $_->sort_key ? :
144 0 1 wantarray ? :
150 0 1 if ($self->snowshoe)
198 0 0 if ($ip & $mask) == $masked_ip
214 0 0 if $mask_width == 1
223 0 0 if $ip
224 0 0 if ($masked_ip)
225 0 0 if ($ip and $masked_ip == ($self->ip_to_bin($ip) & $mask)) { }
231 0 0 if (@group < 3) { }
246 0 0 if (@g_children) { }
259 0 0 if ($ip and not $masked_ip)