Condition Coverage

blib/lib/SQL/Translator/Producer/MySQL.pm
Criterion Covered Total %
condition 74 102 72.5


and 3 conditions

line !l l&&!r l&&r condition
243 351 104 4 not $size[0] and $f->data_type =~ /char$/
395 2 0 2 exists $extra->{'mysql_algorithm'} and defined(my $algorithm = $extra->{'mysql_algorithm'})
399 2 0 2 exists $extra->{'mysql_definer'} and defined(my $user = $extra->{'mysql_definer'})
403 2 0 2 exists $extra->{'mysql_security'} and defined(my $security = $extra->{'mysql_security'})
515 59 0 0 $mysql_table_type and not $table_type_defined
549 194 55 21 $data_type =~ /char/i and $size[0] > 255
551 0 4 2 $size[0] and $size[0] >= 12
0 2 2 $size[0] and $size[0] <= 1
569 6 11 4 $size[0] <= 65535 and $mysql_version >= "5.000003"
588 275 3 0 $data_type =~ /(double|float)/ and scalar @size == 1
594 45 59 158 defined $size[0] and $size[0] > 0
104 10 148 defined $size[0] and $size[0] > 0 and not grep((lc $data_type eq $_), @no_length_attr)
761 0 6 22 defined $c->name && $c->name
935 8 24 3 $diff_hash->{'rename_table'} and @{$diff_hash->{'rename_table'};}

or 2 conditions

line l !l condition
228 149 25 $schema->get_table($c->$meth) || (next)
272 6 13 $translator->show_warnings || 0
274 0 19 parse_mysql_version($producer_args->{'mysql_version'}, 'perl') || 0
481 36 18 generate_table_options($table, $options) || ''
540 12 266 $extra{'list'} || []
545 20 258 $options->{'mysql_version'} || 0
742 0 139 $options->{'leave_name'} || undef
841 5 0 generate_table_options($to_table, $options) || ''
981 87 0 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
192 231 0 0 $value || $extra_type
257 82 6 0 $quoting_generator ||= "SQL::Translator::Generator::DDL::MySQL"->new
364 5 0 normalize_quote_options($options) ? $quoting_generator ||= "SQL::Translator::Generator::DDL::MySQL"->new : $nonquoting_generator ||= "SQL::Translator::Generator::DDL::MySQL"->new("quote_chars", [])
275 0 19 0 $producer_args->{'mysql_max_id_length'} || $DEFAULT_MAX_ID_LENGTH
467 38 52 29 $indexed_fields{($c->fields)[0]} or $c->type ne "FOREIGN KEY"
499 41 0 12 uc $key eq "ENGINE" or uc $key eq "TYPE"
594 4 12 262 lc $data_type eq "enum" or lc $data_type eq "set"
611 3 3 828 $extra{$qual} || $extra{uc $qual}
615 24 0 810 $extra{$qual} || $extra{uc $qual}
687 40 4 0 $options->{'max_id_length'} || $DEFAULT_MAX_ID_LENGTH
697 4 0 0 $index->name || $index->fields
761 12 10 0 $options->{'max_id_length'} || $DEFAULT_MAX_ID_LENGTH
771 42 8 0 $options->{'max_id_length'} || $DEFAULT_MAX_ID_LENGTH
821 0 2 0 $options->{'max_id_length'} || $DEFAULT_MAX_ID_LENGTH