Branch Coverage

blib/lib/HTML/DBTable.pm
Criterion Covered Total %
branch 54 110 49.0


line true false branch
39 0 8 if exists $opt{'tmpl_path'}
40 0 8 if exists $opt{'dbh'}
41 0 8 if exists $opt{'tablename'}
42 1 7 if exists $opt{'values'}
53 21 3 $self->strip_tablename ? :
56 8 0 $length > 50 ? :
0 8 $length == 0 ? :
8 16 if $length
58 18 6 defined $$values{$col_schema->name} ? :
0 24 defined $$self{'cb_row_pre'} ? :
0 24 defined $$self{'cb_row_post'} ? :
74 15 9 if ($self->labels)
75 12 3 if (ref $self->labels eq 'HASH') { }
76 3 9 if exists $self->labels->{$$field{'name'}}
80 3 0 if $column_pos < scalar @{$self->labels;}
85 3 21 if ($$field{'use_hidden'}) { }
97 0 8 defined $$self{'cb_rows_pre'} ? :
99 0 8 defined $$self{'cb_rows_post'} ? :
107 0 8 if ($self->tmpl_path) { }
122 8 0 if ($self->tblschema) { }
125 0 0 unless $self->dbh
139 9 15 if ($self->appearances)
140 3 6 if (ref $self->appearances eq 'HASH') { }
141 1 2 if exists $self->appearances->{$opt{'field'}{'name'}}
145 2 4 if $opt{'field'}{'pos'} < scalar @{$self->appearances;}
148 0 24 if ($opt{'schema'}->type eq 'enum' or $appearance eq 'enum')
150 0 0 scalar @items_value < 5 ? :
163 0 24 if ($$field{'use_combo'} or $$field{'use_radio'})
165 0 0 if ($self->enums) { }
167 0 0 if (ref $self->enums eq 'HASH') { }
168 0 0 if exists $self->enums->{$$field{'name'}}
172 0 0 if $$field{'pos'} <= scalar @{$self->enums;}
174 0 0 if ($enums)
175 0 0 if (ref $enums eq 'HASH') { }
183 0 0 if $col_schema->enum
188 0 0 if ($$field{'value'})
189 0 0 $$field{'use_combo'} ? :
0 0 $_ eq $$field{'value'} ? :
204 0 8 defined $opt[0] ? :
211 0 3 defined $opt[0] ? :
216 3 0 if (defined $self->tblschema and not defined $self->dbh)
221 0 0 defined $opt[0] ? :
227 1 24 defined $opt[0] ? :
233 1 8 defined $opt[0] ? :
240 1 22 defined $opt[0] ? :
247 2 60 defined $opt[0] ? :
255 2 45 defined $opt[0] ? :
263 0 0 defined $opt[0] ? :
270 0 8 defined $opt[0] ? :
276 0 8 defined $opt[0] ? :
282 0 0 defined $opt[0] ? :
289 0 0 defined $opt[0] ? :
296 0 0 defined $opt[0] ? :
303 0 0 defined $opt[0] ? :
311 0 8 if $opt[0]