Branch Coverage

blib/lib/SQL/Translator/Producer/Sybase.pm
Criterion Covered Total %
branch 54 90 60.0


line true false branch
127 0 1 unless $no_comments
132 0 4 unless my $table_name = $table->name
138 0 4 unless $no_comments
153 0 14 if ($field_def =~ /identity/)
170 0 14 if ($data_type eq 'enum') { }
0 14 elsif ($data_type eq 'set') { }
182 3 11 if ($field->is_auto_increment)
185 12 2 if (defined $translate{$data_type}) { }
189 0 2 if $WARN
195 3 11 unless ($size)
196 0 3 if ($data_type =~ /numeric/) { }
2 1 elsif ($orig_data_type eq 'text') { }
0 1 elsif ($data_type eq 'varchar' and $orig_data_type eq 'boolean') { }
0 1 elsif ($data_type eq 'varchar') { }
215 13 1 if $size
216 3 11 if $identity
222 7 7 if (defined $default)
223 0 7 $default =~ /null/i ? :
0 7 $field->is_auto_increment && $seq_name ? :
233 9 5 if ($field->is_nullable) { }
237 9 0 if $data_type ne "bit"
255 0 5 unless @fields
257 3 2 if ($type eq 'PRIMARY KEY') { }
1 1 elsif ($type eq 'FOREIGN KEY') { }
1 0 elsif ($type eq 'UNIQUE') { }
292 4 0 $add_drop_table ? :
312 0 1 unless $no_comments
328 0 1 unless $no_comments
343 0 1 if ($WARN)
344 0 0 if (%truncated)
349 0 0 if (%unreserve)
356 0 1 wantarray ? :
365 3 18 $type ? :
368 0 21 if length $basename > $max_name
370 3 18 $type ? :
372 0 21 if ($basename ne $basename_orig and $critical)
373 0 0 $type ? :
374 0 0 if $WARN
380 0 21 if (my $prev = $scope->{$name})
383 0 0 if length $name > $max_id_length
386 0 0 if $WARN
391 0 21 if length $name > $max_id_length and $critical
400 5 19 $name =~ s/(\W.*)$// ? :
403 19 5 if not $reserved{uc $name} and $name =~ /^[a-z]/i
405 3 2 if ($schema_obj_name) { }