Branch Coverage

blib/lib/Pg/SQL/PrettyPrinter/Node/FuncCall.pm
Criterion Covered Total %
branch 77 94 81.9


line true false branch
78 4 43 if ($self->{'func_variadic'})
81 0 4 unless $last_type =~ /\A(?:A_ArrayExpr|SubLink)\z/u
89 47 55 unless (exists $self->{'_funcname'})
97 47 11 unless exists $self->{'over'}
105 9 2 if (exists $O->{'partitionClause'})
108 9 2 if (exists $O->{'orderClause'})
116 1 10 if 0 == scalar @parts
123 31 11 unless exists $self->{'over'}
131 9 2 if (exists $O->{'partitionClause'})
134 9 2 if (exists $O->{'orderClause'})
142 1 10 if 0 == scalar @parts
145 2 8 if 1 == scalar @parts
162 0 22 unless defined $FO
165 8 14 unless $FO & $FRAMEOPTION_NONDEFAULT
170 4 10 if ($FO & $FRAMEOPTION_RANGE) { }
8 2 elsif ($FO & $FRAMEOPTION_ROWS) { }
2 0 elsif ($FO & $FRAMEOPTION_GROUPS) { }
185 4 10 if ($FO & $FRAMEOPTION_START_UNBOUNDED_PRECEDING) { }
2 8 elsif ($FO & $FRAMEOPTION_START_CURRENT_ROW) { }
6 2 elsif ($FO & $FRAMEOPTION_START_OFFSET_PRECEDING) { }
2 0 elsif ($FO & $FRAMEOPTION_START_OFFSET_FOLLOWING) { }
201 4 10 if ($FO & $FRAMEOPTION_BETWEEN) { }
205 2 2 if ($FO & $FRAMEOPTION_END_UNBOUNDED_FOLLOWING) { }
0 2 elsif ($FO & $FRAMEOPTION_END_CURRENT_ROW) { }
0 2 elsif ($FO & $FRAMEOPTION_END_OFFSET_PRECEDING) { }
2 0 elsif ($FO & $FRAMEOPTION_END_OFFSET_FOLLOWING) { }
233 2 12 if ($FO & $FRAMEOPTION_EXCLUDE_CURRENT_ROW) { }
2 10 elsif ($FO & $FRAMEOPTION_EXCLUDE_GROUP) { }
2 8 elsif ($FO & $FRAMEOPTION_EXCLUDE_TIES) { }
250 0 58 if (exists $self->{'agg_filter'})
255 8 50 if ($self->{'agg_star'})
256 0 8 $agg_order ? :
259 3 47 unless (exists $self->{'args'})
260 3 0 unless $agg_order
265 4 43 if ($self->{'func_variadic'})
269 0 47 if $agg_order
275 100 0 unless exists $self->{'agg_order'}
283 0 42 if (exists $self->{'agg_filter'})
288 7 35 if ($self->{'agg_star'})
289 0 7 $agg_order ? :
292 3 32 unless (exists $self->{'args'})
293 3 0 unless $agg_order
298 4 28 if ($self->{'func_variadic'})
302 0 32 if $agg_order
303 19 13 if (1 == scalar @{$self->{'args'};} and 40 > length $args_str)
311 3 10 if ($self->{'func_variadic'})
316 0 13 if $agg_order