Branch Coverage

lib/UR/BoolExpr/Template/And.pm
Criterion Covered Total %
branch 187 222 84.2


line true false branch
17 9 3 if (not @extra_values) { }
21 0 9 unless $flattened_bx->{'values'}
34 16 3 if (@extra_values == 0) { }
37 14 2 unless $reframed_bx->{'values'}
49 16 15 if ($self->{'flatten'})
69 34 3 if (not UR::BoolExpr::Util::is_meta_param($name)) { }
74 0 26 if $flat ne $name or @$add_keys or @$add_values
76 8 26 if $operator and $operator ne '='
89 0 0 if $flat ne $name or @$add_keys or @$add_values
100 2 13 if ($old_constant_values) { }
109 6 9 if ($found_unflattened_params or @extra_keys) { }
110 5 1 if (@extra_keys)
118 5 3 unless ($keys_seen{$extra_key})
151 0 19 unless (@pmeta)
177 25 71 unless (@reframe_path_back)
180 2 69 unless (@filter_path_forward)
188 29 40 if ($last_name_back eq $first_name_forward) { }
200 8 32 if ($last_name_back_base eq $first_name_forward_base)
208 16 0 if (index($full, $partial) == 0)
210 13 3 if (my $prev_full = $sub_group_label_used{$partial}) { }
213 5 8 if ($prev_full eq $full) { }
232 32 37 if ($turnaround_match == 0) { }
240 2 35 if (@reframe_path_back == 1 and @filter_path_forward == 1) { }
253 34 25 $new_key ? :
268 54 2 if (not UR::BoolExpr::Util::is_meta_param($old_key)) { }
278 15 39 if $operator and $operator ne '='
283 0 0 unless ($old_key eq '-order_by' or $old_key eq '-group_by' or $old_key eq '-hints' or $old_key eq '-recurse')
293 1 1 unless ($old_constant_values)
309 1 18 if (@new_constant_values) { }
328 0 56 unless $group_by
333 2 46 if ($operator ne '=')
351 4 0 if ($v) { }
363 641 134656 unless $logic_detail
370 393 4703 UR::BoolExpr::Util::is_meta_param($_) ? :
383 0 1937 unless defined $property_name
386 825 1942 if $property_name eq $_->property_name
401 0 376 if ($sub_group) { }
402 0 0 if (substr($sub_group, -1) ne '?') { }
432 2 103878 unless ref $subject and $subject->isa($self->subject_class_name)
446 1072 1027 unless ($underlying->evaluate_subject_and_values($subject, $value))
452 0 102806 if (%$sub_group_filters)
483 815 247605 if (UR::BoolExpr::Util::is_meta_param($key)) { }
490 0 247605 unless ($property)
495 19754 227851 if ($op)
496 17697 2057 if ($op ne 'in')
497 0 17697 if ($op =~ /^(.+)-(.+)$/) { }
530 950 7549 if $self
541 2564 4419 if $iclass eq 'UR::Object'
542 0 4419 unless $iclass->isa('UR::Object')
545 0 4419 unless @id_props
546 3181 1238 if grep {$_ eq 'id';} @id_props
547 0 3835 if @id_props == 1 and $id_props[0] eq 'id' and not $id_prop_is_real
550 1238 3181 unless @id_props == 1 and $id_props[0] eq 'id'
562 380 17667 if UR::BoolExpr::Util::is_meta_param($keys[$n])
564 1638 16029 if ($pos != -1) { }
589 380 17667 if (UR::BoolExpr::Util::is_meta_param($key)) { }
599 3627 14040 if ($name eq 'id')
620 5045 2504 if (@$id_translations and @{$id_translations->[0];} == 1) { }
632 257 10434 if (UR::BoolExpr::Util::is_meta_param($key)) { }
646 3818 6616 if ($property eq 'id' or $id_related->{$property}) { }
6616 0 elsif (not UR::BoolExpr::Util::is_meta_param($key)) { }
649 7321 2496 if $alias->[0] eq $property
650 1525 971 if $check_for_duplicate_rules{$alias->[0]}
652 104 867 $op ? :
658 56 3762 unless ($op =~ /^(=|eq|in|\[\]|)$/)
677 123 7233 if (UR::BoolExpr::Util::is_meta_param($key)) { }
683 0 7233 if UR::BoolExpr::Util::is_meta_param($key)
688 786 6447 if $op
692 793 6440 if ($property eq 'id') { }
5310 1130 elsif ($id_related->{$property}) { }
698 63 2311 $op ? :
699 1093 13 if (grep {$check_for_duplicate_rules{$_};} @$alias) { }
715 5291 19 if ($op eq '' or $op eq 'eq' or $op eq '=' or $op eq 'in') { }
732 2326 178 if (my $parts = scalar keys %id_parts) { }
734 1668 658 if ($parts == @{$id_translations->[0];}) { }
736 1668 0 if (@$id_translations)
737 765 903 if (grep {$_ eq 'id';} @keys) { }
772 380 19567 if (UR::BoolExpr::Util::is_meta_param($key)) { }
783 178 19769 $_ eq $last_key ? :
801 380 19389 if (UR::BoolExpr::Util::is_meta_param($key)) { }
805 9 371 if ($key eq '-recurse') { }
75 296 elsif ($key eq '-hints' or $key eq '-hint') { }
115 181 elsif ($key eq '-order_by' or $key eq '-order') { }
51 130 elsif ($key eq '-group_by' or $key eq '-group') { }
6 124 elsif ($key eq '-page') { }
40 84 elsif ($key eq '-limit') { }
38 46 elsif ($key eq '-offset') { }
46 0 elsif ($key eq '-aggregate') { }
806 0 9 unless ref $constant_value
810 1 74 unless ref $constant_value
814 12 103 unless ref $constant_value
818 0 51 unless ref $constant_value
822 0 6 unless ref $constant_value
832 6 40 unless ref $constant_value
845 6 7543 if ($page)
846 0 6 if (defined $limit or defined $offset)
849 6 0 if (ref $page and ref $page eq 'ARRAY') { }
850 6 0 if (@$page == 2) { }
0 0 elsif (@$page) { }
861 0 7549 if (defined $hints and ref $hints ne 'ARRAY')
862 0 0 if (not ref $hints) { }
872 340 7209 if $is_no_filters
881 380 19567 if UR::BoolExpr::Util::is_meta_param($keys[$n])
885 1748 17819 if $op
886 1624 124 if ($op and $op ne 'eq' and $op ne '==' and $op ne '=')
895 323 7226 scalar @constant_values_sorted ? :
899 380 14335 UR::BoolExpr::Util::is_meta_param($_->[0]) ? :
901 1862 5687 $UR::Object::Type::bootstrapping ? :
905 4304 3244 $id eq $normalized_id ? :
1298 6250 @ambiguous_keys ? :
1298 6250 @ambiguous_property_names ? :