line |
true |
false |
branch |
32
|
0 |
0 |
unless ($self->_connect) |
46
|
0 |
0 |
unless ($self->_connect) |
59
|
0 |
0 |
unless ($self->_connect) |
72
|
0 |
0 |
unless ($self->_connect) |
85
|
0 |
0 |
unless ($self->_connect) |
105
|
1 |
0 |
unless defined $self->{'route_prefix'} |
107
|
1 |
0 |
unless defined $self->{'user'} |
108
|
1 |
0 |
unless defined $self->{'password'} |
110
|
0 |
1 |
unless (defined $self->{'database'}) |
114
|
0 |
1 |
unless (defined $self->{'table'}) |
118
|
0 |
1 |
unless (defined $self->{'columns'}) |
122
|
1 |
0 |
unless (defined $self->{'sort_columns'}) |
126
|
1 |
0 |
unless defined $self->{'tagfield'} |
127
|
1 |
0 |
unless defined $self->{'default_limit'} |
129
|
0 |
1 |
unless (defined $self->{'row_template'}) |
144
|
1 |
0 |
unless (defined $self->{'tags_template'}) |
150
|
1 |
0 |
unless (defined $self->{'tag_query_template'}) |
156
|
1 |
0 |
unless (defined $self->{'q_query_template'}) |
162
|
1 |
0 |
unless (defined $self->{'results_template'}) |
173
|
1 |
0 |
unless (defined $self->{'pagination_template'}) |
182
|
1 |
0 |
unless (defined $self->{'searchform'}) |
198
|
0 |
1 |
if ($self->{'use_where'}) |
215
|
0 |
0 |
if ($old_dbh) |
223
|
0 |
0 |
if ($database) { } |
228
|
0 |
0 |
if (-f $database) |
233
|
0 |
0 |
unless ($dbh) |
259
|
0 |
0 |
unless ($sth) |
265
|
0 |
0 |
unless ($ret) |
278
|
0 |
0 |
if ($args{'n'}) |
281
|
0 |
0 |
if $num_pages < 1 |
284
|
0 |
0 |
if ($total > 0) |
288
|
0 |
0 |
unless ($sth) |
294
|
0 |
0 |
unless ($ret) |
318
|
0 |
0 |
unless defined $args{'n'} |
324
|
0 |
0 |
unless (defined $data) |
376
|
0 |
0 |
$args{'p'} ? : |
|
0 |
0 |
$args{'show_sql'} ? : |
394
|
0 |
0 |
unless defined $args{'n'} |
429
|
0 |
0 |
unless defined $args{'n'} |
471
|
0 |
0 |
unless ($sth) |
477
|
0 |
0 |
unless ($ret) |
499
|
0 |
0 |
unless ($query_string) |
513
|
0 |
0 |
if (not $field) { } |
|
0 |
0 |
elsif ($field eq 'tags' or $field eq $self->{'tagfield'}) { } |
521
|
0 |
0 |
if ($term =~ /^-(.*)/u) |
526
|
0 |
0 |
if ($not) { } |
560
|
0 |
0 |
if ($term =~ /^-(.*)/u) |
566
|
0 |
0 |
if ($term =~ /^\*(.*)/u) |
571
|
0 |
0 |
if ($not and not $equals) { } |
|
0 |
0 |
elsif ($not and $equals) { } |
|
0 |
0 |
elsif ($equals) { } |
623
|
0 |
0 |
$sql_where ? : |
633
|
0 |
0 |
$args{'total'} ? : |
635
|
0 |
0 |
if ($args{'sort_by'} and $args{'sort_by2'} and $args{'sort_by3'}) { } |
|
0 |
0 |
elsif ($args{'sort_by'} and $args{'sort_by2'}) { } |
|
0 |
0 |
elsif ($args{'sort_by'}) { } |
653
|
0 |
0 |
if ($p and $items_per_page) |
656
|
0 |
0 |
if ($total > 0 and $offset >= $total) { } |
|
0 |
0 |
elsif ($offset <= 0) { } |
669
|
0 |
0 |
if ($args{$col}) |
675
|
0 |
0 |
if ($args{'tags'} and $self->{'tagfield'} ne 'tags') |
681
|
0 |
0 |
if ($args{'q'}) |
687
|
0 |
0 |
if ($args{'where'}) |
692
|
0 |
0 |
if ($self->{'extra_cond'}) |
694
|
0 |
0 |
if (@and_clauses) { } |
706
|
0 |
0 |
if ($args{'get_total'}) { } |
709
|
0 |
0 |
if $sql_where |
714
|
0 |
0 |
if $sql_where |
715
|
0 |
0 |
if $order_by |
716
|
0 |
0 |
if $items_per_page |
717
|
0 |
0 |
if $offset |
737
|
0 |
0 |
if ($limit == $args{'n'}) { } |
751
|
0 |
0 |
if ($args{'p'} > $num_pages) |
761
|
0 |
0 |
if ($p == $args{'p'}) { } |
782
|
0 |
0 |
if ($s eq $args{$sf}) { } |
791
|
0 |
0 |
if ($s_desc eq $args{$sf}) { } |
829
|
0 |
0 |
if ($args{'p'} > $num_pages) |
833
|
0 |
0 |
if ($args{'p'} < 1) |
838
|
0 |
0 |
if ($prev_page < 1) |
843
|
0 |
0 |
if ($next_page > $num_pages) |
848
|
0 |
0 |
if ($args{'tags'}) |
916
|
0 |
0 |
if ($tag) |
936
|
0 |
0 |
if (not $args{'tags_query'}) { } |
|
0 |
0 |
elsif ($args{'tags_query'} =~ /\Q$tag\E/u) { } |
968
|
0 |
0 |
if (exists $args{'total_tags'} and defined $args{'total_tags'} and $args{'total_tags'}) |
995
|
0 |
0 |
$args{'all_tags'} ? : |
998
|
0 |
0 |
if $args{'q'} |
999
|
0 |
0 |
if $args{'p'} |
1009
|
0 |
0 |
if (not $tags_query) { } |
|
0 |
0 |
elsif ($tags_query =~ /\Q$tag\E/u) { } |
1022
|
0 |
0 |
if $args{'in_list'} |
1031
|
0 |
0 |
defined $args{'all_tags'} ? : |
1032
|
0 |
0 |
if $args{'in_list'} |
1054
|
0 |
0 |
if (not $tags_query) { } |
|
0 |
0 |
elsif ($tags_query =~ /\Q$tag\E/u) { } |
1085
|
0 |
0 |
unless ($args{'q'}) |