Condition Coverage

blib/lib/SQL/Translator/Producer/Oracle.pm
Criterion Covered Total %
condition 64 100 64.0


and 3 conditions

line !l l&&!r l&&r condition
408 2 1 1 not $from_field->is_nullable and $to_field->is_nullable
517 56 3 1 $data_type eq "clob" and $field->is_primary_key
524 57 3 0 $data_type eq "clob" and $field->is_unique
549 8 3 49 defined $size[0] and $size[0] > 0
565 15 0 1 ref $default and defined $$default
11 3 1 $data_type =~ /^number$/i and not $default =~ /^-?\d+$/
14 0 1 $data_type =~ /^number$/i and not $default =~ /^-?\d+$/ and not $default =~ /null/i
14 0 0 $data_type =~ /date/ and $default eq 'current_timestamp' || $default eq 'now()'
726 21 0 0 not @fields and $c->type ne "CHECK"
761 2 0 0 $WARN and $dtype =~ /clob/i
802 5 0 1 $on_delete and $on_delete ne "RESTRICT"
850 88 4 0 $basename ne $basename_orig and $critical
878 182 7 166 $q and $name

or 2 conditions

line l !l condition
192 0 7 $translator->show_warnings || 0
196 0 7 $translator->producer_args->{'oracle_version'} || 0
330 7 0 $index->name || ''
331 7 0 $index->type || 'NORMAL'
479 1 59 $extra{'list'} || []
499 59 0 $data_type ||= "varchar2"
667 3 5 $index_options || ''
670 8 0 $index->name || ''
671 0 0 $index_name || 'i'
722 9 12 $c->name || ''
774 1 0 $c->expression || ''
781 1 5 $c->on_delete || ''
837 92 0 shift() || ''
838 18 74 shift() || ''
840 60 32 shift() || ''
841 60 32 shift() || ''
857 60 32 $scope ||= \%global_names

or 3 conditions

line l !l&&r !l&&!r condition
357 6 1 0 $index_type eq "NORMAL" or $index_type eq "UNIQUE"
408 2 0 1 $from_field->is_nullable || $to_field->is_nullable
544 23 3 0 $size[0] ||= $max_size{$_}
565 0 0 0 $default eq 'current_timestamp' || $default eq 'now()'
668 4 0 4 $options->{'quote_field_names'} || $options->{'quote_identifiers'}
669 4 0 4 $options->{'quote_table_names'} || $options->{'quote_identifiers'}
734 0 2 0 $name ||= mk_name($table_name, "pk")
772 0 0 0 $name || $table_name
1 0 0 $name ||= mk_name($name || $table_name, "ck")