Branch Coverage

blib/lib/OData/QueryParams/DBIC.pm
Criterion Covered Total %
branch 36 36 100.0


line true false branch
28 25 179 if (&blessed($query_string)) { }
29 24 1 if ($query_string->isa('Mojo::Parameters')) { }
42 48 155 $opts{'strict'} ? :
51 1 69 if $opts{'strict'} and not $param_key =~ /\A\$/msux
54 67 2 if ($sub)
64 1 10 unless $top_data =~ /\A[0-9]+\z/u
69 3 14 unless $skip_data =~ /\A[0-9]+\z/u
74 48 155 unless defined $filter_data
75 3 152 if $filter_data eq ''
90 18 1 if $1 and lc $1 eq 'desc' || lc $1 eq 'asc'
101 4 18 unless length $select_data
119 10 166 unless defined $op
123 2 164 if (not exists $map{$op}) { }
131 63 101 if (not defined $subject) { }
12 89 elsif (ref $rule) { }
139 27 62 if (ref $subject)
143 13 49 if ($value =~ /\A'(.*)'\z/u)
150 11 2 if ($opt{'me'} and $is_field and not $is_foreign_field)