Branch Coverage

blib/lib/Fey/Meta/Class/Table.pm
Criterion Covered Total %
branch 46 60 76.6


line true false branch
173 26 1 @_ == 1 ? :
185 4 23 if $potential_table->name eq $table->name and $potential_table->schema->name eq $table->schema->name
202 0 0 unless &all(sub { defined $p->{$_}; } , @names)
207 0 0 if exists $cache->{$cache_key}
222 0 0 unless &all(sub { defined $_; } , @pieces)
237 1 25 if $self->_has_table
240 1 24 if $self->ClassForTable($table)
243 1 23 unless $table->has_schema
248 0 22 unless $class and $class->can('meta') and $class->meta->_has_schema
255 1 21 unless @{$table->primary_key;}
274 1 77 if $self->has_method($name)
291 0 77 if (my $transform = $self->policy->transform_for_column($column))
319 15 62 if $column->is_nullable
334 1 6 unless $attr
343 5 1 if $p{'inflate'}
345 5 0 if ($p{'deflate'})
346 1 4 if $self->has_deflator($name)
363 1 4 if $attr->isa('Fey::Meta::Attribute::FromInflator')
388 1 3 $handles ? :
422 0 12 unless $self->_has_table
427 0 2 if $p{'select'} and $p{'fk'}
431 2 10 $p{'select'} ? :
437 3 9 if exists $p{'cache'}
439 1 11 if exists $p{'undef'}
456 0 8 unless $self->_has_has_one($name)
469 0 10 unless $self->_has_table
474 0 2 if $p{'select'} and $p{'fk'}
478 2 8 $p{'select'} ? :
484 2 8 if exists $p{'cache'}
501 1 4 unless $self->_has_has_many($name)