Branch Coverage

lib/Config/Neat/Render.pm
Criterion Covered Total %
branch 77 92 83.7


line true false branch
215 2 0 unless $options
250 36 2 unless $options
257 1 37 if (ref $sort eq 'ARRAY')
267 140 123 if (is_hash($node)) { }
8 115 elsif (is_neat_array($node) || is_array($node) and not is_homogenous_simple_array($node)) { }
271 1 217 if (is_array($subnode) and not is_homogenous_simple_array($subnode))
276 93 125 if (is_hash($subnode) and not exists $subnode->{''}) { }
283 2 123 if ($key =~ /\s/)
286 104 21 if $key_len > $len
289 109 11 if ($recursive and is_hash($subnode) || is_neat_array($subnode) || is_array($subnode))
290 98 109 is_hash($subnode) ? :
293 62 145 if $key_len > $len
300 2 16 if $key_len > $len
327 122 128 $line ? :
329 10 240 if ($l + length($item) > $wrap_width)
330 8 2 if $line ne ''
334 2 248 if (length $item >= $wrap_width) { }
337 114 134 if $line ne ''
341 126 0 if $line ne ''
350 0 224 if ref $scalar eq 'SCALAR'
354 0 224 if ($scalar =~ /(\n|\s{2,})/)
358 1 223 unless (defined $scalar)
362 8 216 if ($scalar eq '')
366 8 216 if ($should_escape and $scalar =~ /\s/)
370 11 213 if (not $should_escape and $scalar ne '')
381 66 60 $spaces <= 0 ? :
391 2 234 if ($key =~ /\s/)
395 11 225 if (is_scalar($val)) { }
115 110 elsif (is_homogenous_simple_array($val)) { }
8 102 elsif (is_neat_array($val)) { }
396 0 0 if $$wasref == $BLOCK and $options->{'separate_blocks'}
410 2 0 if $$wasref == $BLOCK and $options->{'separate_blocks'}
426 48 0 if $$wasref and $options->{'separate_blocks'}
428 5 97 if (is_hash($val) and exists $val->{''}) { }
430 0 5 unless (is_scalar($default_value) or is_homogenous_simple_array($default_value))
439 78 4 unless ($array_mode or $sequential_keys and is_number($key))
440 78 0 $options->{'brace_under'} ? :
462 1 139 if (is_array($node) or is_neat_array($node))
463 0 1 if (is_homogenous_simple_array($node)) { }
471 140 0 if (is_hash($node)) { }
474 140 0 $options->{'align_all'} ? :
484 39 101 if (not $array_mode and scalar @keys > 1)
485 8 31 if (is_hash($sort)) { }
0 31 elsif ($sort) { }
494 213 5 if ($key ne '')
501 38 0 if ($options->{'align_all'})