Branch Coverage

lib/UR/BoolExpr/Template.pm
Criterion Covered Total %
branch 87 126 69.0


line true false branch
93 0 0 unless $_[0]{'_resolve_indexing_params'}
98 0 0 unless $_[0]{'_resolve_indexing_params'}
103 0 0 unless $_[0]{'_resolve_indexing_params'}
116 0 0 unless ($m)
150 3768 3830 if (exists $cached_subset_data->{$other_template_id})
154 0 3830 unless (ref $other_template and $self->isa(ref $other_template))
161 2253 1577 unless ($my_class eq $other_class or $my_class->isa($other_class))
169 799 1118 unless (exists $operators{$prop})
173 442 676 if $operators{$prop} ne $other_template->operator_for($prop)
176 413 1164 if ($is_subset)
186 345 7 unless $self->offset or defined $self->limit or $other_template->offset or defined $other_template->limit
196 22 46 if @$only_my or @$only_other
204 23 23 if (defined $my_limit and defined $other_limit) { }
4 19 elsif (not defined $my_limit and defined $other_limit) { }
224 2049 1452 if (defined $self->{'is_unique'})
230 1228 224 if ($self->is_normalized) { }
238 595 857 if (defined $op and $op eq '' || $op eq '=') { }
248 0 857 if (my(@ps) = $self->subject_class_name->__meta__->unique_property_sets)
252 0 0 ref $property_set ? :
257 0 0 if (@properties_used_from_constraint == @$property_set) { }
267 0 0 if (@properties_used_from_constraint == @$property_set) { }
323 530 3519 if (@$extenders)
330 385 176 if ($subref)
350 574 338681 if ($self->is_normalized)
360 337625 1056 if (@$extenders)
365 222774 115048 if ($subref)
386 64 0 if ($self->subject_class_name ne 'UR::Object::Property')
391 80 261 if defined $value
399 3895 88 if (exists $_[0]{'_property_meta_hash'}{$_[1]}) { }
407 11335 829 if (exists $_[0]{'_property_meta_hash'}{$_[1]}) { }
425 0 5 if defined $op
427 0 5 unless ($logic_type eq 'And')
458 0 0 defined $subject_class_name ? :
0 25576 unless $subject_class_name
475 14 51108 if (UR::BoolExpr::Util::is_meta_param($params_list[$i]))
490 0 1233408 if @_
493 1229673 3735 if $self
496 0 3735 if (@extra)
502 2355 1380 $class eq 'UR::BoolExpr::Template' ? :
508 0 3735 unless ($logic_type)
512 2431 1304 if ($logic_type eq 'And') { }
516 2386 45 if defined $constant_value_id
543 16 117270 if @$self{@meta_param_names}
554 56970 1452 if $legacy_params_hash
568 0 1452 if (@keys_sorted and not $logic_detail or $logic_detail and not @keys_sorted)
576 40 1412 if (not $logic_detail) { }
581 599 813 if ($id_only) { }
590 696 716 if (my $id_op = $key_op_hash->{'id'})
591 596 100 if ($id_op->{''} or $id_op->{'='})
593 1 595 unless ($self->is_unique)
601 816 596 unless ($legacy_params_hash->{'_unique'})
602 0 816 if (defined $legacy_params_hash->{'id'} and not ref $legacy_params_hash->{'id'}) { }
618 0 0 ref $property_set ? :
621 0 0 ref $property_set ? :
623 0 0 if (@properties_used_from_constraint == @$property_set) { }
628 0 0 unless /^(not |)like(-.|)$/i
634 0 0 if (@properties_used_from_constraint == @$property_set) { }
649 734 82 unless $id_only
653 0 1452 if ($self->is_unique and not $legacy_params_hash->{'_unique'})
658 1 856 if (not $self->is_unique and $legacy_params_hash->{'_unique'})
674 0 20092 if @_
679 59 20033 if ($self->group_by) { }
688 233 19859 if (my $order_by = $self->order_by) { }