Branch Coverage

blib/lib/Jifty/DBI/SchemaGenerator.pm
Criterion Covered Total %
branch 26 28 92.8


line true false branch
174 12 2 unless (ref $model and UNIVERSAL::isa($model, 'Jifty::DBI::Record'))
178 1 11 if ($@)
182 0 11 unless (UNIVERSAL::isa($new_model, 'Jifty::DBI::Record'))
262 6 51 if $column->virtual
265 1 50 if $column->computed
268 37 13 if ($model->can('schema_version') and defined $model->schema_version)
271 1 36 if defined $column->since and $model->schema_version < 'version'->new($column->since)
276 2 34 if defined $column->till and $model->schema_version >= 'version'->new($column->till)
282 2 45 if not $model->can('schema_version') && defined $model->schema_version and defined $column->till
289 6 39 if (ref $default ne '0' and defined $default) { }
295 0 6 if defined $default and not length $default
301 21 24 $column->mandatory ? :
310 1 44 if ($column->indexed)
320 1 12 @indexes ? :