| blib/lib/SQL/Translator/Generator/Role/DDL.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 16 | 18 | 88.8 |
| line | true | false | branch |
|---|---|---|---|
| 54 | 4 | 104 | $_[1]->comments ? : |
| 59 | 0 | 9 | if ($self->add_comments) { } |
| 72 | 92 | 47 | $_[1]->is_nullable ? : |
| 78 | 80 | 59 | unless defined $default |
| 81 | 7 | 37 | if $exceptions and not ref $default and $exceptions->{$default} |
| 82 | 8 | 51 | if (ref $default) { } |
| 32 | 19 | elsif (not $self->numeric_types->{lc $field->data_type} && &Scalar::Util::looks_like_number($default)) { } | |
| 100 | 69 | 52 | $field->size && !$self->sizeless_types->{$field->data_type} ? : |
| 118 | 0 | 2 | if $_[0]->add_comments |