Branch Coverage

blib/lib/Fey/SQL/Select.pm
Criterion Covered Total %
branch 66 72 91.6


line true false branch
112 92 0 @_ ? :
120 54 41 &blessed($elt) ? :
128 0 1 if $_[0]->_has_is_distinct_on
137 0 0 if $_[0]->is_distinct
158 10 5 $is_outer_join && @_ == 3 ? :
1 15 $is_outer_join && @_ == 4 && $_[3]->isa('Fey::FK') ? :
2 16 $is_outer_join && @_ == 4 && $_[3]->isa('Fey::SQL::Where') ? :
1 18 $is_outer_join && @_ == 5 ? :
23 19 $is_inner_join && @_ == 2 ? :
2 42 $is_inner_join && @_ == 3 && $_[2]->isa('Fey::FK') ? :
1 44 $is_inner_join && @_ == 3 && $_[2]->isa('Fey::SQL::Where') ? :
1 45 $is_inner_join && @_ == 4 && $_[3]->isa('Fey::SQL::Where') ? :
6 46 @_ == 1 && &blessed($_[0]) && $_[0]->can('does') && $_[0]->does('Fey::Role::SQL::ReturnsData') ? :
65 52 @_ == 1 && &blessed($_[0]) && $_[0]->can('is_joinable') && $_[0]->is_joinable ? :
203 5 112 unless $meth
246 1 1 @_ == 3 ? :
261 49 2 if &blessed($_) and $_->can('is_joinable')
262 4 23 unless &all(sub { ; } , @_[0, 1])
272 2 27 unless (@fk == 1)
275 1 1 unless @fk
299 7 1 unless $fk
317 1 2 $_[3]->isa('Fey::FK') ? :
319 1 2 $_[4] ? :
332 1 13 unless $_[1] =~ /^(?:left|right|full)$/i
336 2 11 unless $_[0]->can('is_joinable') and $_[0]->is_joinable and $_[2]->can('is_joinable') and $_[2]->is_joinable
346 6 1 @_ ? :
392 1 86 if ($self->is_distinct) { }
0 86 elsif ($self->_has_is_distinct_on) { }
401 6 86 $_->can('sql_for_select_clause') ? :
426 110 5 $frag->can('tables') ? :
430 2 113 unless length $join_sql
442 0 113 if ($sql =~ /\)^/) { }
8 105 elsif (($from[$i + 1] || '') =~ /^[\w\s]*JOIN/) { }
3 102 elsif ($from[$i + 1]) { }
460 77 5 unless $self->_has_group_by_elements
475 77 17 unless $self->_has_having_elements