Condition Coverage

blib/lib/Data/Paginate.pm
Criterion Covered Total %
condition 0 156 0.0


and 2 conditions

line l !l condition
32 0 0 carp('Argument to set_total_entries() must be a digit or an array ref') and return
42 0 0 carp('Argument to set_entries_per_page() must be a digit') and return
52 0 0 carp('Argument to set_pages_per_set() must be a digit') and return
62 0 0 carp('Argument to set_sets_per_set() must be a digit') and return
72 0 0 carp('Argument to _set_current_page() must be a digit') and return
82 0 0 carp('Argument to set_variable_entries_per_page() must be a hashref') and return
85 0 0 carp('Non digit key in set_variable_entries_per_page() arg') and return
87 0 0 carp("Non digit value in set_variable_entries_per_page() arg $_") and return
101 0 0 carp('Argument to set_ext_obj() must be an object') and return
109 0 0 carp('Argument to set_page_result_display_map() must be a hashref') and return
117 0 0 carp('Argument to set_result_display_map() must be a hashref') and return
125 0 0 carp('Argument to set_result_display_map() must be a hashref') and return
134 0 0 carp('Argument to set_html_line_white_space() must be a digit') and return
142 0 0 carp('Argument to set_param_handler() must be a code ref') and return
150 0 0 carp('Argument to set_sets_in_rows() must be a digit') and return

and 3 conditions

line !l l&&!r l&&r condition
32 0 0 0 not $digit =~ /^\d+$/ and $reftype ne 'ARRAY'
272 0 0 0 defined $current_set{$ident} and $current_set{$ident} =~ /^\d+$/
0 0 0 defined $current_set{$ident} and $current_set{$ident} =~ /^\d+$/ and $current_set{$ident} > 0
294 0 0 0 $current_page{$ident} == $last_page{$ident} and $_ == $current_page{$ident}
313 0 0 0 $pages_per_set{$ident} =~ /^\d+$/ and $pages_per_set{$ident} > 0
315 0 0 0 defined $current_set{$ident} and $current_set{$ident} =~ /^\d+$/
0 0 0 defined $current_set{$ident} and $current_set{$ident} =~ /^\d+$/ and $current_set{$ident} > 0
326 0 0 0 $floor == $floor_cmp and $first_set_in_set{$ident} > 1
363 0 0 0 exists $$arg_ref{'ext_obj'} && ref $$arg_ref{'ext_obj'}
393 0 0 0 defined $$arg_ref{'current_page'} && $$arg_ref{'current_page'} =~ /^\d+$/
396 0 0 0 defined $curpg and $curpg =~ /^\d+$/
0 0 0 defined $curpg and $curpg =~ /^\d+$/ and $curpg > 0
401 0 0 0 defined $$arg_ref{'current_set'} && $$arg_ref{'current_set'} =~ /^\d+$/
404 0 0 0 defined $curst and $curst =~ /^\d+$/
0 0 0 defined $curst and $curst =~ /^\d+$/ and $curst > 0
432 0 0 0 exists $data_html_config{$ident}{'items_per_row'} && int $data_html_config{$ident}{'items_per_row'}
441 0 0 0 exists $data_html_config{$ident}{'items_per_row'} && int $data_html_config{$ident}{'items_per_row'}
449 0 0 0 exists $data_html_config{$ident}{'items_per_row'} && int $data_html_config{$ident}{'items_per_row'}
504 0 0 0 ref $perpage_html_config{ident $self}{$key} and ref $perpage_html_config{ident $self}{$key} ne ref $$hashref{$key}
520 0 0 0 $pp and exists $perpage_html_config{ident $self}{'allowed'}{$test}
521 0 0 0 exists $perpage_html_config{ident $self}{'allowed'}{'0'} and $pp eq ''
0 0 0 exists $perpage_html_config{ident $self}{'allowed'}{'0'} and $pp eq '' and $test eq '0'
547 0 0 0 ref $data_html_config{ident $self}{$key} and ref $data_html_config{ident $self}{$key} ne ref $$hashref{$key}
0 0 0 $key eq 'items_per_row' || $key eq 'headers_every' and !($$hashref{$key} =~ /^\d+$/) || $$hashref{$key} <= 0
605 0 0 0 $one_set_hide{$ident} and $last_set{$ident} == 1
619 0 0 0 $last_set_in_set{$ident} < $last_set{$ident} && $last_set_in_set{$ident} > 0
643 0 0 0 $one_page_hide{$ident} and $last_page{$ident} == 1
657 0 0 0 $last_page_in_set{$ident} < $last_page{$ident} && $last_page_in_set{$ident} > 0
689 0 0 0 defined $myconf and ref $myconf eq 'HASH'
714 0 0 0 not $$conf{'start_header'} and $cur_row == 0
736 0 0 0 defined $myconf and ref $myconf eq 'HASH'
786 0 0 0 $entries_per_page{ident $self} == $total_entries{ident $self} and $perpage_html_config{$ident}{'is_all'}

or 2 conditions

line l !l condition
380 0 0 $param_handler{$ident}($total_entries_param{$ident}) || 100
519 0 0 $test || ''
743 0 0 $join ||= "
\n"

or 3 conditions

line l !l&&r !l&&!r condition
393 0 0 0 not defined $$arg_ref{'current_page'} && $$arg_ref{'current_page'} =~ /^\d+$/ or $$arg_ref{'current_page'} < 1
401 0 0 0 not defined $$arg_ref{'current_set'} && $$arg_ref{'current_set'} =~ /^\d+$/ or $$arg_ref{'current_set'} < 1
547 0 0 0 $key eq 'items_per_row' || $key eq 'headers_every'
0 0 0 !($$hashref{$key} =~ /^\d+$/) || $$hashref{$key} <= 0
618 0 0 0 $first_set_in_set{$ident} || $first_set{$ident}
628 0 0 0 $set_result_display_map{$ident}{$_} || $_
656 0 0 0 $first_page_in_set{$ident} || $first_page{$ident}
663 0 0 0 $page_result_display_map{$ident}{$_} || $_