Branch Coverage

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


line true false branch
26 0 215 if ref $_[0] ne 'CODE'
27 0 92 if ref $_[0] ne 'HASH'
28 0 95 if ref $_[0] ne 'ARRAY'
113 91 303 unless exists $child->children->{$name}
125 0 91 unless $type->require
135 0 0 if ($my_child) { }
138 0 0 if (@item_children) { }
160 42 155 if (ref $name eq 'ARRAY')
164 0 197 unless defined $name
167 91 106 unless (defined $child)
171 111 86 if (@children)
183 42 241 if ref $name
184 197 86 if (defined $name)
208 1 7 defined $_->sort_key ? :
214 0 2 $self->case_sensitive ? :
218 0 2 wantarray ? :
226 0 0 $self->neat_names < 0 ? :
249 2 2 if $min < 3
260 14 1 unless defined $child->indent
269 0 1 if $self->count != $other->count
271 0 0 if not defined $self->count_fields->[$ii] && defined $other->count_fields->[$ii] or $self->count_fields->[$ii] ne $other->count_fields->[$ii]
286 1 2 if ($depth == 1)
291 1 2 $self->no_count ? :
297 3 0 if (length $self->name) { }
313 1 2 if ($child_count == 1)
318 1 0 unless $self->_count_fields_differ($child)
324 0 0 if (length($$lines[0]) + length($child->lines->[0]) <= $self->width)
334 2 0 if ($child_count > 1)
336 2 0 if $child_count - $last < 3
340 1 1 if $self->neat_names
344 0 1 if ($child_count <= $last)
356 0 0 if $self->columnize
359 0 0 unless ($self->no_indent)
367 0 0 if $callback
375 0 0 if (@_ > 1)
378 0 0 if exists $$self{'_width'}
385 0 0 if (@_ > 1)
389 0 0 unless (exists $$self{'_col_width'})
400 0 0 if (@_ > 1)
404 0 0 unless (exists $$self{'_col_count'})
418 0 0 if defined $width
419 0 0 if defined $col_count
420 0 0 if defined $col_width
432 0 0 if ($col_count <= 1) { }
442 0 0 if defined $l