Branch Coverage

blib/lib/SQL/Translator/Utils.pm
Criterion Covered Total %
branch 57 88 64.7


line true false branch
29 580 0 unless ${"${pkg}::DEBUG";}
46 0 21 unless my $name = shift()
69 227 344 if (defined $config->{'quote_identifiers'}) { }
9 335 elsif (defined $config->{'quote_table_names'} xor defined $config->{'quote_field_names'}) { }
111 224 elsif (defined $config->{'quote_table_names'}) { }
74 0 454 if defined $config->{$_}
83 9 0 if (defined $config->{'quote_table_names'}) { }
85 0 9 unless $config->{'quote_table_names'}
86 9 0 $config->{'quote_table_names'} ? :
90 0 0 unless $config->{'quote_field_names'}
91 0 0 $config->{'quote_field_names'} ? :
97 1 110 if $config->{'quote_table_names'} xor $config->{'quote_field_names'}
99 69 41 $config->{'quote_table_names'} ? :
110 8 7 unless defined $comment_char
129 3485 8667 UNIVERSAL::isa($_[0], 'ARRAY') ? :
134 333 11819 if (@$list and ref $list->[0]) { }
144 3066 28 if defined $_
152 106 12 unless defined $desired_name and length $desired_name > $max_symbol_length
172 50 13 unless $v
179 6 7 if ($v =~ / ^ (\d+) \. (\d{1,3}) (?: \. (\d{1,3}) )? $ /x) { }
4 3 elsif ($v =~ / ^ (\d) (\d{2}) (\d{2}) $ /x) { }
2 1 elsif ($v =~ / ^ (\d+) (?: \. (\d{3}) (\d{3}) )? $ /x) { }
197 5 7 if ($target eq 'perl') { }
7 0 elsif ($target eq 'mysql') { }
198 4 11 unless $_
201 4 17 unless $_
212 13 0 unless $v
217 0 0 if ($v =~ / ^ (\d+) \. (\d{1,3}) (?: \. (\d{1,3}) )? $ /x) { }
0 0 elsif ($v =~ / ^ (\d+) (?: \. (\d{3}) (\d{3}) )? $ /x) { }
230 0 0 if ($target eq 'perl') { }
0 0 elsif ($target eq 'native') { }
231 0 0 unless $_
248 0 74 unless eval "require SQL::Translator::Parser::$type"
252 2 72 if ($type eq "DB2")
260 0 72 unless ${"SQL::Translator::Parser::${type}::GRAMMAR";}
340 0 0 unless $INC{$rel_path}
351 0 0 -f 'File::Spec'->catfile($root, 'Makefile.PL') ? :
374 924 0 defined $_ ? :
388 1 21 unless &blessed($_) and $_->isa("SQL::Translator::Utils::Error")
397 0 570 if @_
405 47 4 unless @meths
421 0 75 unless my $meth = $package->can($_)
422 36 78 ref $_ eq 'ARRAY' ? :
423 64 424 unless $diff_hash->{$_}