Branch Coverage

blib/lib/SQLite/Work/CGI.pm
Criterion Covered Total %
branch 0 200 0.0


line true false branch
178 0 0 unless $limit
180 0 0 unless $page
187 0 0 if ($pfield eq $show_label) { }
0 0 elsif ($pfield =~ /^$where_prefix(.*)/o) { }
0 0 elsif ($pfield eq 'Edit_Row') { }
0 0 elsif ($pfield eq $sort_label) { }
0 0 elsif ($pfield eq $headers_label) { }
0 0 elsif ($pfield =~ /^$sort_reversed_prefix(.*)/o) { }
193 0 0 if ($scol)
202 0 0 if ($pval)
209 0 0 if ($where_val)
212 0 0 if ($self->{'cgi'}->param($not_where_field))
222 0 0 if ($pval)
226 0 0 if ($where_val)
238 0 0 if ($val)
250 0 0 if ($val)
259 0 0 $pval ? :
262 0 0 unless @columns
263 0 0 if (@sort_by)
267 0 0 if ($sort_r[$i])
292 0 0 $self->{'cgi'}->param('Table2') ? :
0 0 $self->{'cgi'}->param('ReportStyle') ? :
0 0 $self->{'cgi'}->param('ReportLayout') ? :
312 0 0 unless ($row_id)
319 0 0 if ($update_field eq $row_id_name) { }
324 0 0 if ($col ne $row_id_name)
336 0 0 if ($self->update_one_row('table', $table, 'command', $args{'command'}, 'row_id', $row_id, 'field', $update_field, 'update_values', \%update_values))
363 0 0 if (not $self->{'report_template'} =~ /\n/ and -r $self->{'report_template'}) { }
369 0 0 unless open $fh, $self->{'report_template'}
414 0 0 if ($self->add_one_row('table', $table, 'add_values', \%vals))
444 0 0 if ($pval)
449 0 0 unless ($row_id)
454 0 0 if ($self->delete_one_row('table', $table, 'row_id', $row_id))
482 0 0 if (not $self->{'report_template'} =~ /\n/ and -r $self->{'report_template'}) { }
488 0 0 unless open $fh, $self->{'report_template'}
502 0 0 if $self->{'message'}
535 0 0 @_ ? :
539 0 0 if (not $self->{'report_template'} =~ /\n/ and -r $self->{'report_template'}) { }
545 0 0 unless open $fh, $self->{'report_template'}
574 0 0 if $command
618 0 0 @_ ? :
622 0 0 if (not $self->{'report_template'} =~ /\n/ and -r $self->{'report_template'}) { }
628 0 0 unless open $fh, $self->{'report_template'}
636 0 0 $is_error ? :
641 0 0 $is_error ? :
683 0 0 if ($command eq 'Edit')
735 0 0 if ($fname eq $col) { }
765 0 0 if ($command eq 'Search')
787 0 0 if (@tables > 1)
795 0 0 if ($tn ne $table)
815 0 0 $self->{'max_sort_fields'} < @columns ? :
836 0 0 if ($command eq 'Search')
861 0 0 if ($command eq 'Edit')
891 0 0 $args{'table2'} ? :
915 0 0 if ($col eq $row_id_name) { }
953 0 0 $limit ? :
965 0 0 if ($command eq 'Edit')
975 0 0 if ($args{'limit'}) { }
1040 0 0 if ($pfield ne 'Page' and $pfield ne $command)
1081 0 0 if (not $self->{'report_template'} =~ /\n/ and -r $self->{'report_template'}) { }
1087 0 0 unless open $fh, $self->{'report_template'}
1107 0 0 $args{'title'} ? :
1108 0 0 $args{'limit'} ? :
1111 0 0 if $args{'report_style'} ne 'bare'
1115 0 0 if $args{'report_style'} ne 'bare' and $args{'report_style'} ne 'compact'
1116 0 0 if ($args{'limit'} and $args{'report_style'} eq 'full')
1121 0 0 if (defined $sth2)
1134 0 0 if ($count2) { }
0 0 elsif ($args{'command'} eq 'Edit') { }
1151 0 0 if $args{'report_style'} ne 'bare'
1154 0 0 if $args{'debug'}
1155 0 0 if $self->{'message'}
1162 0 0 if ($args{'outfile'}) { }
1166 0 0 unless open $fh, '>', $args{'outfile'}
1195 0 0 if ($args{'command'} eq 'Search') { }
0 0 elsif ($args{'command'} eq 'Edit') { }
0 0 elsif ($args{'command'} eq 'EditText') { }
1234 0 0 unless (defined $table_border)
1236 0 0 if ($report_style eq 'bare') { }
1245 0 0 unless (defined $truncate_colnames)
1247 0 0 if ($report_style eq 'full') { }
0 0 elsif ($report_style eq 'medium') { }
0 0 elsif ($report_style eq 'compact') { }
1274 0 0 if ($columns[$i] eq $row_id_name)
1284 0 0 if ($truncate_colnames) { }
1321 0 0 if ($table2)
1328 0 0 if ($report_style ne 'bare')
1339 0 0 if ($show_cols[$ci])
1343 0 0 unless defined $val
1349 0 0 if ($col ne $row_id_name) { }
1459 0 0 unless (defined $table_border)
1461 0 0 if ($report_style eq 'bare') { }
1480 0 0 if ($columns[$i] eq $row_id_name)
1507 0 0 if ($table2)
1514 0 0 if ($report_style ne 'bare')
1525 0 0 if ($show_cols[$ci])
1529 0 0 unless defined $val
1535 0 0 if ($col ne $row_id_name) { }
1642 0 0 if ($type eq 'textarea') { }
0 0 elsif ($type eq 'text') { }