Branch Coverage

blib/lib/OpenPlugin/Config.pm
Criterion Covered Total %
branch 26 52 50.0


line true false branch
39 13 0 unless ($config_type)
54 5 7 unless $initial_filename
58 7 0 if -d $initial_dir
62 7 0 if -f $initial_filename
66 7 0 if -d $current_dir
72 7 0 if -d $config_dir
75 0 7 unless (-f join('/', $config_dir, $config_file))
76 0 0 if (-f join('/', $other_root_dir, $config_file))
87 7 5 if (ref $data ne 'HASH') { }
94 0 7 unless ($config_class)
111 6 6 if ($$self{'include'})
113 0 6 unless $src
161 216 6 $p[1] ? :
162 216 6 $sub_section ? :
165 222 0 unless ref $item eq 'ARRAY'
166 0 0 wantarray ? :
171 216 0 $p[2] ? :
172 216 0 if $sub_section
179 0 0 $p[1] ? :
180 0 0 if ($sub_section) { }
0 0 elsif ($param) { }
203 0 6 if ($self->OP->{'_toggle'}{$config_src})
213 0 6 unless ($config_class)
225 0 6 if ($logger->is_debug)
232 0 6 unless ref $$include_config{$section} eq 'HASH'
237 72 0 if (ref $$include_config{$section}{$param} eq 'HASH') { }