Branch Coverage

blib/lib/SQL/Translator/Schema/Field.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
41 0 14946 unless $_[0]->name
156 58 267 unless $type_mapping{lc $_[0]->data_type}
218 620 5 if (my $table = $self->table)
219 598 22 if (my $schema = $table->schema)
220 1 597 if ($schema->database eq "PostgreSQL" and $self->data_type eq "serial")
249 123 0 if (my $table = $self->table)
251 48 168 if ($c->type eq "FOREIGN KEY")
253 9 39 if ($fields{$self->name})
311 588 2 if (my $table = $self->table)
312 459 129 if (my $pk = $table->primary_key)
335 68 0 if (my $table = $self->table)
337 39 87 if ($c->type eq "UNIQUE")
339 6 33 if ($fields{$self->name})
361 0 287 unless $self->name
362 0 287 unless $self->data_type
363 0 287 unless $self->table
442 1 0 if (my $table = $self->table)