Branch Coverage

blib/lib/Mysql/PrettyPrinter.pm
Criterion Covered Total %
branch 0 108 0.0


line true false branch
74 0 0 if (defined $sql) { }
88 0 0 if length $$self{'sql'}
96 0 0 if (%param)
99 0 0 if (exists $param{'sql'})
102 0 0 if ($$self{'_pending'} and length $$self{'sql'})
111 0 0 if (scalar @toks) { }
119 0 0 if ($$self{'_pending'})
122 0 0 wantarray ? :
128 0 0 if ($$self{'_pending'})
138 0 0 if (not ref $self) { }
0 0 elsif ($$self{'_pending'}) { }
157 0 0 if ($self->_is_keyword(uc $token)) { }
0 0 elsif ($token =~ /^[,.;\(\)]$/) { }
0 0 elsif ($$self{'_pending_nl'}) { }
172 0 0 if ($token eq '(') { }
0 0 elsif ($token eq ')') { }
0 0 elsif ($token eq ',') { }
0 0 elsif ($token eq ';') { }
0 0 elsif ($token eq 'UNION') { }
0 0 elsif ($token eq 'JOIN') { }
0 0 elsif ($token eq 'ON') { }
0 0 elsif ($token eq 'CASE') { }
0 0 elsif ($token eq 'END' and $$self{'_conditioning'}) { }
0 0 elsif ($self->_is_keyword($token) == 1) { }
0 0 elsif ($self->_is_keyword($token) == 2) { }
0 0 elsif ($self->_is_keyword($token) == 3) { }
0 0 elsif ($self->_is_keyword($token)) { }
0 0 elsif ($token =~ /^"[^"']*"$/) { }
0 0 elsif ($token =~ /^'.*'$/) { }
0 0 elsif ($token =~ /^\d+$/) { }
0 0 elsif ($self->_next_token eq '(') { }
179 0 0 unless uc $self->_next_token eq 'AS' or $self->_next_token eq ','
199 0 0 unless ($self->_is_keyword($$self{'_previous'}))
206 0 0 if ($self->_is_keyword($self->_next_keyword) == 3)
221 0 0 unless $$self{'_previous'} eq '('
222 0 0 if ($$self{'_joining'})
231 0 0 if ($$self{'_joining'})
279 0 0 if ($$self{'wrap'})
281 0 0 if ($type eq 'K' and exists $$self{'wrap'}{'keyword'}) { }
0 0 elsif ($type eq 'F' and exists $$self{'wrap'}{'function'}) { }
0 0 elsif ($type eq 'L' and exists $$self{'wrap'}{'literal'}) { }
0 0 elsif ($type eq 'C' and exists $$self{'wrap'}{'comment'}) { }
307 0 0 if ($token =~ /^[,.;]$/ or $$self{'_previous'} eq '.') { }
0 0 elsif ($token eq '(' and not $self->_is_keyword($$self{'_previous'}) and not $$self{'_previous'} eq ',') { }
338 0 0 if $$self{'_level'} > 0
346 0 0 if ($$self{'_blank_line'}) { }
357 0 0 unless $$self{'_blank_line'}
362 0 0 scalar @{$_[0]{'tokens'};} ? :
368 0 0 if ($self->_is_keyword(uc $$self{'tokens'}[$i]))
375 0 0 defined $_[1] && exists $$Keyword{$_[1]} ? :
410 0 0 if $omit_whitespace_tokens
411 0 0 wantarray ? :
417 0 0 if (ref $class)
423 0 0 if ($@)