blib/lib/DBIx/Schema/DSL.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 20 | 38 | 52.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
54 | 0 | 0 | 3 | $opt{'mysql_charset'} and $opt{'mysql_charset'} eq 'utf8mb4' |
168 | 33 | 9 | 9 | $c->default_unsigned and $data_type =~ /int(?:eger)?$/ |
184 | 15 | 37 | 2 | not exists $args{'is_nullable'} and $c->default_not_null |
188 | 39 | 0 | 15 | $args{'data_type'} eq 'VARCHAR' and not $args{'size'} |
210 | 44 | 0 | 10 | $args{'is_nullable'} and not exists $args{'default_value'} |
44 | 0 | 10 | $args{'is_nullable'} and not exists $args{'default_value'} and not $args{'data_type'} =~ /^(?:TINY|MEDIUM|LONG)?(?:TEXT|BLOB)$/ |
line | l | !l | condition |
---|---|---|---|
194 | 2 | 0 | delete $args{'scale'} || 0 |
315 | 0 | 2 | delete $opt{'column'} || 'id' |
327 | 0 | 0 | delete $opt{'column'} || 'id' |
338 | 0 | 2 | delete $opt{'foreign_column'} || 'id' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
18 | 94 | 11 | 0 | ${"${pkg}::CONTEXT";} ||= 'DBIx::Schema::DSL::Context'->new |
316 | 0 | 2 | 0 | delete $opt{'foreign_column'} || $c->_creating_table_name . '_id' |
328 | 0 | 0 | 0 | delete $opt{'foreign_column'} || $c->_creating_table_name . '_id' |
337 | 0 | 0 | 2 | delete $opt{'column'} || "${table}_id" |