Branch Coverage

lib/DBIx/EAV/Cursor.pm
Criterion Covered Total %
branch 77 94 81.9


line true false branch
22 0 0 if defined $self->_sth
45 20 80 $opts->{'select'} ? :
48 3 97 if ($opts->{'distinct'})
51 0 3 if ($opts->{'group_by'}) { }
64 14 216 if ref $select_fields[$i] eq 'SCALAR'
70 2 214 if (ref $ident)
75 2 0 unless ($as)
86 2 214 $fn ? :
90 3 97 $opts->{'from'} ? :
92 3 97 if ($opts->{'subtype_depth'})
108 44 132 if exists $info->{'bind'}
121 10 90 if (defined $opts->{'order_by'})
132 0 11 if $info->{'is_relationship'}
155 7 93 if (defined $opts->{'group_by'})
159 6 1 ref $opts->{'group_by'} eq 'ARRAY' ? :
164 0 9 if $info->{'is_relationship'}
173 2 98 if (defined $opts->{'having'})
202 3 97 if (my $subquery = $opts->{'from'})
212 3 97 if (my $depth = $opts->{'subtype_depth'})
225 32 68 unless $parser_data{'joins'}
229 7 93 if defined $group_by
230 2 98 if defined $having
231 10 90 if defined $order_by
234 2 98 if ($opts->{'limit'})
235 0 2 unless $opts->{'limit'} =~ /^\d+$/
238 2 0 if (defined $opts->{'offset'})
239 0 2 unless $opts->{'offset'} =~ /^\d+$/
253 86 328 if exists $parser_data->{'cache'}{$identifier}
259 6 322 if $identifier =~ /^_parent_type_\d+$/
264 3 319 if exists $parser_data->{'aliases'}{$identifier}
285 50 273 if ($current_type->has_relationship($id_part)) { }
227 46 elsif ($current_type->has_static_attribute($id_part)) { }
46 0 elsif ($current_type->has_attribute($id_part)) { }
288 41 9 $rel->{'is_right_entity'} ? :
293 49 1 unless ($parser_data->{'joined'}{$current_rel_alias})
308 46 4 if ($i == $#parts) { }
310 44 2 if (defined $bind_value)
315 0 44 unless &blessed($bind_value) and $bind_value->isa('DBIx::EAV::Entity') and $bind_value->is_type($rel->{'entity'})
317 0 44 unless $bind_value->in_storage
324 44 2 $bind_value ? :
334 3 1 $current_entity_alias eq 'me' ? :
336 4 0 unless ($parser_data->{'joined'}{$current_entity_alias})
353 0 227 if $i < $#parts
364 0 46 if $i < $#parts
369 44 2 $current_entity_alias eq 'me' ? :
371 34 12 unless ($parser_data->{'joined'}{$join_alias})
431 0 0 wantarray ? :