Condition Coverage

blib/lib/DBIx/Class/SQLMaker/Util.pm
Criterion Covered Total %
condition 107 121 88.4


and 3 conditions

line !l l&&!r l&&r condition
127 5 5 444 defined $chunk && length $chunk
0 444 10 $where_is_anded_array and not defined $chunk && length $chunk
164 3053 18 89 ref $_ eq 'ARRAY' && ($_->[0] || '') =~ /^\-and$/i
194 68 88 7349 defined $where->[$i] and length $where->[$i]
209 206 347 369 @keys == 1 and not $keys[0] =~ /^\-/
239 0 43 4333 ref $fin_idx->{$_} eq 'HASH' and keys %{$$fin_idx{$_};} == 1
242 4197 0 136 ref $r eq 'ARRAY' and @$r == 1 && $l =~ /^\-and$/i || $l =~ /^\-or$/i
3438 0 759 ref $r eq 'HASH' and keys %$r == 1
3438 759 0 ref $r eq 'HASH' and keys %$r == 1 and $l =~ /^\-(?:and|or)$/i
282 43627 336 3269 $fin->{'-and'} and @{$fin->{'-and'};} < 2
291 1437 0 1832 ref $and->[0] eq 'HASH' and not grep({exists $fin->{$_};} keys %{$$and[0];})
308 51178 215 2671 ref $fin->{$col} eq 'ARRAY' and ($fin->{$col}[0] || '') =~ /^\-and$/i
346 26454 19181 6 ref $rhs eq 'HASH' and not keys %$rhs
26454 447 18734 ref $rhs eq 'HASH' and keys %$rhs == 1
26901 18734 0 ref $rhs eq 'HASH' and keys %$rhs == 1 and exists $rhs->{'-ident'}
26454 447 7442 ref $rhs eq 'HASH' and keys %$rhs == 1
26901 7391 51 ref $rhs eq 'HASH' and keys %$rhs == 1 and exists $rhs->{'-value'}
7391 18 33 ref $rhs eq 'HASH' and keys %$rhs == 1 and exists $rhs->{'-value'} and &is_plain_value($rhs->{'-value'})
26454 447 7409 ref $rhs eq 'HASH' and keys %$rhs == 1
26901 7409 0 ref $rhs eq 'HASH' and keys %$rhs == 1 and exists $rhs->{'='}
26126 447 3226 ref $rhs eq 'HASH' and (my($subop) = keys %$rhs) == 1
26573 2439 787 ref $rhs eq 'HASH' and (my($subop) = keys %$rhs) == 1 and length ref((values %$rhs)[0])
2886 762 25 ref $rhs eq 'HASH' and (my($subop) = keys %$rhs) == 1 and length ref((values %$rhs)[0]) and my $vref = &is_plain_value(scalar((values %$rhs)[0]))
357 1459 1456 1268 length ref $rhs->{'='} and &is_literal_value($rhs->{'='})
466 8006 223 1557 ref $v eq 'HASH' and keys %$v == 1
341 1158 87 ref $v eq 'ARRAY' and ($v->[0] || '') eq '-and'
474 126 1419 0 length ref $v->{'='} and ref $v->{'='} eq 'HASH' && keys %{$$v{'='};} == 1 && exists $v->{'='}{'-ident'} || &is_literal_value($v->{'='})
516 2721 5450 5 not $consider_nulls and exists $vals->{'UNDEF'}

or 2 conditions

line l !l condition
198 1175 6174 ($where->[$i] =~ /^(\-(?:and|or))$/i)[0] || ''
224 1540 593 normalize_sqla_condition($where->[$i]) || (next)
308 2816 70 $fin->{$col}[0] || ''
391 257 5 $rhs->[0] || ''
466 537 708 $v->[0] || ''

or 3 conditions

line l !l&&r !l&&!r condition
28 12970 105 0 $dd_obj ||= do { require Data::Dumper; local $Data::Dumper::Indent = 0 unless defined $Data::Dumper::Indent; my $d = 'Data::Dumper'->new([])->Indent('0')->Purity(0)->Pad('')->Useqq(0)->Terse(1)->Freezer('')->Toaster('')->Deepcopy(0)->Quotekeys(0)->Bless('bless')->Pair(' => ')->Maxdepth(0)->Useperl(0)->Sortkeys(1)->Deparse(0); if (&modver_gt_or_eq('Data::Dumper', '2.136')) { $d->Sparseseen(1); if (&modver_gt_or_eq('Data::Dumper', '2.153')) { $d->Maxrecurse(1000); if (&modver_gt_or_eq('Data::Dumper', '2.160')) { $d->Trailingcomma(0); } ; } ; } ; $d }
95 4759 37337 5194 $where_is_anded_array or ref $where eq 'HASH'
202 865 310 0 ref $where->[$i] eq 'HASH' or ref $where->[$i] eq 'ARRAY'
242 122 14 0 @$r == 1 && $l =~ /^\-and$/i || $l =~ /^\-or$/i
310 978 0 4352 !length(ref $_) || &is_plain_value($_)
378 1395 13 25 !length(ref $r) || ref $r eq 'HASH' && keys %$rhs == 1 && exists $rhs->{'='} || &is_plain_value($r)
466 6607 36 1586 not length ref $v or &is_plain_value($v)
474 942 467 10 ref $v->{'='} eq 'HASH' && keys %{$$v{'='};} == 1 && exists $v->{'='}{'-ident'} || &is_literal_value($v->{'='})
510 81 0 44 !length(ref $subval->{$c}) || &is_plain_value($subval->{$c})