Branch Coverage

blib/lib/Shell/Var/Reader/CMDB.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
92 0 0 unless (defined $opts{$check_key})
98 0 0 if (not defined $opts{'dir'}) { }
99 0 0 if (-f './.shell_var_reader') { }
0 0 elsif (-f '../.shell_var_reader') { }
0 0 elsif (-f '../../.shell_var_reader') { }
0 0 elsif (-f '../../../.shell_var_reader') { }
0 0 elsif (-f '../../../../.shell_var_reader') { }
111 0 0 unless (-d $opts{'dir'})
123 0 0 if (defined $opts{'to_process'} and ref $opts{'to_process'} eq "ARRAY" and defined $opts{'to_process'}[0] and ref $opts{'to_process'}[0] eq '' || ref $opts{'to_process'}[0] eq 'SCALAR')
131 0 0 if (-d $item) { }
0 0 elsif ($item =~ m[^[a-zA-Z0-9\.\_\-]+/+[a-zA-Z0-9\.\_\-]+\.sh$]) { }
151 0 0 unless (-f $opts{'dir'} . '/.shell_var_reader')
159 0 0 if (-f $opts{'dir'} . '/munger.pl')
165 0 0 if (-f $opts{'dir'} . '/.no_toml')
172 0 0 if -d $_ and not -f "$_/.not_a_system_group" and not $_ =~ /^\./ and $_ ne "json_confs" and $_ ne "shell_confs" and $_ ne "toml_confs" and $_ ne "yaml_confs"
183 0 0 if ($has_specified_groups and not $specified_groups{$sys_group})
187 0 0 if ($process_group) { }
188 0 0 if ($opts{'verbose'})
193 0 0 if -f $sys_group . '/' . $_ and $_ =~ /\.sh$/
200 0 0 if ($has_specified_systems and not $specified_systems{$cmdb_host})
204 0 0 if ($process_system) { }
205 0 0 if ($opts{'verbose'})
219 0 0 if ($opts{'verbose'})
224 0 0 if ($opts{'verbose'})
229 0 0 if ($opts{'verbose'})