Branch Coverage

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


line true false branch
131 463 452 if ($o->{'key'} ne '')
132 11 452 if not $no_default_param and scalar @{$o->{'values'};} == 0
135 18 445 if (exists $$current_ctx{$o->{'key'}}) { }
136 13 5 unless exists $data->{'is_array'}
137 13 5 unless ($data->{'is_array'}{$o->{'key'}})
153 454 4326 if ($o->{'mode'} == $LINE_START) { }
387 3939 elsif ($o->{'mode'} == $WHITESPACE) { }
154 5 449 if ($o->{'first_value_pos'} > 0 and $o->{'pos'} >= $o->{'first_value_pos'}) { }
163 285 102 if ($o->{'first_value_pos'} == 0)
168 2555 2225 if ($o->{'mode'} == $KEY) { }
2225 0 elsif ($o->{'mode'} == $VALUE) { }
180 78 6114 if ($o->{'was_slash'})
185 14 6178 if ($o->{'was_backslash'})
205 392 1012 if (defined $o->{'value'})
215 10615 98 if ($c ne '/')
219 185 10528 if ($c eq '{') { }
185 10343 elsif ($c eq '}') { }
19 10324 elsif ($c eq '\\') { }
98 10226 elsif ($c eq '/') { }
28 10198 elsif ($c eq '*') { }
51 10147 elsif ($c eq '`') { }
4494 5653 elsif ($c eq ' ' or $c eq "\t") { }
0 5653 elsif ($c eq "\r") { }
838 4815 elsif ($c eq "\n") { }
57 4758 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 51 if $o->{'mode'} == $LINE_COMMENT or $o->{'mode'} == $BLOCK_COMMENT
317 5 46 if ($o->{'was_backslash'})
329 0 4494 if ($c eq "\t")
333 50 4444 if $o->{'mode'} == $LINE_COMMENT or $o->{'mode'} == $BLOCK_COMMENT
335 35 4409 if ($in_raw_mode)
340 344 4065 if ($o->{'mode'} == $KEY) { }
102 3963 elsif ($o->{'mode'} == $VALUE) { }
354 2 836 if $o->{'mode'} == $BLOCK_COMMENT
356 0 836 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 4524 if $o->{'mode'} == $LINE_COMMENT or $o->{'mode'} == $BLOCK_COMMENT
387 0 97 if $in_raw_mode
389 1 96 if @{$o->{'context'};} > 1