Condition Coverage

blib/lib/DBIx/Class/SQLMaker.pm
Criterion Covered Total %
condition 39 73 53.4


and 3 conditions

line !l l&&!r l&&r condition
48 3 0 5 defined $_[0]{'quote_char'} && length $_[0]{'quote_char'}
55 0 0 0 defined $_[0]{'quote_char'} and length $_[0]{'quote_char'}
102 135642 0 1202 $_[0]{'_dequalify_idents'} && !ref($_[1])
217 0 9204 2 ref $_[2] eq 'HASH' and not keys %{$_[2];}
241 0 0 421 $ref eq 'REF' and ref $$fields eq 'ARRAY'
262 877 2 1 lc $func eq 'distinct' and ref $rhs eq 'ARRAY'
879 0 1 lc $func eq 'distinct' and ref $rhs eq 'ARRAY' and @$rhs > 1
327 4016 1 6221 ref $arg eq 'HASH' and not grep({$_ =~ /^-(?:desc|asc)/i;} keys %$arg)
344 688 224 647 $1 && uc $1 eq 'DESC'
353 1084 0 1 $ref eq 'REF' and ref ${$_[1];} eq 'ARRAY'
395 0 1542 1740 ref $to_jt eq 'HASH' and defined $to_jt->{'-join_type'}
423 12303 0 248 ref $fromspec eq 'REF' and ref $$fromspec eq 'ARRAY'
455 0 0 3282 ref $cond eq 'HASH' and keys %$cond == 1
0 3258 24 ref $cond eq 'HASH' and keys %$cond == 1 and (keys %$cond)[0] =~ /\./
3258 11 13 ref $cond eq 'HASH' and keys %$cond == 1 and (keys %$cond)[0] =~ /\./ and not ref((values %$cond)[0])
495 0 0 0 ref $lhs eq 'REF' and ref $$lhs eq 'ARRAY'
498 0 0 0 ref $_ eq 'REF' and ref $$_ eq 'ARRAY'

or 2 conditions

line l !l condition
127 133 7770 $offset ||= 0
223 0 2 $_[3] || {}

or 3 conditions

line l !l&&r !l&&!r condition
55 3164 0 0 wantarray or defined $_[0]{'quote_char'} and length $_[0]{'quote_char'}
124 0 0 133 $offset =~ /\D/ or $offset < 0
130 0 0 1676 $limit =~ /\D/ or $limit <= 0
203 1 0 0 $for_syntax->{$type} || $self->throw_exception("Unknown SELECT .. FOR type '${type}' requested")
217 0 2 9204 not $_[2] or ref $_[2] eq 'HASH' and not keys %{$_[2];}
495 0 0 0 not ref $lhs or ref $lhs eq 'ARRAY'