Branch Coverage

blib/lib/DataTables.pm
Criterion Covered Total %
branch 24 66 36.3


line true false branch
41 1 5 if (@_)
43 0 1 unless UNIVERSAL::isa($a_ref, 'ARRAY')
55 1 9 if (@_)
57 0 1 unless UNIVERSAL::isa($ref, 'ARRAY') or UNIVERSAL::isa($ref, 'HASH')
69 0 0 if (@_)
71 0 0 unless UNIVERSAL::can($ref, 'prepare')
84 0 3 if ($new_val)
85 0 0 if ($new_val ne 'column-id' and $new_val ne 'key-value') { }
100 0 1 if (@_)
102 0 0 unless UNIVERSAL::isa($h_ref, 'HASH')
114 0 1 if (@_)
126 0 1 if (@_)
142 0 3 if (UNIVERSAL::isa($self->columns, 'HASH')) { }
3 0 elsif (UNIVERSAL::isa($self->columns, 'ARRAY')) { }
149 0 0 if (scalar(keys %{$$columns{$key};} == 2) and exists $columns->{$key}{'AS'})
158 0 0 if ($as_exists)
159 0 0 if $as_exists
206 0 1 unless defined $dbh
212 0 1 unless $self->tables
225 0 1 if ($self->join_clause ne '')
237 0 1 unless $result_sth->execute(@bind)
243 0 1 unless $sth_cnt_filtered->execute(@bind_cnt_filtered)
253 0 1 unless $sth_cnt_total->execute
265 0 1 if ($version eq '1.10') { }
299 0 15 if (exists $patterns->{$pat_name})
308 3 0 if ($self->data_output_format eq 'column-id') { }
352 0 1 if ($dt_req->search and defined $dt_req->search->{'value'})
361 0 0 if (defined $dt_req->column($i) and $dt_req->column($i)->{'searchable'})
372 0 3 if (defined $dt_req->column($i) and $dt_req->column($i)->{'searchable'} and ($dt_req->column($i)->{'search'}{'value'} and $dt_req->column($i)->{'search'}{'value'} ne ''))
380 0 1 if ($self->where_clause)
402 0 0 unless my $existing_clauses_href = shift()
405 0 0 unless $new_clause
407 0 0 if (UNIVERSAL::isa($new_clause, 'HASH'))