Branch Coverage

blib/lib/Data/Paginate.pm
Criterion Covered Total %
branch 0 310 0.0


line true false branch
32 0 0 if not $digit =~ /^\d+$/ and $reftype ne 'ARRAY'
33 0 0 if $checkonly
34 0 0 $reftype eq 'ARRAY' ? :
42 0 0 unless $digit =~ /^\d+$/
44 0 0 if $checkonly
52 0 0 unless $digit =~ /^\d+$/
54 0 0 if $checkonly
62 0 0 unless $digit =~ /^\d+$/
64 0 0 if $checkonly
72 0 0 unless $digit =~ /^\d+$/
74 0 0 if $checkonly
82 0 0 if ref $hashref ne 'HASH'
85 0 0 unless $_ =~ /^\d+$/
87 0 0 unless $$hashref{$_} =~ /^\d+$/
90 0 0 if $checkonly
101 0 0 unless ref $obj
109 0 0 if ref $hashref ne 'HASH'
117 0 0 if ref $hashref ne 'HASH'
125 0 0 if ref $hashref ne 'HASH'
134 0 0 unless $digit =~ /^\d+$/
142 0 0 if ref $coderef ne 'CODE'
150 0 0 unless $digit =~ /^\d+$/
196 0 0 if wantarray
202 0 0 if wantarray
215 0 0 if defined wantarray
272 0 0 if defined $current_set{$ident} and $current_set{$ident} =~ /^\d+$/ and $current_set{$ident} > 0
278 0 0 exists $variable_entries_per_page{$ident}{$current_page{$ident}} ? :
283 0 0 if ($variable_entries_per_page{$ident}{$_} =~ /^\d+$/)
291 0 0 if $current_page{$ident} > $last_page{$ident}
294 0 0 if ($current_page{$ident} == $last_page{$ident} and $_ == $current_page{$ident}) { }
299 0 0 exists $variable_entries_per_page{$ident}{$_} ? :
304 0 0 unless $first{$ident}
306 0 0 $current_page{$ident} + 1 <= $last_page{$ident} ? :
309 0 0 unless defined $of_page_string{$ident}
310 0 0 unless defined $of_of_string{$ident}
313 0 0 if ($pages_per_set{$ident} =~ /^\d+$/ and $pages_per_set{$ident} > 0)
315 0 0 unless defined $current_set{$ident} and $current_set{$ident} =~ /^\d+$/ and $current_set{$ident} > 0
317 0 0 if $current_set{$ident} > $last_set{$ident}
326 0 0 if ($floor == $floor_cmp and $first_set_in_set{$ident} > 1) { }
328 0 0 if $first_set_in_set{$ident} > 1
331 0 0 if $first_set_in_set{$ident} > 1
334 0 0 if $first_set_in_set{$ident} > 1
335 0 0 if $last_set_in_set{$ident} > $last_set{$ident}
338 0 0 $current_set{$ident} + 1 <= $last_set{$ident} ? :
339 0 0 $current_set{$ident} == $last_set{$ident} ? :
342 0 0 unless defined $of_set_string{$ident}
351 0 0 exists $$arg_ref{'pre_current_set'} ? :
352 0 0 exists $$arg_ref{'pst_current_page'} ? :
353 0 0 exists $$arg_ref{'pre_current_set'} ? :
354 0 0 exists $$arg_ref{'pst_current_set'} ? :
356 0 0 exists $$arg_ref{'result_display_map'} ? :
357 0 0 exists $$arg_ref{'page_result_display_map'} ? :
358 0 0 exists $$arg_ref{'set_result_display_map'} ? :
360 0 0 exists $$arg_ref{'html_line_white_space'} ? :
361 0 0 exists $$arg_ref{'style'} ? :
363 0 0 exists $$arg_ref{'ext_obj'} && ref $$arg_ref{'ext_obj'} ? :
364 0 0 unless (defined $ext_obj{$ident})
370 0 0 exists $$arg_ref{'param_handler'} ? :
371 0 0 exists $$arg_ref{'sets_in_rows'} ? :
380 0 0 exists $$arg_ref{'total_entries'} ? :
382 0 0 exists $$arg_ref{'entries_per_page'} ? :
384 0 0 exists $$arg_ref{'pages_per_set'} ? :
385 0 0 exists $$arg_ref{'sets_per_set'} ? :
387 0 0 exists $$arg_ref{'page_param'} ? :
388 0 0 exists $$arg_ref{'set_param'} ? :
389 0 0 exists $$arg_ref{'total_entries_verify_param_name'} ? :
390 0 0 exists $$arg_ref{'total_entries_verify_param_value'} ? :
393 0 0 if (not defined $$arg_ref{'current_page'} && $$arg_ref{'current_page'} =~ /^\d+$/ or $$arg_ref{'current_page'} < 1)
396 0 0 if defined $curpg and $curpg =~ /^\d+$/ and $curpg > 0
401 0 0 if (not defined $$arg_ref{'current_set'} && $$arg_ref{'current_set'} =~ /^\d+$/ or $$arg_ref{'current_set'} < 1)
404 0 0 if defined $curst and $curst =~ /^\d+$/ and $curst > 0
413 0 0 exists $$arg_ref{'variable_entries_per_page'} ? :
431 0 0 unless $data_html_config{$ident}{'inc_perpage'}
432 0 0 exists $data_html_config{$ident}{'items_per_row'} && int $data_html_config{$ident}{'items_per_row'} ? :
440 0 0 unless $data_html_config{$ident}{'inc_perpage'}
441 0 0 exists $data_html_config{$ident}{'items_per_row'} && int $data_html_config{$ident}{'items_per_row'} ? :
448 0 0 if $data_html_config{ident $self}{'stop_headers'}
449 0 0 exists $data_html_config{$ident}{'items_per_row'} && int $data_html_config{$ident}{'items_per_row'} ? :
463 0 0 unless (defined $array_idx)
481 0 0 if ref $$arg_ref{'data_html_config'} eq 'HASH'
492 0 0 if ref $$arg_ref{'perpage_html_config'} eq 'HASH'
503 0 0 unless exists $$hashref{$key}
504 0 0 if (ref $perpage_html_config{ident $self}{$key} and ref $perpage_html_config{ident $self}{$key} ne ref $$hashref{$key}) { }
506 0 0 $ref eq 'ARRAY' ? :
517 0 0 if (keys %{$perpage_html_config{ident $self}{'allowed'};})
520 0 0 unless $pp and exists $perpage_html_config{ident $self}{'allowed'}{$test}
521 0 0 if (exists $perpage_html_config{ident $self}{'allowed'}{'0'} and $pp eq '' and $test eq '0') { }
530 0 0 if ($pp)
531 0 0 if ($trustme_nocalc) { }
546 0 0 unless exists $$hashref{$key}
547 0 0 if (ref $data_html_config{ident $self}{$key} and ref $data_html_config{ident $self}{$key} ne ref $$hashref{$key}) { }
0 0 elsif ($key eq 'items_per_row' || $key eq 'headers_every' and !($$hashref{$key} =~ /^\d+$/) || $$hashref{$key} <= 0) { }
549 0 0 $ref eq 'ARRAY' ? :
567 0 0 if defined $page_param{$ident}
568 0 0 if defined $page_param{$ident}
569 0 0 if defined $total_entries_param{$ident}
570 0 0 if $total_entries_param{$ident}
572 0 0 if $total_entries_verify_param_value{$ident}
579 0 0 unless $page_param{$ident}
580 0 0 unless $set_param{$ident}
593 0 0 $as_table{$ident} ? :
594 0 0 $as_table{$ident} ? :
595 0 0 $as_table{$ident} ? :
596 0 0 $as_table{$ident} ? :
597 0 0 $as_table{$ident} ? :
604 0 0 if ($pages_per_set{$ident})
605 0 0 if ($one_set_hide{$ident} and $last_set{$ident} == 1) { }
608 0 0 if $use_of_vars{$ident}
609 0 0 unless $previous_set{$ident}
610 0 0 if ($previous_set{$ident})
619 0 0 $last_set_in_set{$ident} < $last_set{$ident} && $last_set_in_set{$ident} > 0 ? :
629 0 0 if $_ == $current_set{$ident}
630 0 0 if $_ != $current_set{$ident}
632 0 0 unless $next_set{$ident}
633 0 0 if ($next_set{$ident})
643 0 0 if ($one_page_hide{$ident} and $last_page{$ident} == 1) { }
646 0 0 if $use_of_vars{$ident}
647 0 0 if $simple_nav{$ident}
649 0 0 unless $previous_page{$ident}
650 0 0 if ($previous_page{$ident})
657 0 0 $last_page_in_set{$ident} < $last_page{$ident} && $last_page_in_set{$ident} > 0 ? :
664 0 0 if $_ == $current_page{$ident}
665 0 0 if $_ != $current_page{$ident}
667 0 0 unless $next_page{$ident}
668 0 0 if ($next_page{$ident})
674 0 0 if $simple_nav{$ident}
678 0 0 if $nostyle
679 0 0 if $simple_nav{$ident}
681 0 0 wantarray ? :
689 0 0 if defined $myconf and ref $myconf eq 'HASH'
699 0 0 int $$conf{'items_per_row'} ? :
702 0 0 $$conf{'start_array_index_at_zero'} ? :
706 0 0 defined wantarray ? :
713 0 0 unless ($cur_row % $$conf{'headers_every'})
714 0 0 unless not $$conf{'start_header'} and $cur_row == 0
716 0 0 if $$conf{'restart_row_alt_on_header'}
718 0 0 if $startit >= $total_entries{ident $self}
724 0 0 if $ar_idx >= $total_entries{ident $self}
725 0 0 unless defined $ar_idx
729 0 0 if $no_more_rows
736 0 0 if defined $myconf and ref $myconf eq 'HASH'
738 0 0 if $return
752 0 0 $asopts ? :
756 0 0 unless (exists $perpage_html_config{$ident}{'allowed'}{$pp_value})
761 0 0 if $total_entries_verify_param_value{$ident}
766 0 0 if (keys %{$perpage_html_config{$ident}{'allowed'};})
768 0 0 if ($num == $entries_per_page{ident $self}) { }
769 0 0 $asopts ? :
773 0 0 if (not $asopts) { }
785 0 0 if (exists $perpage_html_config{$ident}{'allowed'}{'0'})
786 0 0 if ($entries_per_page{ident $self} == $total_entries{ident $self} and $perpage_html_config{$ident}{'is_all'}) { }
787 0 0 $asopts ? :
791 0 0 if (not $asopts) { }
804 0 0 if (not $asopts) { }
806 0 0 if $html