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
404 2 1 1 not $from_field->is_nullable and $to_field->is_nullable
504 96 7 1 $data_type eq "clob" and $field->is_primary_key
511 97 7 0 $data_type eq "clob" and $field->is_unique
536 16 3 85 defined $size[0] and $size[0] > 0
552 35 0 1 ref $default and defined $$default
27 7 1 $data_type =~ /^number$/i and not $default =~ /^-?\d+$/
34 0 1 $data_type =~ /^number$/i and not $default =~ /^-?\d+$/ and not $default =~ /null/i
34 0 0 $data_type =~ /date/ and $default eq 'current_timestamp' || $default eq 'now()'
706 41 0 0 not @fields and $c->type ne "CHECK"
747 10 0 0 $WARN and $dtype =~ /clob/i
785 9 0 1 $on_delete and $on_delete ne "RESTRICT"
830 162 8 0 $basename ne $basename_orig and $critical
858 312 11 284 $q and $name

or 2 conditions

line l !l condition
192 0 11 $translator->show_warnings || 0
196 0 11 $translator->producer_args->{'oracle_version'} || 0
329 13 0 $index->name || ''
330 13 0 $index->type || 'NORMAL'
467 1 103 $extra{'list'} || []
486 103 0 $data_type ||= "varchar2"
652 3 11 $index_options || ''
655 14 0 $index->name || ''
656 0 0 $index_name || 'i'
702 17 24 $c->name || ''
759 1 0 $c->expression || ''
765 1 9 $c->on_delete || ''
816 170 0 shift() || ''
817 42 128 shift() || ''
819 104 66 shift() || ''
820 104 66 shift() || ''
837 104 66 $scope ||= \%global_names

or 3 conditions

line l !l&&r !l&&!r condition
354 12 1 0 $index_type eq "NORMAL" or $index_type eq "UNIQUE"
404 2 0 1 $from_field->is_nullable || $to_field->is_nullable
531 31 15 0 $size[0] ||= $max_size{$_}
552 0 0 0 $default eq 'current_timestamp' || $default eq 'now()'
653 6 0 8 $options->{'quote_field_names'} || $options->{'quote_identifiers'}
654 6 0 8 $options->{'quote_table_names'} || $options->{'quote_identifiers'}
715 0 2 0 $name ||= mk_name($table_name, "pk")
757 0 0 0 $name || $table_name
1 0 0 $name ||= mk_name($name || $table_name, "ck")