Condition Coverage

blib/lib/SQL/Translator/Producer/PostgreSQL.pm
Criterion Covered Total %
condition 82 108 75.9


and 3 conditions

line !l l&&!r l&&r condition
224 0 0 0 $basename ne $basename_orig and $critical
276 14 1 1 not $no_comments and my $comments = $table->comments
366 6 0 1 exists $extra->{'temporary'} and $extra->{'temporary'}
417 67 5 2 $postgres_version >= 8.003 and $data_type eq 'enum'
564 36 18 0 not @fields and $c->type ne 'CHECK'
654 0 12 1 defined $size[0] and $size[0] > 11
669 0 10 1 defined $size[0] and $size[0] > 6
675 0 2 13 defined $size[0] and $size[0] > 0
700 48 8 56 defined $size[0] and $size[0] > 0
56 51 5 defined $size[0] and $size[0] > 0 and $data_type =~ /^time/i
48 8 51 defined $size[0] and $size[0] > 0
752 9 5 6 not $to_field->is_nullable and $from_field->is_nullable
760 13 5 2 not $from_field->is_nullable and $to_field->is_nullable
786 12 4 3 defined $default_value and $to_dt =~ /^(character|text|timestamp|date)/imsx
792 12 5 3 defined $new_default and !defined($old_default) || $old_default ne $new_default
805 8 11 1 not defined $new_default and defined $old_default

or 2 conditions

line l !l condition
211 0 0 shift() || ''
212 0 0 shift() || ''
213 0 0 shift() || ''
214 0 0 shift() || ''
231 0 0 $scope ||= \%global_names
264 14 2 $options->{'no_comments'} || 0
265 12 4 $options->{'add_drop_table'} || 0
266 0 16 $options->{'postgres_version'} || 0
267 14 2 $options->{'type_defs'} || {}
347 2 5 $options->{'postgres_version'} || 0
395 46 28 $options->{'constraint_defs'} || []
396 7 67 $options->{'postgres_version'} || 0
397 48 26 $options->{'type_defs'} || {}
399 60 14 $field_name_scope{$table_name} ||= {}
414 2 72 $extra{'list'} || []
507 12 0 $index->type || 'NORMAL'
558 38 16 $c->name || ''
617 2 6 $trigger->scope || ''

or 3 conditions

line l !l&&r !l&&!r condition
42 75 6 0 $quoting_generator ||= 'SQL::Translator::Generator::DDL::PostgreSQL'->new
225 2 0 normalize_quote_options($options) ? $quoting_generator ||= 'SQL::Translator::Generator::DDL::PostgreSQL'->new : $nonquoting_generator ||= 'SQL::Translator::Generator::DDL::PostgreSQL'->new('quote_chars', [])
418 1 1 0 $extra{'custom_type_name'} || $field->table->name . '_' . $field->name . '_type'
505 12 0 0 $index->name || join('_', $table_name, 'idx', ++$index_name{$table_name})
654 1 1 11 defined $size[0] and $size[0] > 11 or $data_type eq 'bigint'
668 10 1 101 $data_type =~ /^time/i or $data_type =~ /^interval/i
792 3 2 3 !defined($old_default) || $old_default ne $new_default
972 13 1 0 @{$defs;} or @{$fks;}