Branch Coverage

blib/lib/OData/QueryParams/DBIC/FilterUtils.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
41 227 2 $config->{'operator'} ? :
43 136 93 if ($this->{'value'} and $this->{'value'} =~ /\A[0-9]+(?:\.[0-9]+)?\z/u)
77 239 1494 if $found
83 248 1246 if (@match)
84 21 227 if ($key eq 'parenthesis') { }
24 203 elsif ($key eq 'math') { }
15 188 elsif ($key eq 'andor') { }
174 14 elsif ($key eq 'op') { }
85 5 16 if (index($match[1], ')') < index($match[1], '('))
101 24 0 if (ref $obj->{'subject'})
105 0 24 if (ref $obj->{'value'})
116 0 15 unless (ref $obj->{'subject'})
120 0 15 unless (ref $obj->{'value'})
132 75 99 if ($match[0] =~ /\(.*?\)/u)
137 37 137 if ($match[2] =~ /\A'.*?'\z/u) { }
12 125 elsif ($match[2] eq 'true' | $match[2] eq 'false') { }
125 0 elsif ($match[2] =~ /\A[0-9]+(?:\.[0-9]+)?\z/u) { }
160 4 10 $key eq 'substringof' ? :
4 10 $key eq 'substringof' ? :
179 1 174 unless defined $filter_string
184 2 172 if $filter_string eq ''