Branch Coverage

blib/lib/Config/Model/Backend/IniFile.pm
Criterion Covered Total %
branch 67 76 88.1


line true false branch
43 3 41 unless $args{'file_path'}->exists
57 26 97 $args{"force_lc_$_"} ? :
92 57 261 if ($vdata =~ /^\s*\[(.*)\]/) { }
93 41 16 $force_lc{'section'} ? :
95 13 44 if ($remap eq '!') { }
2 42 elsif ($remap) { }
28 14 elsif ($hash_class) { }
121 15 42 if (defined $section_map->{$section})
128 134 127 if $force_lc{'key'}
129 0 261 if $force_lc{'value'}
130 3 258 if $quote_value eq "shell_style"
135 113 205 if $comment
139 15 26 if $split_reg
143 7 106 unless my $item = $obj->grab("step", $k, "mode", "loose")
144 30 76 if $item->get_type eq "list"
156 13 264 if (defined $cell and ref $cell eq 'ARRAY') { }
27 237 elsif (defined $cell) { }
184 0 21 unless defined $args{'file_path'}
194 4 17 if (defined $top_class_name)
200 19 2 if ($res) { }
2 0 elsif ($self->auto_delete) { }
220 28 44 if ($join_list) { }
223 6 22 if (length $v)
232 36 0 if (length $v) { }
257 0 4 if ($join_check_list) { }
259 0 0 if (length $v)
276 3 0 if (defined $args->{'quote_value'} and $args->{'quote_value'} eq "shell_style" and defined $v and $v =~ /\s/)
298 1 14 if ($write_bool_as and defined $v and length $v and $obj->value_type eq "boolean")
301 35 55 if (defined $v and length $v) { }
324 8 7 if ($subres)
344 7 9 if ($subres)
348 1 6 if (defined $exception_name)
371 22 166 if $type =~ /node/ or $type eq "hash"
373 72 94 if ($type eq 'list') { }
4 90 elsif ($type eq 'check_list') { }
90 0 elsif ($type eq 'leaf') { }
393 166 22 unless $type =~ /node/ or $type eq "hash"
398 6 16 if ($type eq 'hash') { }