Branch Coverage

blib/lib/Config/Model/ValueComputer.pm
Criterion Covered Total %
branch 87 116 75.0


line true false branch
60 11 177 if $self->{'use_eval'} and not $self->{'value_type'} =~ /(integer|number|boolean)/
78 3 180 defined $sui ? :
2 183 defined $sui && $sui eq q[''] ? :
97 188 0 $result_r ? :
98 188 0 $result_r ? :
109 0 592 unless defined $variables
117 68 524 if ($self->{'use_eval'} or $self->{'value_type'} =~ /(integer|number|boolean)/) { }
125 0 95 unless CORE::index($pre_formula, $key) > 0
128 10 85 unless defined $v
129 87 8 defined $v ? :
132 87 8 if (defined $v) { }
136 61 7 if ($all_defined)
138 87 17 defined $__vars{$1} ? :
141 0 61 if ($@)
160 571 21 defined $result ? :
173 0 8 unless defined $variables
175 7 1 if (%$variables)
179 0 14 if (ref $u_val) { }
186 11 3 if (defined $u_val)
188 0 11 if ($@)
190 0 0 ref $e ? :
197 0 11 $obj->get_type eq 'list' ? :
0 11 $obj->get_type eq 'hash' ? :
0 11 $obj->get_type eq 'node' ? :
203 7 7 defined $val ? :
222 48 610 if $logger->is_trace
232 2 256 unless defined $value
236 216 40 unless $value =~ /\$|&/
243 0 40 if $logger->is_trace
246 30 10 if ($$pre_res_r =~ /\$/)
254 0 30 if $logger->is_trace
263 247 11 if defined $variables{$_}
270 0 663 unless $var_left < $old_var_left
284 3 20 exists $replace_h->{$pre_value} ? :
293 0 24 if ($logger->is_trace)
294 0 0 defined $value ? :
299 5 19 if (defined $value and $value =~ /\$/) { }
10 9 elsif (defined $value) { }
306 8 2 defined $r ? :
323 1 19 if $need_quote
334 3 0 $f_name eq 'location' ? :
6 3 $f_name eq 'index' ? :
10 9 $f_name eq 'element' ? :
340 0 19 unless defined $method_name
348 4 15 if ($vt =~ /^integer|number|boolean$/)
354 0 19 unless defined $result
369 28 528 if ($logger->is_debug)
370 56 0 defined $_ ? :
378 1216 16 if (defined $v or defined $undef_is) { }
379 1216 0 defined $v ? :
394 0 196 unless exists $variables_h->{$name}
400 22 174 if ($logger->is_debug)
401 22 0 defined $path ? :
405 5 191 if (defined $path and $path =~ /[\$&]/) { }
184 7 elsif (defined $path) { }
415 0 184 if ($@)
417 0 0 $e ? :
424 161 23 defined $my_res ? :