Branch Coverage

blib/lib/Logwatch/RecordTree.pm
Criterion Covered Total %
branch 39 90 43.3


line true false branch
45 0 215 if ref $_[0] ne 'CODE'
46 0 92 if ref $_[0] ne 'HASH'
47 0 95 if ref $_[0] ne 'ARRAY'
140 91 303 unless exists $child->children->{$name}
152 0 91 unless $type->require
162 0 0 if ($my_child) { }
165 0 0 if (@item_children) { }
187 42 155 if (ref $name eq 'ARRAY')
191 0 197 unless defined $name
194 91 106 unless (defined $child)
198 111 86 if (@children)
210 42 241 if ref $name
211 197 86 if (defined $name)
235 1 7 defined $_->sort_key ? :
241 0 2 $self->case_sensitive ? :
245 0 2 wantarray ? :
253 0 0 $self->neat_names < 0 ? :
276 2 2 if $min < 3
287 14 1 unless defined $child->indent
296 0 1 if $self->count != $other->count
298 0 0 if not defined $self->count_fields->[$ii] && defined $other->count_fields->[$ii] or $self->count_fields->[$ii] ne $other->count_fields->[$ii]
313 1 2 if ($depth == 1)
318 1 2 $self->no_count ? :
324 3 0 if (length $self->name) { }
340 1 2 if ($child_count == 1)
345 1 0 unless $self->_count_fields_differ($child)
351 0 0 if (length($$lines[0]) + length($child->lines->[0]) <= $self->width)
361 2 0 if ($child_count > 1)
363 2 0 if $child_count - $last < 3
367 1 1 if $self->neat_names
371 0 1 if ($child_count <= $last)
383 0 0 if $self->columnize
386 0 0 unless ($self->no_indent)
394 0 0 if $callback
402 0 0 if (@_ > 1)
405 0 0 if exists $$self{'_width'}
412 0 0 if (@_ > 1)
416 0 0 unless (exists $$self{'_col_width'})
427 0 0 if (@_ > 1)
431 0 0 unless (exists $$self{'_col_count'})
445 0 0 if defined $width
446 0 0 if defined $col_count
447 0 0 if defined $col_width
459 0 0 if ($col_count <= 1) { }
469 0 0 if defined $l