Branch Coverage

lib/Config/Neat.pm
Criterion Covered Total %
branch 96 110 87.2


line true false branch
131 462 452 if ($o->{'key'} ne '')
132 11 451 if not $no_default_param and scalar @{$o->{'values'};} == 0
135 18 444 if (exists $$current_ctx{$o->{'key'}}) { }
136 13 5 unless exists $data->{'is_array'}
137 13 5 unless ($data->{'is_array'}{$o->{'key'}})
153 453 4300 if ($o->{'mode'} == $LINE_START) { }
385 3915 elsif ($o->{'mode'} == $WHITESPACE) { }
154 5 448 if ($o->{'first_value_pos'} > 0 and $o->{'pos'} >= $o->{'first_value_pos'}) { }
163 284 101 if ($o->{'first_value_pos'} == 0)
168 2538 2215 if ($o->{'mode'} == $KEY) { }
2215 0 elsif ($o->{'mode'} == $VALUE) { }
180 78 6085 if ($o->{'was_slash'})
185 14 6149 if ($o->{'was_backslash'})
205 390 1012 if (defined $o->{'value'})
215 10569 98 if ($c ne '/')
219 185 10482 if ($c eq '{') { }
185 10297 elsif ($c eq '}') { }
19 10278 elsif ($c eq '\\') { }
98 10180 elsif ($c eq '/') { }
28 10152 elsif ($c eq '*') { }
49 10103 elsif ($c eq '`') { }
4474 5629 elsif ($c eq ' ' or $c eq "\t") { }
0 5629 elsif ($c eq "\r") { }
837 4792 elsif ($c eq "\n") { }
57 4735 elsif ($c eq '#') { }
220 0 185 if $o->{'mode'} == $LINE_COMMENT or $o->{'mode'} == $BLOCK_COMMENT
222 0 185 if ($in_raw_mode)
229 16 169 unless ($o->{'key'})
246 18 167 if (scalar @{$old_values;} > 0)
251 0 185 if $o->{'mode'} == $LINE_COMMENT or $o->{'mode'} == $BLOCK_COMMENT
253 0 185 if ($in_raw_mode)
261 1 184 if (scalar @{$o->{'context'};} == 1)
271 0 19 if $o->{'mode'} == $LINE_COMMENT or $o->{'mode'} == $BLOCK_COMMENT
279 0 98 if $o->{'mode'} == $LINE_COMMENT
280 2 96 if not $o->{'was_asterisk'} and $o->{'mode'} == $BLOCK_COMMENT
282 12 84 if ($in_raw_mode)
287 3 81 if ($o->{'was_asterisk'} and $o->{'mode'} == $BLOCK_COMMENT)
298 0 28 if $o->{'mode'} == $LINE_COMMENT
300 5 23 if ($o->{'mode'} == $BLOCK_COMMENT) { }
304 3 20 if ($o->{'was_slash'})
315 0 49 if $o->{'mode'} == $LINE_COMMENT or $o->{'mode'} == $BLOCK_COMMENT
317 5 44 if ($o->{'was_backslash'})
329 0 4474 if ($c eq "\t")
333 50 4424 if $o->{'mode'} == $LINE_COMMENT or $o->{'mode'} == $BLOCK_COMMENT
335 33 4391 if ($in_raw_mode)
340 343 4048 if ($o->{'mode'} == $KEY) { }
101 3947 elsif ($o->{'mode'} == $VALUE) { }
354 2 835 if $o->{'mode'} == $BLOCK_COMMENT
356 0 835 if ($in_raw_mode)
365 0 57 if $o->{'mode'} == $LINE_COMMENT or $o->{'mode'} == $BLOCK_COMMENT
367 6 51 if ($in_raw_mode)
372 11 40 if ($o->{'mode'} == $LINE_START or $o->{'mode'} == $WHITESPACE) { }
379 234 4501 if $o->{'mode'} == $LINE_COMMENT or $o->{'mode'} == $BLOCK_COMMENT
387 0 97 if $in_raw_mode
389 1 96 if @{$o->{'context'};} > 1