Condition Coverage

blib/lib/Config/GitLike.pm
Criterion Covered Total %
condition 80 114 70.1


and 3 conditions

line !l l&&!r l&&r condition
166 129 0 166 -f $filename and -r $filename
175 164 0 1 not $c =~ /\n/ and $c =~ /\r/
223 184 0 0 grep {$_ eq $filename;} @{$self->config_files;} and not $args{'force'}
226 67 117 0 not $c and $args{'silent'}
236 0 0 67 $self->include and $args{'includes'}
245 0 0 355 $self->include and $args{'includes'}
493 0 135 220 defined $args{'section'} and defined $args{'name'}
543 79 34 14 defined $args{'as'} and $args{'as'} eq 'bool-or-int'
611 0 72 10 defined $args{'filter'} and length $args{'filter'}
616 0 2 2 defined $_ && /$args{'filter'}/i
684 0 0 28 defined $args{'key'} and length $args{'key'}
691 0 7 21 defined $args{'filter'} and length $args{'filter'}
698 0 7 12 defined $_ && /$args{'filter'}/i
888 6 64 20 defined $args{'value'} and defined $args{'as'}
927 20 0 8 defined $args{'filter'} and length $args{'filter'}
956 84 4 1 @replace > 1 and not $args{'multiple'}
960 70 4 14 @replace and $args{'value'}
4 1 13 @replace and $args{'value'} and not $args{'replace_all'}
963 69 3 11 @replace and !$args{'multiple'} || $args{'filter'} || $args{'replace_all'}
1167 18 9 5 @replace and not defined $got{'name'}
1175 0 3 4 $prev_matched and not defined $args{'to'}
1189 4 1 2 @replace and $prev_matched
5 1 1 @replace and $prev_matched and not defined $args{'to'}
1203 14 2 2 @replace and $prev_matched
16 1 1 @replace and $prev_matched and not defined $args{'to'}
1232 3 2 2 !defined($args{'to'}) && $header->{'section_is_last'}

or 2 conditions

line l !l condition
247 355 0 $def{'section'} || ''
355 0 $sec || ''
248 0 0 $def{'subsection'} || ''
0 0 $subsec || ''
249 0 0 $def{'name'} || ''
0 0 $name || ''
503 1 0 $self->data->{$key} ||= []
504 1 0 $self->casing->{$key} ||= []
1113 88 6 $self->newlines->{$filename} || "\n"

or 3 conditions

line l !l&&r !l&&!r condition
106 0 61 0 shift() || Cwd::cwd()
218 124 60 0 eval { do { Cwd::abs_path('File::Spec'->rel2abs($filename, $args{'relative'})) } } || $filename
500 78 129 13 not defined $self->origins->{$key} or $self->origins->{$key} eq $args{'origin'}
544 4 4 0 $args{'value'} =~ /^(?:true|yes|on|-?0*1)$/i or $args{'value'} =~ /^(?:false|no|off|0*)$/i
963 1 1 3 !$args{'multiple'} || $args{'filter'} || $args{'replace_all'}
1092 1 2 89 !($name =~ /^[^=\n\[][^=\n]*$/) || $name =~ /(?:^[ \t]+|[ \t+]$)/