Branch Coverage

blib/lib/LINQ/Database/Util.pm
Criterion Covered Total %
branch 23 56 42.8


line true false branch
15 0 6 unless &blessed($selection)
16 0 6 unless $selection->isa("LINQ::FieldSet::Selection")
17 0 6 if $selection->seen_asterisk
28 0 8 if ref $orig_name
30 0 8 unless defined $aliased
41 0 5 unless &blessed($assertion)
53 0 5 if ($assertion->isa('LINQ::FieldSet::Assertion::AND')) { }
0 5 elsif ($assertion->isa('LINQ::FieldSet::Assertion::OR')) { }
0 5 elsif ($assertion->isa('LINQ::FieldSet::Assertion::NOT')) { }
5 0 elsif ($assertion->isa('LINQ::FieldSet::Assertion')) { }
70 0 0 unless my $left = assertion_to_sql($assertion->left, $name_quoter, $value_quoter)
72 0 0 unless my $right = assertion_to_sql($assertion->right, $name_quoter, $value_quoter)
81 0 0 unless my $left = assertion_to_sql($assertion->left, $name_quoter, $value_quoter)
83 0 0 unless my $right = assertion_to_sql($assertion->right, $name_quoter, $value_quoter)
92 0 0 unless my $left = assertion_to_sql($assertion->left, $name_quoter, $value_quoter)
103 1 4 unless my $field_sql = _assertion_to_sql_FIELD($field, $name_quoter, $value_quoter)
114 0 5 if ref $field->value
117 4 1 if (exists $field->params->{'is'}) { }
0 1 elsif (exists $field->params->{'in'}) { }
0 1 elsif (exists $field->params->{'like'}) { }
0 1 elsif (exists $field->params->{'to'}) { }
130 1 4 unless defined $result
132 0 4 if (exists $field->params->{'nix'})
143 0 4 if ($cmp eq "!=")
149 0 4 $field->params->{'nocase'} ? :
177 0 0 $field->params->{'nocase'} ? :
190 0 0 if ($cmp eq "!=")
196 0 0 $field->params->{'nocase'} ? :