Branch Coverage

lib/UR/Context/LoadingIterator.pm
Criterion Covered Total %
branch 81 120 67.5


line true false branch
75 14 2009 if ($offset || defined $limit and !$data_source->does_support_limit_offset($normalized_rule) || &any(sub { $_->__changes__; } , @$cached)) { }
5 2004 elsif ($offset) { }
98 2 3 if ($offset > @$cached) { }
140 96 1904 if ($normalized_rule->template->order_by)
145 19 24 if exists $order_by_properties{$prop_name}
152 6 0 if exists $bx_filter_properties{$prop_name}
160 18 105279 if defined $limit and not $limit
165 105221 203 if ($underlying_context_iterator and not defined $next_obj_underlying_context)
168 0 105208 if $is_monitor_query and defined $next_obj_underlying_context
170 103248 1960 if (defined $next_obj_underlying_context)
171 1 103247 if ($next_obj_underlying_context->isa('UR::DeletedRef')) { }
8 206462 elsif ($next_obj_underlying_context->__changes__ and &$change_is_order_by_property($next_obj_underlying_context)) { }
180 6 2 unless (delete $changed_objects_that_might_be_db_deleted{$next_obj_underlying_context->id})
189 105219 183 unless (defined $next_obj_current_context)
191 0 105219 if $is_monitor_query and $next_obj_current_context
193 1 105401 if (defined $next_obj_current_context and $next_obj_current_context->isa('UR::DeletedRef'))
202 2113 103288 if (not defined $next_obj_underlying_context) { }
0 104524 elsif (defined $last_loaded_id and $last_loaded_id eq $next_obj_underlying_context->id) { }
204 0 2113 if ($is_monitor_query)
214 2110 3 if ($db_results_should_be_complete)
244 919 104480 if (defined $next_obj_underlying_context and defined $next_obj_current_context)
249 103288 2111 if defined $next_obj_underlying_context
251 1077 104322 if defined $next_obj_current_context
255 684 104715 if (defined $next_obj_underlying_context and defined $next_obj_current_context and $comparison_result == 0) { }
102553 2162 elsif (defined $next_obj_underlying_context and !defined($next_obj_current_context) || $comparison_result < 0) { }
209 1953 elsif (defined $next_obj_current_context and !defined($next_obj_underlying_context) || $comparison_result > 0) { }
1953 0 elsif (not defined $next_obj_current_context || defined $next_obj_underlying_context) { }
262 0 684 if $is_monitor_query
280 3 102550 if ($next_obj_underlying_context->__changes__) { }
283 0 3 if (&$change_is_order_by_property($next_obj_underlying_context)) { }
3 0 elsif (&$change_is_bx_filter_property($next_obj_underlying_context)) { }
290 0 0 unless (delete $changed_objects_that_might_be_db_deleted{$next_obj_underlying_context_id})
328 84 125 if (not $next_obj_current_context->isa('UR::Object::Set') and $context->object_exists_in_underlying_context($next_obj_current_context)) { }
332 14 70 if ($next_obj_current_context->__changes__) { }
333 11 3 if (&$change_is_order_by_property($next_obj_current_context)) { }
3 0 elsif (&$change_is_bx_filter_property($next_obj_current_context)) { }
340 8 3 unless (delete $db_seen_ids_that_are_not_deleted{$next_obj_current_context_id})
378 0 70 if (delete $db_seen_ids_that_are_not_deleted{$next_obj_current_context_id}) { }
21 49 elsif ($normalized_rule->is_id_only) { }
398 28 21 if ($requery_obj) { }
447 0 684 unless defined $next_object
451 63 103310 if (defined $next_object and defined $offset and $offset)
457 103310 1953 if defined $next_object
459 62 105201 if defined $limit
484 90 1910 if keys %all_loading_iterators > 1
495 2000 0 if ($iter_data->[0] eq $self) { }
502 0 2000 if ($context and $context->monitor_query)
509 1999 1 if keys %all_loading_iterators < 2
530 0 0 if $iter_name eq $iterator_to_skip
533 0 0 if ($rule->evaluate($new_object))
538 0 0 if $cached_object->isa('UR::DeletedRef')
542 0 0 if ($comparison < 0) { }
0 0 elsif ($comparison == 0) { }
566 42 0 if not defined $iterator_to_skip or $iter_name eq $iterator_to_skip
569 0 0 if defined $iterator_to_skip and $loading_iterator eq $iterator_to_skip
571 0 0 if ($rule->evaluate($disappearing_object))
576 0 0 if $cached_object->isa('UR::DeletedRef')
580 0 0 if ($comparison == 0) { }
0 0 elsif ($comparison < 0) { }
601 0 0 if exists $hash->{$prop_name}