Branch Coverage

blib/lib/JsonSQL/Query/Select.pm
Criterion Covered Total %
branch 38 64 59.3


line true false branch
37 0 5 if (eval { do { $self->is_error } })
44 0 5 if (eval { do { $selecthashref->is_error } })
49 1 4 if (defined $selecthashref->{'defaultschema'})
54 4 1 if (defined $selecthashref->{'from'})
56 0 4 if (eval { do { $selectfrom->is_error } }) { }
63 1 4 if (defined $selecthashref->{'joins'})
65 0 1 if (eval { do { $selectjoins->is_error } }) { }
74 0 5 unless ($fromExists or $joinsExist)
83 4 1 if ($fromExists)
91 1 4 if (eval { do { $selectfields->is_error } })
95 4 0 if (@{$selectfields;}) { }
106 1 3 if (defined $selecthashref->{'where'})
108 0 1 if (eval { do { $selectwhere->is_error } }) { }
115 0 4 if (defined $selecthashref->{'groupby'})
117 0 0 if (eval { do { $selectgroupby->is_error } }) { }
124 0 4 if (defined $selecthashref->{'having'})
126 0 0 if (eval { do { $selecthaving->is_error } }) { }
133 0 4 if (defined $selecthashref->{'orderby'})
135 0 0 if (eval { do { $selectorderby->is_error } }) { }
142 0 4 if (defined $selecthashref->{'limit'})
146 0 4 if (defined $selecthashref->{'offset'})
150 0 4 if (@select_errors) { }
167 1 5 if (ref $field eq 'HASH') { }
174 3 1 if (defined $self->{'_selectFrom'})
180 1 3 if (defined $self->{'_selectJoins'})
186 1 3 if (defined $self->{'_selectWhere'})
191 0 4 if (defined $self->{'_selectGroupBy'})
202 0 4 if (defined $self->{'_selectOrderBy'})
205 0 0 if (ref $ordering eq 'ARRAY') { }
217 0 4 if (defined $self->{'_selectLimit'})
221 0 4 if (defined $self->{'_selectOffset'})
228 0 4 if ($self->{'_selectDistinct'} eq 'true')