Branch Coverage

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


line true false branch
28 25 204 if (&blessed($query_string)) { }
29 24 1 if ($query_string->isa('Mojo::Parameters')) { }
42 48 180 $opts{'strict'} ? :
51 1 93 if $opts{'strict'} and not $param_key =~ /\A\$/msux
54 90 3 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 73 155 unless defined $filter_data
75 3 152 if $filter_data eq ''
90 36 2 if $1 and lc $1 eq 'desc' || lc $1 eq 'asc'
92 27 35 if ($opt{'me'} and not $order_by =~ m[/]u)
107 5 23 unless length $select_data
110 5 18 if ($opt{'me'})
111 2 7 m[/]u ? :
132 10 166 unless defined $op
136 2 164 if (not exists $map{$op}) { }
144 63 101 if (not defined $subject) { }
12 89 elsif (ref $rule) { }
152 27 62 if (ref $subject)
156 13 49 if ($value =~ /\A'(.*)'\z/u)
163 11 2 if ($opt{'me'} and $is_field and not $is_foreign_field)