Branch Coverage

blib/lib/SQL/Statement/TermFactory.pm
Criterion Covered Total %
branch 38 42 90.4


line true false branch
64 39 233 unless (defined $opClasses{$op})
69 2 37 $opDialect->isa($opBase) ? :
80 30 2246 if (&_ARRAY0($pred)) { }
329 1917 elsif (defined $pred->{'op'}) { }
1915 2 elsif (defined $pred->{'type'}) { }
0 2 elsif (defined &_INSTANCE($pred, 'SQL::Statement::Term')) { }
87 56 273 if ($op eq 'USER_DEFINED' and not $pred->{'arg2'}) { }
272 1 elsif (defined $oplist{$op}) { }
1 0 elsif (defined $self->{'OWNER'}{'opts'}{'function_names'}{$op}) { }
114 25 304 if ($pred->{'neg'})
122 1093 822 if ($type =~ /^(?:STRING|NUMBER|BOOLEAN)$/) { }
24 798 elsif ($type eq 'NULL') { }
439 359 elsif ($type eq 'COLUMN') { }
28 331 elsif ($type eq 'PLACEHOLDER') { }
331 0 elsif ($type eq 'FUNCTION') { }
140 0 457 &blessed($_) ? :
142 41 290 if ($pred->{'name'} eq 'numeric_exp') { }
7 283 elsif ($pred->{'name'} eq 'str_concat') { }
10 273 elsif ($pred->{'name'} eq 'TRIM') { }
3 270 elsif ($pred->{'name'} eq 'SUBSTRING') { }
158 2 1 if &_HASH($pred->{'length'})