Branch Coverage

blib/lib/YAML/Logic.pm
Criterion Covered Total %
branch 41 50 82.0


line true false branch
38 35 216 if (ref $input eq 'HASH')
53 0 216 unless $$self{'template'}->process(\$input, $vars, \$out)
64 91 0 unless defined $not_glob
65 73 18 unless defined $boolean_or
75 91 0 if (ref $data eq 'ARRAY') { }
83 0 110 unless (defined $field)
88 10 100 if ($field =~ s/^!//)
92 18 92 if ($field eq 'or') { }
8 84 elsif ($field eq 'and') { }
100 49 35 if (ref $value eq '') { }
35 0 elsif (ref $value eq 'HASH') { }
109 1 108 if ($boolean_or and $res) { }
64 44 elsif (not $boolean_or || $res) { }
128 17 8 if $boolean_or
139 19 65 if $op eq 'like'
143 0 84 unless (exists $OPS{$op})
150 21 63 if ($op eq '=~') { }
151 1 20 if ($value =~ /\?\{/)
157 7 5 length($1) % 2 ? :
168 0 83 if ($@)
172 73 10 if (not $res || $not or $res and $not)
174 73 0 unless defined $res
178 10 73 $not ? :
186 157 47 if (defined $error)
200 0 147 if (defined $metas)