Branch Coverage

blib/lib/PFT/Conf.pm
Criterion Covered Total %
branch 28 42 66.6


line true false branch
210 0 7 if @_ % 2
212 0 67 unless defined(my $val = $_[$i + 1])
215 0 67 unless @keys
221 52 17 exists $dst->{$k} ? :
222 1 68 if ref $dst ne 'HASH'
225 1 65 if exists $dst->{$k} and ref $dst->{$k} eq 'HASH'
240 3 4 if (my $filter = shift()) { }
242 27 18 unless my $v = $vs->[$select]
289 0 18 unless $c->{$k}
291 0 18 unless ref $c eq 'HASH'
295 1 17 unless exists $$c{$path[-1]}
303 0 2 unless my $enc_fname = isroot($root)
305 0 2 unless open my $f, '<:encoding(locale)', $enc_fname
322 0 1 unless defined $root
355 6 18 -e $f ? :
388 0 9 unless -d &encode('locale_fs', $cur)
397 4 16 if (isroot($cur)) { }
408 0 0 unless ref $hash eq 'HASH'
440 0 3 unless -e $enc_root or make_path($enc_root)
442 0 3 unless open my $out, '>:encoding(locale)', &encode('locale_fs', scalar catfile($root, $CONF_NAME))
451 0 3 if ($@)