Branch Coverage

blib/lib/LINQ/Database/Table.pm
Criterion Covered Total %
branch 28 36 77.7


line true false branch
33 3 0 unless (defined $self->sql_select)
35 3 0 if $columns
45 3 1 unless (defined $self->sql_where or defined $self->sql_select)
47 2 1 if $filter
79 3 4 defined $self->sql_select ? :
83 7 32 unless ($started)
87 7 32 unless local $_ = $sth->fetchrow_hashref
95 3 4 defined $self->sql_select ? :
96 3 4 if (ref $sql_select)
103 2 5 defined $self->sql_where ? :
104 2 5 if (ref $sql_where)
112 1 6 if ($self->_join_info)
113 0 1 $self->_join_info->[0] =~ /^-(?:left|right|inner)$/ ? :
0 1 $sql_where ? :
128 2 4 $sql_where ? :
139 0 1 if (@_ == 6) { }
148 1 0 if (&Scalar::Util::blessed($self) and $self->isa("LINQ::Database::Table") and &Scalar::Util::blessed($other) and $other->isa("LINQ::Database::Table") and &Scalar::Util::blessed($field1) and $field1->isa("LINQ::FieldSet::Single") and &Scalar::Util::blessed($field2) and $field2->isa("LINQ::FieldSet::Single") and $joiner eq "-auto" and $self->database == $other->database and not $self->_join_info and not $other->_join_info and not $other->sql_where and not $other->sql_select)
162 0 0 if ($joiner eq "-auto")