Branch Coverage

blib/lib/Config/ROFL.pm
Criterion Covered Total %
branch 25 38 65.7


line true false branch
38 0 1 if (ref $self eq __PACKAGE__) { }
40 0 0 $bin =~ m[/(?:bin|script|share|lib|t)]gmx ? :
44 1 0 if (my $path = $INC{$pm})
65 11 0 if ($config->found) { }
72 12 0 $rel_path =~ /^\.\./ ? :
81 1 10 if (my $prefix = $self->envvar_prefix)
108 10 7 if ($path = $self->$method) { }
110 4 6 $method eq '_lookup_global_path' ? :
116 0 0 unless $path
125 17 0 if defined $_ and not &readonly($_)
147 4 1 if $path->exists
154 1 1 unless $self->dist
156 0 1 unless eval { do { $path = File::Share::dist_dir($self->dist) } }
166 1 0 if (ref $self ne __PACKAGE__)
167 0 1 unless eval { do { $path = File::Share::dist_dir(ref $self) } }
176 3 6 if $ENV{'CONFIG_ROFL_CONFIG_PATH'}
178 1 5 if (&List::Util::first(sub { -e $_; } , glob(path($self->global_path, $self->name) . '.{conf,yml,yaml,json,ini}')))
185 28 0 if $ENV{'CONFIG_ROFL_DEBUG'}
191 10 16 unless $Config::ROFL::a->{$b}