Condition Coverage

blib/lib/PDF/Table.pm
Criterion Covered Total %
condition 162 293 55.2


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
115 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"
161 0 0 13 $pdf and $page
0 0 13 $pdf and $page and $data
333 9 0 1 defined $arg{'header_props'} and ref $arg{'header_props'} eq "HASH"
458 0 0 0 $cell_markup ne "none" and $cell_markup ne "md1"
0 0 0 $cell_markup ne "none" and $cell_markup ne "md1" and $cell_markup ne "html"
0 0 0 $cell_markup ne "none" and $cell_markup ne "md1" and $cell_markup ne "html" and $cell_markup ne "pre"
0 0 0 defined $data->[$row_idx][$col_idx][1] and ref $data->[$row_idx][$col_idx][1] ne ""
0 0 0 defined $data->[$row_idx][$col_idx][1] and ref $data->[$row_idx][$col_idx][1] ne "" and ref $data->[$row_idx][$col_idx][1] ne "ARRAY"
0 0 0 defined $data->[$row_idx][$col_idx][2] and ref $data->[$row_idx][$col_idx][2] ne "HASH"
485 23 24 3 not $row_idx and $do_headers
586 50 0 0 defined $cell_max_w and defined $cell_min_w
643 0 2 48 $cell_max_word_len > 0 and $data->[$row_idx][$col_idx]
2 0 48 $cell_max_word_len > 0 and $data->[$row_idx][$col_idx] and ref $data->[$row_idx][$col_idx] eq ""
718 9 9 1 not $row_idx and $do_headers
829 10 0 1 $do_headers && $pg_cnt == 1 || $do_headers == 2 && $pg_cnt > 1 and defined $rows_height->[1]
862 0 3 8 $ink and $h_border_w
886 10 1 19 scalar @{$data;} and $cur_y - $rows_height->[0] > $bot_margin
924 22 24 3 $first_row and $do_headers
1022 49 0 0 defined $cell_max_w and defined $cell_min_w
1139 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
1159 0 49 0 ref $content eq "" and $content eq ""
1162 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]
1300 9 9 1 $first_row and $do_headers
1325 32 0 18 defined $bg_color and not $colspanned{$row_idx . "_" . $col_idx}
1334 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}
1346 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
1361 0 0 0 $first_row and $do_headers
1387 0 3 8 $gfx and $h_border_w
1455 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")
1468 4 1072 688 not defined $cell_val and $fallback ne ""
1472 68 1021 675 not defined $cell_val and $fallback ne ""
1476 68 1021 675 not defined $cell_val and $fallback ne ""
1480 101 988 675 not defined $cell_val and $fallback ne ""
1572 0 0 3 defined $text and length $text > 0
1588 0 0 3 defined $arg{'leading'} && $arg{'leading'} > 0
1626 0 0 0 $arg{'parspace'} and $paragraph_number > 1
1638 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
1703 4 0 0 $align eq "justify" and @paragraph

or 2 conditions

line l !l condition
184 1 9 $arg{'cell_render_hook'} ||= undef
273 10 0 $arg{'x'} || -1
274 4 0 $arg{'y'} || $arg{'start_y'} || -1
275 10 0 $arg{'w'} || -1
276 4 0 $arg{'h'} || $arg{'start_h'} || -1
299 4 6 $arg{'cell_props'} || []
308 10 0 $arg{'next_y'} || undef
309 10 0 $arg{'next_h'} || undef
310 0 10 $arg{'size'} || undef
351 5 5 $arg{'column_props'} || []
355 0 10 $arg{'row_props'} || []
385 0 10 $arg{'underline'} || undef
1548 3 0 $arg{'x'} || -1
1549 3 0 $arg{'y'} || -1
1550 3 0 $arg{'w'} || -1
1551 3 0 $arg{'h'} || -1
1702 4 0 $arg{'align'} || 'left'

or 3 conditions

line l !l&&r !l&&!r condition
74 0 7 0 ref $type || $type
118 0 0 0 ref $self->{'pdf'} eq "PDF::API2" or ref $self->{'pdf'} eq "PDF::Builder"
167 12 0 1 ref $pdf eq "PDF::API2" or ref $pdf eq "PDF::Builder"
170 11 0 1 ref $page eq "PDF::API2::Page" or ref $page eq "PDF::Builder::Page"
338 1 0 0 $header_props->{'repeat'} ||= $repeat_default
367 0 10 0 $arg{'font'} || $pdf->corefont('Times-Roman', '-encode', 'latin1')
369 3 7 0 $arg{'font_size'} || $font_size_default
371 0 10 0 $arg{'leading'} || $min_leading
379 0 8 2 $arg{'h_border_w'} || $border_w
380 0 8 2 $arg{'v_border_w'} || $border_w
383 2 8 0 $arg{'border_c'} || $fg_color_default
387 1 9 0 $arg{'max_word_length'} || $max_wordlen_default
388 0 10 0 $arg{'default_text'} || $empty_cell_text
494 0 0 3 $header_props->{'padding_top'} || $header_props->{'padding'}
496 0 0 3 $header_props->{'padding_right'} || $header_props->{'padding'}
498 0 0 3 $header_props->{'padding_bottom'} || $header_props->{'padding'}
500 0 0 3 $header_props->{'padding_left'} || $header_props->{'padding'}
829 1 3 7 $do_headers && $pg_cnt == 1 || $do_headers == 2 && $pg_cnt > 1
932 0 0 3 $header_props->{'padding_top'} || $header_props->{'padding'}
934 0 0 3 $header_props->{'padding_right'} || $header_props->{'padding'}
936 0 0 3 $header_props->{'padding_bottom'} || $header_props->{'padding'}
938 0 0 3 $header_props->{'padding_left'} || $header_props->{'padding'}
1087 12 37 0 $fg_color ||= $fg_color_default
1134 49 0 0 $data_row->[$col_idx] //= $cell_def_text
1587 3 0 0 $arg{'font_size'} || $font_size_default
1589 3 0 0 $line_space ||= $font_size * $leading_ratio
1703 0 0 4 $align eq "fulljustify" or $align eq "justify" and @paragraph