Branch Coverage

blib/lib/CGI/List.pm
Criterion Covered Total %
branch 0 264 0.0


line true false branch
29 0 0 unless defined param('cg_list')
30 0 0 unless defined param('cg_order')
31 0 0 unless defined param('cg_side')
32 0 0 unless defined param('cg_page')
98 0 0 if ($$self{'auto_order'} and param('cg_order') and param('cg_list') eq $$self{'name'})
99 0 0 if (param('cg_order') =~ /\w+/)
101 0 0 if param('cg_side')
102 0 0 unless param('cg_side')
109 0 0 if $$self{'link'} and not $$self{'link'}{'event'}
119 0 0 unless (defined $$self{'rs'})
127 0 0 if $$self{'caption'}
128 0 0 if (defined $$self{'groups'}) { }
131 0 0 if (not $$self{'rows'}) { }
141 0 0 if (not $$self{'rows'}) { }
162 0 0 if ($$self{'sql'}{'params'}) { }
169 0 0 if ($@) { }
170 0 0 if ($$self{'on_errors'} eq 'die') { }
0 0 elsif ($$self{'on_errors'} eq 'warn') { }
0 0 elsif ($$self{'on_errors'} eq 'print') { }
171 0 0 if ($$self{'debug'}) { }
178 0 0 if ($$self{'debug'}) { }
185 0 0 if ($$self{'debug'}) { }
205 0 0 if (ref \$$self{'sql'} eq 'SCALAR') { }
213 0 0 unless defined $$self{'sql'}{'select'}
214 0 0 unless defined $$self{'sql'}{'from'}
215 0 0 unless defined $$self{'sql'}{'where'}
216 0 0 unless defined $$self{'sql'}{'order_by'}
217 0 0 unless defined $$self{'sql'}{'limit'}
218 0 0 unless defined $$self{'sql'}{'offset'}
220 0 0 if $$self{'sql'}{'from'}
221 0 0 if $$self{'sql'}{'where'}
222 0 0 if $$self{'sql'}{'group_by'}
223 0 0 if $$self{'sql'}{'order_by'}
224 0 0 if $$self{'sql'}{'limit'}
225 0 0 if ($$self{'pagination'}) { }
228 0 0 if $$self{'sql'}{'offset'}
236 0 0 if (defined $$self{'headers_groups'}) { }
240 0 0 if (ref $hgroup eq 'HASH') { }
253 0 0 if defined $$self{'columns_width'}[$it]
254 0 0 if defined $$self{'columns_headers_align'}[$it]
260 0 0 if (defined $$self{'columns_width'} or defined $$self{'columns_headers_align'})
264 0 0 if defined $$self{'columns_width'}[$it]
265 0 0 if defined $$self{'columns_headers_align'}[$it]
281 0 0 unless defined $$self{'sth'}{'NAME'}[$i]
282 0 0 if ($$self{'sth'}{'NAME'}[$i] and not $$self{'link'}{'hidde_key_col'} && $$self{'sth'}{'NAME'}[$i] eq $$self{'link'}{'key'})
291 0 0 unless param('cg_side')
292 0 0 if ($$self{'auto_order'})
293 0 0 if ($i + 1 eq param('cg_order')) { }
294 0 0 if (param('cg_side') eq '0') { }
0 0 elsif (param('cg_side') eq '1') { }
309 0 0 if $$self{'link'}{'hidde_key_col'}
323 0 0 if $$self{'rows'} / 2 - int($$self{'rows'} / 2)
325 0 0 if (defined $$self{'columns_align'})
329 0 0 if (defined $$self{'cell_format'}{$$self{'columns'}{'names'}[$i]}) { }
339 0 0 if ($check)
348 0 0 if (defined $$self{'row_format'}{$$self{'columns'}{'names'}[$i]})
357 0 0 if ($check)
373 0 0 if ($$self{'link'})
374 0 0 if ($$self{'link'}{'target'}) { }
0 0 elsif ($$self{'opener'}) { }
0 0 elsif ($$self{'link'}{'location'}) { }
394 0 0 if ($$self{'opener'} or $$self{'link'}{'location'})
417 0 0 if (defined $$self{'link'}{'transit_params'})
422 0 0 if ($$self{'opener'})
431 0 0 if ($$self{'pagination'}) { }
434 0 0 if $$self{'sql'}{'where'}
438 0 0 if $pages > $pages_int
445 0 0 if (param('cg_page') > 1)
449 0 0 if param('cg_page') - $ii > 0
453 0 0 if $pages > 1
454 0 0 if (param('cg_page') < $pages)
456 0 0 if param('cg_page') + $ii <= $pages
502 0 0 if ($$self{'sql'}{'order_by'}) { }
552 0 0 if ($group ne $$rec{$$self{'groups'}[0]{'key'}})
553 0 0 if ($group ne undef)
571 0 0 if $$self{'rows'} / 2 - int($$self{'rows'} / 2)
573 0 0 if (defined $$self{'columns_align'})
576 0 0 if (defined $$self{'cell_format'}{$$self{'columns'}{'names'}[$i]}) { }
586 0 0 if ($check)
595 0 0 if (defined $$self{'row_format'}{$$self{'columns'}{'names'}[$i]})
604 0 0 if ($check)
615 0 0 if ($$self{'link'})
616 0 0 if ($$self{'link'}{'target'}) { }
0 0 elsif ($$self{'opener'}) { }
0 0 elsif ($$self{'link'}{'location'}) { }
628 0 0 if ($HTML)
638 0 0 if (defined $$self{'columns_width'} or defined $$self{'columns_headers_align'})
642 0 0 if defined $$self{'columns_width'}[$it]
643 0 0 if defined $$self{'columns_headers_align'}[$it]
658 0 0 unless defined $$self{'sth'}{'NAME'}[$i]
659 0 0 if ($$self{'sth'}{'NAME'}[$i] and not $$self{'link'}{'hidde_key_col'} && $$self{'sth'}{'NAME'}[$i] eq $$self{'link'}{'key'} and not $$self{'group_fields_hash'}{$$self{'sth'}{'NAME'}[$i]})
668 0 0 unless param('cg_side')
669 0 0 if ($$self{'auto_order'})
670 0 0 if ($i + 1 eq param('cg_order')) { }
671 0 0 if (param('cg_side') eq '0') { }
0 0 elsif (param('cg_side') eq '1') { }
686 0 0 if $$self{'link'}{'hidde_key_col'}
707 0 0 unless (defined $$self{'totals'}{$$self{'columns'}{'names'}[$i]})
713 0 0 if (defined $$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'operation'})
714 0 0 if ($$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'operation'} eq 'SUM') { }
0 0 elsif ($$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'operation'} eq 'AVG') { }
0 0 elsif ($$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'operation'} eq 'COUNT') { }
724 0 0 if ($$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'format'} eq 'price')
730 0 0 if ($$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'label'})
747 0 0 unless (defined $$self{'totals'}{$$self{'columns'}{'names'}[$i]})
752 0 0 if (defined $$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'operation'})
753 0 0 if ($$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'operation'} eq 'SUM') { }
0 0 elsif ($$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'operation'} eq 'AVG') { }
0 0 elsif ($$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'operation'} eq 'COUNT') { }
763 0 0 if ($$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'format'} eq 'price')
769 0 0 if ($$self{'totals'}{$$self{'columns'}{'names'}[$i]}{'label'})
796 0 0 if (defined $$self{'group_totals'}{$$self{'columns'}{'names'}[$i]}{'operation'})
797 0 0 if ($$self{'group_totals'}{$$self{'columns'}{'names'}[$i]}{'operation'} eq 'SUM') { }
0 0 elsif ($$self{'group_totals'}{$$self{'columns'}{'names'}[$i]}{'operation'} eq 'AVG') { }
0 0 elsif ($$self{'group_totals'}{$$self{'columns'}{'names'}[$i]}{'operation'} eq 'COUNT') { }
807 0 0 if ($$self{'group_totals'}{$$self{'columns'}{'names'}[$i]}{'format'} eq 'price')
813 0 0 if ($$self{'group_totals'}{$$self{'columns'}{'names'}[$i]}{'label'})
818 0 0 if (defined $$self{'columns_align'}) { }
831 0 0 unless $field
844 0 0 unless $field
847 0 0 if $$rec{$filter} ne $filter_value
856 0 0 unless $field
865 0 0 unless $field
868 0 0 if $$rec{$filter} ne $filter_value
877 0 0 unless $field
890 0 0 if ($@)
903 0 0 unless $field
908 0 0 if $$rec{$filter} ne $filter_value
917 0 0 if ($@)
933 0 0 if ($$self{'orders'}{param('cg_order')})
935 0 0 if param('cg_side')
936 0 0 if not param('cg_side')