Branch Coverage

blib/lib/Config/Find/Any.pm
Criterion Covered Total %
branch 8 62 12.9


line true false branch
18 0 8 if ($n =~ m[^(.*?)/(.*)$]) { }
24 5 3 if defined $fn
33 0 0 if ($write)
38 0 0 defined $fn ? :
43 0 0 unless $write
45 0 0 unless my $oh = 'IO::File'->new($orig, 'r')
47 0 0 unless my $fh = $class->_open($write, $global, $fn)
52 0 0 unless close $fh
54 0 0 unless close $oh
64 0 0 if ($scope eq 'global') { }
0 0 elsif ($scope eq 'user') { }
0 0 elsif ($scope eq 'app') { }
0 0 elsif ($scope eq 'process') { }
93 0 14 if ($path eq '')
94 0 0 if (my $script = File::Which::which($0))
99 14 0 if -e $0
107 0 0 if $name =~ /^(.+)\..*$/
108 0 0 if $name eq ''
123 0 7 if $name =~ /\./
130 0 0 if (-e $parent) { }
131 0 0 unless -d $parent
133 0 0 unless -W $parent
137 0 0 unless mkdir $parent
146 14 0 if pop @dirs eq ''
147 14 0 @dirs ? :
152 0 0 if (-e $dir) { }
153 0 0 unless -d $dir
156 0 0 unless mkdir $dir
164 0 0 unless defined $_[-1]
170 0 0 unless defined $_[-1]
176 0 0 unless defined $login