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
151 0 14 if ($field_def =~ /identity/)
169 0 14 if ($data_type eq 'enum') { }
0 14 elsif ($data_type eq 'set') { }
176 3 11 if ($field->is_auto_increment)
179 12 2 if (defined $translate{$data_type}) { }
182 0 2 if $WARN
188 3 11 unless ($size)
189 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') { }
204 13 1 if $size
205 3 11 if $identity
211 7 7 if (defined $default)
212 0 7 $default =~ /null/i ? :
0 7 $field->is_auto_increment && $seq_name ? :
221 9 5 if ($field->is_nullable) { }
224 9 0 if $data_type ne "bit"
240 0 5 unless @fields
242 3 2 if ($type eq 'PRIMARY KEY') { }
1 1 elsif ($type eq 'FOREIGN KEY') { }
1 0 elsif ($type eq 'UNIQUE') { }
266 4 0 $add_drop_table ? :
278 0 1 unless $no_comments
290 0 1 unless $no_comments
302 0 1 if ($WARN)
303 0 0 if (%truncated)
308 0 0 if (%unreserve)
314 0 1 wantarray ? :
323 3 18 $type ? :
327 0 21 if length $basename > $max_name
329 3 18 $type ? :
331 0 21 if ($basename ne $basename_orig and $critical)
332 0 0 $type ? :
333 0 0 if $WARN
339 0 21 if (my $prev = $scope->{$name})
342 0 0 if length $name > $max_id_length
345 0 0 if $WARN
350 0 21 if length $name > $max_id_length and $critical
359 5 19 $name =~ s/(\W.*)$// ? :
362 19 5 if not $reserved{uc $name} and $name =~ /^[a-z]/i
364 3 2 if ($schema_obj_name) { }