Branch Coverage

lib/CellBIS/SQL/Abstract/Table.pm
Criterion Covered Total %
branch 73 122 59.8


line true false branch
23 2 0 if (exists $fk->{'name'} and $fk->{'name'} ne '')
26 2 0 if (exists $fk->{'col_name'} and $fk->{'col_name'} ne '')
30 2 0 if (exists $fk->{'table_target'} and $fk->{'table_target'} ne '')
34 2 0 if (exists $fk->{'col_target'} and $fk->{'col_target'} ne '')
40 0 2 if ($size_result >= 1) { }
46 0 2 unless (exists $$col_attr{$fk->{'col_name'}})
66 2 0 if (exists $fk_table->{'ondelete'})
67 2 0 if (exists $ondelup{lc $fk_table->{'ondelete'}})
73 2 0 if (exists $fk_table->{'onupdate'})
74 2 0 if (exists $ondelup{lc $fk_table->{'onupdate'}})
75 2 0 if $ondel == 1
92 2 2 if (exists $table_attr->{'fk'})
95 2 0 if (exists $table_attr->{'fk'})
102 2 0 if ($fk_table->{'attr'})
105 1 1 if ($db_type eq 'sqlite') { }
108 0 1 if $fk_attr eq ''
109 1 0 unless $fk_attr eq ''
114 0 1 if $fk_attr eq ''
115 1 0 unless $fk_attr eq ''
123 0 4 if (exists $table_attr->{'index'})
124 0 0 if (ref $table_attr->{'index'} eq 'ARRAY' and scalar @{$table_attr->{'index'};} > 0)
133 2 2 if (exists $table_attr->{'engine'})
138 2 2 if $engine == 1
140 1 3 exists $table_attr->{'charset'} ? :
154 4 0 if (ref $col_attr eq 'HASH')
166 4 10 if (exists $col_name->{'is_autoincre'})
181 4 10 if (exists $col_name->{'is_primarykey'})
192 4 0 if ($size_pk >= 1)
204 4 0 if ($size_ai >= 1)
233 0 0 if ($type eq 'datetime')
234 0 0 if ($attr == 1)
237 0 0 if ($attr eq 'yes')
251 14 0 if (exists $attr->{'type'})
252 7 7 if ($db_type eq 'sqlite') { }
253 7 0 exists $attr->{'type'}{'name'} ? :
255 7 0 exists $attr->{'type'}{'name'} ? :
256 7 0 exists $attr->{'type'}{'size'} ? :
260 14 0 unless (exists $attr->{'custom'})
261 0 14 if (exists $attr->{'default'} and $attr->{'default'} ne '')
262 0 0 if (exists $attr->{'onupdate'} and $attr->{'onupdate'} ne '') { }
271 0 14 if (exists $attr->{'onupdate'} and $attr->{'onupdate'} ne '')
276 10 4 if (exists $attr->{'is_null'}) { }
277 10 0 if $attr->{'is_null'} eq 0
278 0 10 if $attr->{'is_null'} eq 1
284 4 10 if (exists $attr->{'is_primarykey'} and $attr->{'is_primarykey'} == 1)
288 4 10 if (exists $attr->{'is_autoincre'} and $attr->{'is_autoincre'} == 1)
289 2 2 if ($db_type eq 'sqlite') { }
312 1 3 if ($arg_len == 3)
316 3 1 if ($arg_len == 4)
318 3 0 if (ref $table_attr eq 'HASH') { }
325 0 4 if ($arg_len >= 5)
347 3 1 if ($size_tblAttr != 0) { }
350 2 1 if (exists $table_attr->{'fk'})
355 0 3 if (exists $table_attr->{'index'})
359 3 0 if (exists $table_attr->{'attr'} and $table_attr->{'attr'} ne '') { }
360 2 1 if ($size_fk == 1) { }
362 1 1 $db_type eq 'sqlite' ? :
365 1 0 $db_type eq 'sqlite' ? :
369 0 0 $db_type eq 'sqlite' ? :
375 0 1 $db_type eq 'sqlite' ? :
395 2 0 if (exists $list_engine{$engine}) { }