Condition Coverage

blib/lib/SQL/Translator/Producer/Oracle.pm
Criterion Covered Total %
condition 48 89 53.9


and 3 conditions

line !l l&&!r l&&r condition
314 35 0 0 not @fields and $c->type ne 'CHECK'
346 10 0 0 $WARN and $dtype =~ /clob/i
386 7 0 0 $on_delete and $on_delete ne 'RESTRICT'
499 2 0 0 $to_field->is_nullable and not $from_field->is_nullable
590 80 6 1 $data_type eq 'clob' and $field->is_primary_key
597 81 6 0 $data_type eq 'clob' and $field->is_unique
622 13 3 71 defined $size[0] and $size[0] > 0
637 35 0 0 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()'
771 146 7 0 $basename ne $basename_orig and $critical
799 172 11 253 $q and $name

or 2 conditions

line l !l condition
191 0 10 $translator->show_warnings || 0
195 0 10 $translator->producer_args->{'oracle_version'} || 0
310 13 22 $c->name || ''
359 0 0 $c->expression || ''
365 0 7 $c->on_delete || ''
404 11 0 $index->name || ''
405 11 0 $index->type || 'NORMAL'
439 0 0 $index_name || 'i'
448 0 0 $index_name || 'i'
552 1 86 $extra{'list'} || []
572 86 0 $data_type ||= 'varchar2'
758 153 0 shift() || ''
759 48 105 shift() || ''
761 87 66 shift() || ''
762 87 66 shift() || ''
778 87 66 $scope ||= \%global_names

or 3 conditions

line l !l&&r !l&&!r condition
319 0 2 0 $name ||= mk_name($table_name, 'pk')
357 0 0 0 $name || $table_name
0 0 0 $name ||= mk_name($name || $table_name, 'ck')
499 1 0 1 $from_field->is_nullable || $to_field->is_nullable
617 23 15 0 $size[0] ||= $max_size{$_}
637 0 0 0 $default eq 'current_timestamp' || $default eq 'now()'