Branch Coverage

blib/lib/Config/ROFL.pm
Criterion Covered Total %
branch 23 36 63.8


line true false branch
35 0 1 if $ENV{'CONFIG_ROFL_RELATIVE_DIR'}
37 0 1 if (ref $self eq 'Config::ROFL') { }
38 0 0 $Config::ROFL::Bin =~ m[/(?:bin|script|lib|t)\z]gmx ? :
42 1 0 if (my $path = $INC{$pm})
63 9 0 if ($config->found) { }
70 10 0 $rel_path =~ /^\.\./ ? :
72 9 0 if $ENV{'CONFIG_ROFL_DEBUG'}
95 8 6 if ($path = $self->$method)
97 3 5 $method eq '_lookup_global_path' ? :
101 0 0 unless $path
110 13 0 if defined $_ and not &readonly($_)
132 3 1 if $path->exists
139 1 1 unless $self->dist
141 0 1 unless eval { do { $path = File::Share::dist_dir($self->dist) } }
150 0 1 unless eval { do { $path = File::Share::dist_dir(ref $self) } }
158 2 5 if $ENV{'CONFIG_ROFL_CONFIG_PATH'}
160 1 4 if (&List::Util::first(sub { -e $_; } , glob(path($self->global_path, $self->name) . ".{conf,yml,yaml,json,ini}")))
168 9 15 unless $Config::ROFL::a->{$b}