| blib/lib/DBIx/Schema/DSL.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 20 | 38 | 52.6 | 
| line | !l | l&&!r | l&&r | condition | 
|---|---|---|---|---|
| 56 | 0 | 0 | 3 | $opt{'mysql_charset'} and $opt{'mysql_charset'} eq 'utf8mb4' | 
| 171 | 33 | 9 | 9 | $c->default_unsigned and $data_type =~ /int(?:eger)?$/ | 
| 187 | 15 | 37 | 2 | not exists $args{'is_nullable'} and $c->default_not_null | 
| 191 | 39 | 0 | 15 | $args{'data_type'} eq 'VARCHAR' and not $args{'size'} | 
| 213 | 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 | 
|---|---|---|---|
| 197 | 2 | 0 | delete $args{'scale'} || 0 | 
| 318 | 0 | 2 | delete $opt{'column'} || 'id' | 
| 330 | 0 | 0 | delete $opt{'column'} || 'id' | 
| 341 | 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 | 
| 319 | 0 | 2 | 0 | delete $opt{'foreign_column'} || $c->_creating_table_name . '_id' | 
| 331 | 0 | 0 | 0 | delete $opt{'foreign_column'} || $c->_creating_table_name . '_id' | 
| 340 | 0 | 2 | 0 | delete $opt{'column'} || "${table}_id" |