blib/lib/Data/Model/SQL.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 38 | 76.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
17 | 1 | 14 | 683 | @_ == 1 && ref $_[0] eq 'ARRAY' |
26 | 1 | 8 | 1104 | @_ == 1 && ref $_[0] eq 'ARRAY' |
34 | 3588 | 0 | 1132 | $self->$name and ref $self->$name eq 'ARRAY' |
39 | 1770 | 0 | 0 | $self->$name and ref $self->$name eq 'HASH' |
208 | 0 | 532 | 5 | $self->joins and @{$self->joins;} |
232 | 0 | 48 | 551 | $self->where and @{$self->where;} |
240 | 536 | 0 | 1 | $self->having and @{$self->having;} |
325 | 38 | 0 | 12 | uc $op eq 'IN' || uc $op eq 'NOT IN' and ref $v eq 'ARRAY' |
line | l | !l | condition |
---|---|---|---|
302 | 28 | 0 | $$val[0] || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
128 | 12 | 14 | 625 | lc $col eq '-and' or lc $col eq '-or' |
142 | 624 | 1 | 0 | $col =~ /^[\w\.]+$/ or ref $col eq 'SCALAR' |
302 | 1 | 7 | 21 | ref $$val[0] or ($$val[0] || '') eq '-and' |
325 | 9 | 3 | 38 | uc $op eq 'IN' || uc $op eq 'NOT IN' |