Branch Coverage

blib/lib/DBIx/Class/SQLMaker/LimitDialects.pm
Criterion Covered Total %
branch 84 98 85.7


line true false branch
52 43 1548 if ($offset)
69 2 1 if ($offset)
108 4 10 if (my $extra_order_sel = $sq_attrs->{'order_supplement'})
122 16 12 unless $map
164 0 10 unless $sql =~ s/^ \s* SELECT \s+ //xi
175 8 2 $offset ? :
195 0 10 unless $sql =~ s/^ \s* SELECT \s+ //xi
204 8 2 $offset ? :
254 4 10 unless ($offset)
275 3 7 if ($rs_attrs->{'order_by'} and $rs_attrs->{'result_source'}->schema->storage->_order_by_is_stable(@{$rs_attrs;}{'from', 'order_by', 'where'})) { }
317 9 40 if (not $rs_attrs->{'offset'}) { }
328 25 15 if ($sq_attrs->{'order_by_requested'}) { }
335 0 25 unless $rs_attrs->{'result_source'}->schema->storage->_order_by_is_stable($rs_attrs->{'from'}, $requested_order, $rs_attrs->{'where'})
347 0 15 unless $rs_attrs->{'result_source'}->_identifying_column_set
356 22 34 if ref $ch eq 'ARRAY'
361 9 47 $is_desc ? :
368 19 21 if (my $extra_order_sel = $sq_attrs->{'order_supplement'})
388 29 51 unless $map
429 21 5 $offset ? :
437 21 5 if $offset
446 13 8 if $offset and $lim->{'order_by_requested'} || $lim->{'selection_middle'} ne $lim->{'selection_outer'}
483 19 4 $offset ? :
491 19 4 if $offset
502 12 7 if $offset and $lim->{'order_by_requested'} || $lim->{'selection_middle'} ne $lim->{'selection_outer'}
541 0 24 unless $rs_attrs->{'order_by'}
550 0 24 unless $usable_order_colinfo
553 0 24 if not keys %{{} unless $usable_order_colinfo;} or grep {$_->{'-source_alias'} ne $rs_attrs->{'alias'};} values %$usable_order_colinfo
566 72 12 ref $_ ? :
575 15 9 if ($self->quote_char)
595 38 32 $is_desc ? :
603 38 32 $is_desc[$i] ? :
612 24 46 if ($ci->{'is_nullable'})
615 14 10 $is_desc[$i] ? :
14 10 $is_desc[$i] ? :
639 15 9 if ($offset) { }
660 0 24 if @{$self->{'order_bind'};}
718 0 101 unless ref $rs_attrs eq 'HASH'
723 0 101 unless ($rs_attrs->{'_selector_sql'} and $proto_sql =~ s/^ \s* SELECT \s* \Q$rs_attrs->{'_selector_sql'}\E//xi)
738 0 425 ref $s eq 'HASH' ? :
740 47 378 length ref $s ? :
759 47 378 length ref $s ? :
766 384 41 unless $sql_sel =~ / (?: ^ | \W ) \? (?: \W | $ ) /x
768 0 425 if $sql_alias
773 378 47 if (not ref $s and $sql_sel =~ / $re_sep (.+) $/x)
788 163 262 if (not $$in_sel_index{$node->{'sql'}} or $node->{'as'} =~ / (?{'unquoted_sql'} =~ / (?
803 0 262 ref $node->{'arg'} ? :
811 106 30 if ref $chunk eq 'ARRAY'
814 81 55 if $in_sel_index->{$chunk}
817 0 55 unless $extra_order_sel