Branch Coverage

blib/lib/Data/Range/Compare/Stream/Iterator/Compare/Asc.pm
Criterion Covered Total %
branch 61 76 80.2


line true false branch
10 21 166 unless $self->prepared
16 0 40 if $self->prepared
27 0 97 unless ($iterator->has_next)
35 57 40 if (defined $min_range_start) { }
39 10 47 if ($common_raw->cmp_range_start($common_start) == -1)
43 14 43 if ($common_raw->cmp_range_end($common_end) == -1)
51 82 15 if $iterator->has_next
65 7 90 if ($next_range->contains_value($cmp_end))
66 2 5 if ($next_range->cmp_values($next_range->range_end, $cmp_end) == 1)
85 0 12 if $id < 0
86 0 12 if $id > $self->get_column_count
90 3 9 if $raw->overlap($current)
96 0 0 if not defined $id or $id < 0 or $id > $#{$$self{'raw_row'};}
103 8 4 if $self->iterator_in_use($id)
121 0 0 if not defined $id or $id < 0 or $id > $#{$$self{'raw_row'};}
127 0 0 if not defined $id or $id < 0 or $id > $#{$$self{'raw_row'};}
128 0 0 unless defined $raw_result
135 1 295 unless $self->prepared
138 0 296 unless defined $current_row
158 111 768 if ($#$column_map < $id)
161 16 95 if ($iterator->is_child) { }
173 78 801 if ($$dead_columns[$id] and not $iterator->has_next)
187 402 399 if ($current_row->overlap($cmp)) { }
193 46 353 if ($current_row->cmp_range_end($cmp) == 1)
199 251 550 if ($cmp->cmp_ranges($current_row) == 0 or $cmp->cmp_range_end($current_row) == 0)
200 146 105 if ($iterator->has_next)
209 299 502 if ($iterator->has_next) { }
215 451 350 if (defined $next_range) { }
218 87 364 if ($next_range->contains_value($cmp_end)) { }
80 511 elsif ($next_range->cmp_range_end($cmp) == 1 and $cmp->cmp_values($next_range_start, $cmp->range_end) != 1) { }
220 87 0 if ($next_range->cmp_values($next_range->range_end, $cmp_end) != -1)
240 101 249 if ($cmp->cmp_values($next_range_start, $cmp_end) != 1) { }
155 94 elsif ($cmp->cmp_values($next_range_start, $cmp->range_end) != 1) { }
258 505 296 if (defined $max_range_end) { }
259 118 387 if $max_range_end->cmp_range_end($cmp) == -1
263 46 755 if ($is_dead == 2) { }
272 40 256 if ($$self{'last_row'}) { }
276 0 256 unless (defined $next_range)