Condition Coverage

blib/lib/SQL/Translator/Producer/PostgreSQL.pm
Criterion Covered Total %
condition 85 113 75.2


and 3 conditions

line !l l&&!r l&&r condition
309 0 0 0 $basename ne $basename_orig and $critical
476 8 0 1 exists $extra->{'temporary'} and $extra->{'temporary'}
477 8 0 1 exists $extra->{'materialized'} and $extra->{'materialized'}
515 1 84 4 not $attach_comments and my $comments = $field->comments
530 82 5 2 $postgres_version >= "8.003" and $data_type eq "enum"
683 46 18 0 not @fields and $c->type ne "CHECK"
773 0 16 1 defined $size[0] and $size[0] > 11
788 0 11 1 defined $size[0] and $size[0] > 6
794 0 2 14 defined $size[0] and $size[0] > 0
819 56 6 69 defined $size[0] and $size[0] > 0
62 64 5 defined $size[0] and $size[0] > 0 and $data_type =~ /^time/i
56 6 64 defined $size[0] and $size[0] > 0
871 11 5 6 not $to_field->is_nullable and $from_field->is_nullable
879 13 5 4 not $from_field->is_nullable and $to_field->is_nullable
905 14 4 3 defined $default_value and $to_dt =~ /^(character|text|timestamp|date)/imsx
911 14 5 3 defined $new_default and !defined($old_default) || $old_default ne $new_default
924 8 13 1 not defined $new_default and defined $old_default

or 2 conditions

line l !l condition
296 0 0 shift() || ''
297 0 0 shift() || ''
298 0 0 shift() || ''
299 0 0 shift() || ''
316 0 0 $scope ||= \%global_names
349 18 2 $options->{'no_comments'} || 0
350 16 4 $options->{'add_drop_table'} || 0
351 0 20 $options->{'postgres_version'} || 0
352 18 2 $options->{'type_defs'} || {}
457 2 7 $options->{'postgres_version'} || 0
506 61 28 $options->{'constraint_defs'} || []
507 7 82 $options->{'postgres_version'} || 0
508 63 26 $options->{'type_defs'} || {}
511 79 10 $field_name_scope{$table_name} ||= {}
527 2 87 $extra{'list'} || []
613 1 14 $options->{'postgres_version'} || 0
621 15 0 $index->type || 'NORMAL'
677 40 24 $c->name || ''
736 0 12 $trigger->scope || ''

or 3 conditions

line l !l&&r !l&&!r condition
125 79 4 0 $quoting_generator ||= "SQL::Translator::Generator::DDL::PostgreSQL"->new
237 2 0 normalize_quote_options($options) ? $quoting_generator ||= "SQL::Translator::Generator::DDL::PostgreSQL"->new : $nonquoting_generator ||= "SQL::Translator::Generator::DDL::PostgreSQL"->new("quote_chars", [])
531 1 1 0 $extra{'custom_type_name'} || $field->table->name . '_' . $field->name . '_type'
619 15 0 0 $index->name || join('_', $table_name, 'idx', ++$index_name{$table_name})
773 1 1 15 defined $size[0] and $size[0] > 11 or $data_type eq "bigint"
787 11 1 119 $data_type =~ /^time/i or $data_type =~ /^interval/i
911 3 2 3 !defined($old_default) || $old_default ne $new_default
1100 13 1 0 @{$defs;} or @{$fks;}