Branch Coverage

blib/lib/DBIx/DBSchema/Column.pm
Criterion Covered Total %
branch 22 84 26.1


line true false branch
85 1 0 if (ref $_[0]) { }
99 0 1 if $self->{'null'}
113 0 1 if (defined $value) { }
129 0 4 if (defined $value) { }
145 0 1 if (defined $value) { }
147 0 0 if $value
162 0 1 if (defined $value) { }
177 0 8 if (defined $value) { }
193 0 1 if (defined $value) { }
209 0 0 if (defined $value) { }
225 0 1 $self->{'table_obj'} ? :
250 1 0 $dbh ? :
258 1 0 if $driver
260 1 0 defined $typemap{uc $self->type} ? :
270 0 1 if $hashref->{'effective_type'}
278 0 1 unless $hashref->{'explicit_null'}
281 0 1 if $default ne ""
285 0 1 if $hashref->{'effective_local'}
291 0 1 defined $self->length && $self->length ? :
0 1 defined $local ? :
312 1 1 $dbh ? :
314 0 2 if ref $self->default
318 0 1 if defined $self->default and $self->default ne "" and ref $dbh and $dbd->column_value_needs_quoting($self)
356 0 0 unless $self->table_name
359 0 0 $dbh ? :
369 0 0 if ($hashref->{'effective_type'})
375 0 0 if (exists $hashref->{'effective_null'})
382 0 0 if $hashref->{'sql_after'}
384 0 0 if $self->name eq $self->table_obj->primary_key
388 0 0 if $real_type
389 0 0 if defined $real_null
422 0 0 unless $table
427 0 0 $dbh ? :
435 0 0 if ($hashref->{'sql_alter'}) { }
445 0 0 if ($hashref->{'sql_alter_type'})
451 0 0 if ($hashref->{'sql_alter_null'}) { }
458 0 0 if (not $self->null and $new->null)
467 0 0 if ($self->null and not $new->null)
478 0 0 if ($old_default ne $new_default and uc $old_default ne 'NOW()' || uc $new_default ne 'NOW()')
487 0 0 if ($new_default ne '') { }
0 0 elsif (not $old_default =~ /^nextval/i) { }
494 0 0 if $opt->{'nullify_default'} and $old_default eq "''" and $new->null