Branch Coverage

blib/lib/Pg/SQL/PrettyPrinter/Node/FuncCall.pm
Criterion Covered Total %
branch 69 78 88.4


line true false branch
77 4 43 if ($self->{'func_variadic'})
80 0 4 unless $last_type =~ /\A(?:A_ArrayExpr|SubLink)\z/u
88 47 55 unless (exists $self->{'_funcname'})
96 47 11 unless exists $self->{'over'}
104 9 2 if (exists $O->{'partitionClause'})
107 9 2 if (exists $O->{'orderClause'})
115 1 10 if 0 == scalar @parts
122 31 11 unless exists $self->{'over'}
130 9 2 if (exists $O->{'partitionClause'})
133 9 2 if (exists $O->{'orderClause'})
141 1 10 if 0 == scalar @parts
144 2 8 if 1 == scalar @parts
161 0 22 unless defined $FO
164 8 14 unless $FO & $FRAMEOPTION_NONDEFAULT
169 4 10 if ($FO & $FRAMEOPTION_RANGE) { }
8 2 elsif ($FO & $FRAMEOPTION_ROWS) { }
2 0 elsif ($FO & $FRAMEOPTION_GROUPS) { }
184 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) { }
200 4 10 if ($FO & $FRAMEOPTION_BETWEEN) { }
204 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) { }
232 2 12 if ($FO & $FRAMEOPTION_EXCLUDE_CURRENT_ROW) { }
2 10 elsif ($FO & $FRAMEOPTION_EXCLUDE_GROUP) { }
2 8 elsif ($FO & $FRAMEOPTION_EXCLUDE_TIES) { }
249 0 58 if (exists $self->{'agg_filter'})
253 8 50 if $self->{'agg_star'}
254 3 47 unless exists $self->{'args'}
257 4 43 if ($self->{'func_variadic'})
268 0 42 if (exists $self->{'agg_filter'})
272 7 35 if $self->{'agg_star'}
273 3 32 unless exists $self->{'args'}
276 4 28 if ($self->{'func_variadic'})
280 19 13 if (1 == scalar @{$self->{'args'};} and 40 > length $args_str)
288 3 10 if ($self->{'func_variadic'})