Branch Coverage

blib/lib/Config/INI/Writer.pm
Criterion Covered Total %
branch 25 30 83.3


line true false branch
116 3 13 ref $invocant ? :
128 0 21 unless $handle->print($self->stringify_section($section_data))
174 8 8 if (ref $data eq 'HASH') { }
7 1 elsif (ref $data eq 'ARRAY') { }
182 5 11 unless defined $props
183 11 0 (ref $props || '') eq 'HASH' ? :
189 1 13 ref $props eq 'HASH' ? :
258 2 23 unless $self->is_valid_section_name($name)
265 0 49 unless $self->is_valid_property_name($property)
268 0 49 if defined $value and not $self->is_valid_value($value)
271 1 48 if ($seen{$name}{$property}++)
370 2 5 unless ($starting_section_name and $starting_section_name eq $current_section_name and not $self->done_sections and not $self->explicit_starting_header)
417 4 43 unless defined $value
434 43 0 defined $value ? :
454 9 7 if $self->done_sections