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 59 $opts->{'select'} ? :
48 3 76 if ($opts->{'distinct'})
51 0 3 if ($opts->{'group_by'}) { }
64 14 174 if ref $select_fields[$i] eq 'SCALAR'
70 2 172 if (ref $ident)
75 2 0 unless ($as)
86 2 172 $fn ? :
90 3 76 $opts->{'from'} ? :
92 3 76 if ($opts->{'subtype_depth'})
108 26 110 if exists $info->{'bind'}
121 10 69 if (defined $opts->{'order_by'})
132 0 11 if $info->{'is_relationship'}
155 7 72 if (defined $opts->{'group_by'})
159 6 1 ref $opts->{'group_by'} eq 'ARRAY' ? :
164 0 9 if $info->{'is_relationship'}
173 2 77 if (defined $opts->{'having'})
202 3 76 if (my $subquery = $opts->{'from'})
212 3 76 if (my $depth = $opts->{'subtype_depth'})
225 30 49 unless $parser_data{'joins'}
229 7 72 if defined $group_by
230 2 77 if defined $having
231 10 69 if defined $order_by
234 2 77 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 65 267 if exists $parser_data->{'cache'}{$identifier}
259 6 261 if $identifier =~ /^_parent_type_\d+$/
264 3 258 if exists $parser_data->{'aliases'}{$identifier}
285 32 230 if ($current_type->has_relationship($id_part)) { }
185 45 elsif ($current_type->has_static_attribute($id_part)) { }
45 0 elsif ($current_type->has_attribute($id_part)) { }
288 25 7 $rel->{'is_right_entity'} ? :
294 31 1 unless ($parser_data->{'joined'}{$current_rel_alias})
309 28 4 if ($i == $#parts) { }
311 26 2 if (defined $bind_value)
313 0 26 unless &blessed($bind_value) and $bind_value->isa('DBIx::EAV::Entity') and $bind_value->is_type($related_type->name)
318 0 26 unless $bind_value->in_storage
325 26 2 $bind_value ? :
335 3 1 $current_entity_alias eq 'me' ? :
337 4 0 unless ($parser_data->{'joined'}{$current_entity_alias})
354 0 185 if $i < $#parts
365 0 45 if $i < $#parts
370 43 2 $current_entity_alias eq 'me' ? :
372 33 12 unless ($parser_data->{'joined'}{$join_alias})
432 0 0 wantarray ? :