Branch Coverage

blib/lib/Logwatch/RecordTree.pm
Criterion Covered Total %
branch 69 90 76.6


line true false branch
45 0 221 if ref $_[0] ne 'CODE'
46 0 99 if ref $_[0] ne 'HASH'
47 0 167 if ref $_[0] ne 'ARRAY'
140 94 334 unless exists $child->children->{$name}
152 0 91 unless $type->require
162 3 3 if ($my_child) { }
165 2 1 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 60 defined $_->sort_key ? :
241 0 67 $self->case_sensitive ? :
245 0 67 wantarray ? :
253 2 0 $self->neat_names < 0 ? :
276 73 4 if $min < 3
287 66 11 unless defined $child->indent
296 0 13 if $self->count != $other->count
298 1 0 if not defined $self->count_fields->[$ii] && defined $other->count_fields->[$ii] or $self->count_fields->[$ii] ne $other->count_fields->[$ii]
313 7 63 if ($depth == 1)
318 12 58 $self->no_count ? :
324 70 0 if (length $self->name) { }
340 13 57 if ($child_count == 1)
345 12 1 unless $self->_count_fields_differ($child)
351 13 0 if (length($$lines[0]) + length($child->lines->[0]) <= $self->width)
361 10 60 if ($child_count > 1)
363 9 1 if $child_count - $last < 3
367 2 8 if $self->neat_names
371 1 50 if ($child_count <= $last)
383 2 68 if $self->columnize
386 57 13 unless ($self->no_indent)
394 60 10 if $callback
402 0 15 if (@_ > 1)
405 0 15 if exists $$self{'_width'}
412 0 4 if (@_ > 1)
416 2 2 unless (exists $$self{'_col_width'})
427 0 2 if (@_ > 1)
431 2 0 unless (exists $$self{'_col_count'})
445 0 2 if defined $width
446 0 2 if defined $col_count
447 0 2 if defined $col_width
459 0 4 if ($col_count <= 1) { }
469 21 6 if defined $l