Condition Coverage

blib/lib/PDF/Table.pm
Criterion Covered Total %
condition 157 263 59.7


and 2 conditions

line l !l condition
168 1 10 ref $data eq "ARRAY" and scalar @$data
1236 14 36 $gfx and $cell_h_rule_w and scalar @{$data;}

and 3 conditions

line !l l&&!r l&&r condition
110 0 7 0 defined $page and ref $page ne "PDF::API2::Page"
7 0 0 defined $page and ref $page ne "PDF::API2::Page" and ref $page ne "PDF::Builder::Page"
156 0 0 13 $pdf and $page
0 0 13 $pdf and $page and $data
315 9 0 1 defined $arg{'header_props'} and ref $arg{'header_props'} eq "HASH"
424 23 24 3 not $row_idx and $do_headers
525 50 0 0 defined $cell_max_w and defined $cell_min_w
581 0 2 48 $cell_max_word_len > 0 and $data->[$row_idx][$col_idx]
655 9 9 1 not $row_idx and $do_headers
766 10 0 1 $do_headers && $pg_cnt == 1 || $do_headers == 2 && $pg_cnt > 1 and defined $rows_height->[1]
823 10 1 19 scalar @{$data;} and $cur_y - $rows_height->[0] > $bot_margin
861 22 24 3 $first_row and $do_headers
959 49 0 0 defined $cell_max_w and defined $cell_min_w
1076 0 48 1 $c_cell_props and $c_cell_props->{'colspan'}
48 0 1 $c_cell_props and $c_cell_props->{'colspan'} and $c_cell_props->{'colspan'} > 1
1098 0 0 49 not $content =~ /(.\n.)/ and $data_row_widths->[$col_idx]
0 3 46 not $content =~ /(.\n.)/ and $data_row_widths->[$col_idx] and $data_row_widths->[$col_idx] <= $actual_column_widths[$row_idx][$col_idx]
1191 9 9 1 $first_row and $do_headers
1215 32 0 18 defined $bg_color and not $colspanned{$row_idx . "_" . $col_idx}
1224 0 14 36 $gfx and $cell_v_rule_w
14 13 23 $gfx and $cell_v_rule_w and $col_idx
27 0 23 $gfx and $cell_v_rule_w and $col_idx and not $colspanned{$row_idx . "_" . $col_idx}
1236 0 14 36 $gfx and $cell_h_rule_w
21 0 15 $gfx and $cell_h_rule_w and scalar @{$data;} and $cur_y - $actual_row_height - $current_min_rh > $bot_margin
1265 0 3 8 $gfx and $h_border_w
1323 49 46 428 $name ne "underline" and $name ne "bg_color"
95 46 382 $name ne "underline" and $name ne "bg_color" and $name ne "fg_color"
92 46 336 $name ne "underline" and $name ne "bg_color" and $name ne "fg_color" and $name ne "bg_color_even"
92 46 290 $name ne "underline" and $name ne "bg_color" and $name ne "fg_color" and $name ne "bg_color_even" and $name ne "bg_color_odd"
92 46 244 $name ne "underline" and $name ne "bg_color" and $name ne "fg_color" and $name ne "bg_color_even" and $name ne "bg_color_odd" and $name ne "fg_color_even"
92 46 198 $name ne "underline" and $name ne "bg_color" and $name ne "fg_color" and $name ne "bg_color_even" and $name ne "bg_color_odd" and $name ne "fg_color_even" and $name ne "fg_color_odd"
92 99 99 $name ne "underline" and $name ne "bg_color" and $name ne "fg_color" and $name ne "bg_color_even" and $name ne "bg_color_odd" and $name ne "fg_color_even" and $name ne "fg_color_odd" and $name ne "min_w"
145 99 0 $name ne "underline" and $name ne "bg_color" and $name ne "fg_color" and $name ne "bg_color_even" and $name ne "bg_color_odd" and $name ne "fg_color_even" and $name ne "fg_color_odd" and $name ne "min_w" and $name ne "max_w"
1241 523 0 not defined $default and ($name ne "underline" and $name ne "bg_color" and $name ne "fg_color" and $name ne "bg_color_even" and $name ne "bg_color_odd" and $name ne "fg_color_even" and $name ne "fg_color_odd" and $name ne "min_w" and $name ne "max_w")
1336 4 1072 688 not defined $cell_val and $fallback ne ""
1340 68 1021 675 not defined $cell_val and $fallback ne ""
1344 68 1021 675 not defined $cell_val and $fallback ne ""
1348 101 988 675 not defined $cell_val and $fallback ne ""
1440 0 0 3 defined $text and length $text > 0
1456 0 0 3 defined $arg{'leading'} && $arg{'leading'} > 0
1494 0 0 0 $arg{'parspace'} and $paragraph_number > 1
1506 1 3 0 $first_line and exists $arg{'hang'}
1 3 0 $first_line and exists $arg{'flindent'}
3 0 0 $first_line and exists $arg{'flindent'} and $arg{'flindent'} > 0
0 4 0 $paragraph_number == 1 and exists $arg{'fpindent'}
4 0 0 $paragraph_number == 1 and exists $arg{'fpindent'} and $arg{'fpindent'} > 0
4 0 0 exists $arg{'indent'} and $arg{'indent'} > 0
1571 4 0 0 $align eq "justify" and @paragraph

