Branch Coverage

lib/Config/Neat/Render.pm
Criterion Covered Total %
branch 74 90 82.2


line true false branch
215 2 0 unless $options
250 36 2 unless $options
257 1 37 if (ref $sort eq 'ARRAY')
267 140 122 if (is_hash($node)) { }
8 114 elsif (is_neat_array($node) || is_array($node) and not is_homogenous_simple_array($node)) { }
271 1 215 if (is_array($subnode) and not is_homogenous_simple_array($subnode))
276 93 123 if (is_hash($subnode) and not exists $subnode->{''}) { }
281 105 18 if $key_len > $len
284 108 10 if ($recursive and is_hash($subnode) || is_neat_array($subnode) || is_array($subnode))
285 98 108 is_hash($subnode) ? :
288 61 145 if $key_len > $len
295 2 16 if $key_len > $len
322 120 126 $line ? :
324 10 236 if ($l + length($item) > $wrap_width)
325 8 2 if $line ne ''
329 2 244 if (length $item >= $wrap_width) { }
332 112 132 if $line ne ''
336 124 0 if $line ne ''
345 0 221 if ref $scalar eq 'SCALAR'
349 0 221 if ($scalar =~ /(\n|\s{2,})/)
353 1 220 unless (defined $scalar)
357 8 213 if ($scalar eq '')
361 8 213 if ($should_escape and $scalar =~ /\s/)
365 10 211 if (not $should_escape and $scalar ne '')
376 66 58 $spaces <= 0 ? :
385 0 234 if $key =~ /\s/
387 10 224 if (is_scalar($val)) { }
114 110 elsif (is_homogenous_simple_array($val)) { }
8 102 elsif (is_neat_array($val)) { }
388 0 0 if $$wasref == $BLOCK and $options->{'separate_blocks'}
402 2 0 if $$wasref == $BLOCK and $options->{'separate_blocks'}
418 48 0 if $$wasref and $options->{'separate_blocks'}
420 5 97 if (is_hash($val) and exists $val->{''}) { }
422 0 5 unless (is_scalar($default_value) or is_homogenous_simple_array($default_value))
431 78 4 unless ($array_mode or $sequential_keys and is_number($key))
432 78 0 $options->{'brace_under'} ? :
454 1 139 if (is_array($node) or is_neat_array($node))
455 0 1 if (is_homogenous_simple_array($node)) { }
463 140 0 if (is_hash($node)) { }
466 140 0 $options->{'align_all'} ? :
476 39 101 if (not $array_mode and scalar @keys > 1)
477 8 31 if (is_hash($sort)) { }
0 31 elsif ($sort) { }
486 211 5 if ($key ne '')
493 38 0 if ($options->{'align_all'})