| blib/lib/SQL/Translator/Producer/SQLite.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 31 | 51 | 60.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 66 | 0 | 4 | 3 | $translator->quote_identifiers and $translator->quote_identifiers ne "0E0" |
| 144 | 4 | 0 | 2 | exists $extra->{'temporary'} and $extra->{'temporary'} |
| 146 | 4 | 0 | 2 | exists $extra->{'if_not_exists'} and $extra->{'if_not_exists'} |
| 198 | 25 | 0 | 0 | $table->comments and not $no_comments |
| 218 | 9 | 14 | 0 | @pk_fields and not grep(/INTEGER PRIMARY KEY/, @field_defs) |
| 448 | 1 | 0 | 4 | @{$diffs->{'rename_field'};} == 0 and @{$diffs->{'alter_field'};} == 0 |
| 1 | 2 | 2 | @{$diffs->{'rename_field'};} == 0 and @{$diffs->{'alter_field'};} == 0 and @{$diffs->{'drop_field'};} == 0 | |
| 462 | 0 | 3 | 0 | $diffs->{'rename_table'} and @{$diffs->{'rename_table'};} |
| line | l | !l | condition |
|---|---|---|---|
| 112 | 0 | 22 | $scope ||= \%global_names |
| 172 | 0 | 25 | $options->{'sqlite_version'} || 0 |
| 367 | 4 | 0 | $trigger->action->{'steps'} || [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 41 | 184 | 5 | 0 | $nonquoting_generator ||= "SQL::Translator::Generator::DDL::SQLite"->new("quote_chars", []) |
| 485 | 3 | 0 | $NO_QUOTES ? $nonquoting_generator ||= "SQL::Translator::Generator::DDL::SQLite"->new("quote_chars", []) : $quoting_generator ||= "SQL::Translator::Generator::DDL::SQLite"->new | |
| 99 | 0 | 0 | 2 | $head || () |
| 101 | 1 | 0 | 4 | $head || () |
| 218 | 2 | 0 | 23 | scalar @pk_fields > 1 or @pk_fields and not grep(/INTEGER PRIMARY KEY/, @field_defs) |
| 297 | 10 | 1 | 0 | $index->name || "${index_table_name}_idx" |
| 317 | 10 | 1 | 0 | $c->name || "${index_table_name}_idx" |