or 2 conditions

line l !l condition
179 1 9 $arg{'cell_render_hook'} ||= undef
263 10 0 $arg{'x'} || -1
264 4 0 $arg{'y'} || $arg{'start_y'} || -1
265 10 0 $arg{'w'} || -1
266 4 0 $arg{'h'} || $arg{'start_h'} || -1
288 4 6 $arg{'cell_props'} || []
297 10 0 $arg{'next_y'} || undef
298 10 0 $arg{'next_h'} || undef
299 0 10 $arg{'size'} || undef
333 5 5 $arg{'column_props'} || []
337 0 10 $arg{'row_props'} || []
367 0 10 $arg{'underline'} || undef
1416 3 0 $arg{'x'} || -1
1417 3 0 $arg{'y'} || -1
1418 3 0 $arg{'w'} || -1
1419 3 0 $arg{'h'} || -1
1570 4 0 $arg{'align'} || 'left'

or 3 conditions

line l !l&&r !l&&!r condition
69 0 7 0 ref $type || $type
113 0 0 0 ref $self->{'pdf'} eq "PDF::API2" or ref $self->{'pdf'} eq "PDF::Builder"
162 12 0 1 ref $pdf eq "PDF::API2" or ref $pdf eq "PDF::Builder"
165 11 0 1 ref $page eq "PDF::API2::Page" or ref $page eq "PDF::Builder::Page"
320 1 0 0 $header_props->{'repeat'} ||= $repeat_default
349 0 10 0 $arg{'font'} || $pdf->corefont('Times', '-encode', 'latin1')
351 3 7 0 $arg{'font_size'} || $font_size_default
353 0 10 0 $arg{'leading'} || $min_leading
361 0 8 2 $arg{'h_border_w'} || $border_w
362 0 8 2 $arg{'v_border_w'} || $border_w
365 2 8 0 $arg{'border_c'} || $fg_color_default
369 1 9 0 $arg{'max_word_length'} || $max_wordlen_default
370 0 10 0 $arg{'default_text'} || $empty_cell_text
433 0 0 3 $header_props->{'padding_top'} || $header_props->{'padding'}
435 0 0 3 $header_props->{'padding_right'} || $header_props->{'padding'}
437 0 0 3 $header_props->{'padding_bottom'} || $header_props->{'padding'}
439 0 0 3 $header_props->{'padding_left'} || $header_props->{'padding'}
766 1 3 7 $do_headers && $pg_cnt == 1 || $do_headers == 2 && $pg_cnt > 1
869 0 0 3 $header_props->{'padding_top'} || $header_props->{'padding'}
871 0 0 3 $header_props->{'padding_right'} || $header_props->{'padding'}
873 0 0 3 $header_props->{'padding_bottom'} || $header_props->{'padding'}
875 0 0 3 $header_props->{'padding_left'} || $header_props->{'padding'}
1024 12 37 0 $fg_color ||= $fg_color_default
1071 49 0 0 $data_row->[$col_idx] //= $cell_def_text
1455 3 0 0 $arg{'font_size'} || $font_size_default
1457 3 0 0 $line_space ||= $font_size * $leading_ratio
1571 0 0 4 $align eq "fulljustify" or $align eq "justify" and @paragraph