Condition Coverage

blib/lib/PDF/ReportWriter.pm
Criterion Covered Total %
condition 0 193 0.0


and 2 conditions

line l !l condition
154 0 0 ref $page_list eq 'ARRAY' and scalar @$page_list
2372 0 0 system($cups_cmd) && 255

and 3 conditions

line !l l&&!r l&&r condition
251 0 0 0 exists $$opt{'orientation'} and $$opt{'orientation'}
412 0 0 0 $type ne 'data' and not $$cell{'image'}
0 0 0 $type ne 'data' and not $$cell{'image'} and not exists $$cell{'bold'}
619 0 0 0 ref $data_ref eq 'ARRAY' and ref $$data_ref[0] eq 'ARRAY'
713 0 0 0 $want_new_page and $row_counter
759 0 0 0 $want_new_page and $$group{'reprinting_header'}
772 0 0 0 $row_counter and $$group{'footer'}
0 0 0 $row_counter and $$group{'footer'} and not $want_new_page
840 0 0 0 defined $pdf_tmpl and $pdf_tmpl
922 0 0 0 not $$self{'group_header_queue'} and $$group{'reprinting_header'}
0 0 0 not $$self{'group_header_queue'} and $$group{'reprinting_header'} and $$group{'value'} ne '!'
968 0 0 0 $y_needed <= $$self{'page_height'} and $$self{'y'} - $y_needed < 0
1072 0 0 0 $$cell{'image'}{'dynamic'} and ref $$options{'row'} eq 'ARRAY'
1082 0 0 0 $$cell{'image'}{'path'} and $$cell{'image'}{'path'} ne $$cell{'image'}{'previous_path'}
1290 0 0 0 $type ne 'page_footer' and $$size_calculation{'y_needed'} <= $$self{'page_height'}
0 0 0 $type ne 'page_footer' and $$size_calculation{'y_needed'} <= $$self{'page_height'} and $$self{'y'} - $$size_calculation{'y_needed'} < 0
1305 0 0 0 $type eq 'data' and $$self{'need_data_header'}
0 0 0 $type eq 'data' and $$self{'need_data_header'} and not $$self{'data'}{'no_field_headers'}
1407 0 0 0 exists $$func_return{'rendering_done'} and $$func_return{'rendering_done'}
1456 0 0 0 $type eq 'data' and $$cell{'aggregate_function'}
1788 0 0 0 $$cell{'align'} and $$cell{'align'} eq 'centre' || $$cell{'align'} eq 'center'
0 0 0 $$cell{'align'} and $$cell{'align'} eq 'right'
1814 0 0 0 exists $$cell{'bold'} && $$cell{'bold'}
0 0 0 exists $$cell{'italic'} && $$cell{'italic'}
0 0 0 exists $$cell{'italic'} && $$cell{'italic'}
1883 0 0 0 $type ne 'header' and $$cell{'format'}
0 0 0 $$cell{'type'} and $$cell{'type'} =~ /^custom:(.+)$/
1964 0 0 0 $string and $$self{'txt'}->advancewidth($string) > $$cell{'text_width'}
2057 0 0 0 $cell_abs_pos and $y_pos < $line_height
2108 0 0 0 $$self{'txt'}->advancewidth(substr($paragraph, 0, $position)) < $text_width and $position < length $paragraph
2167 0 0 0 exists $$options{'null_if_zero'} and $$options{'null_if_zero'}
0 0 0 exists $$options{'null_if_zero'} and $$options{'null_if_zero'} and $value == 0
2225 0 0 0 exists $$self{'pages'} and ref $$self{'pages'}
2331 0 0 0 -e $cmd and -x $cmd
2364 0 0 0 $ok &&= close $temp_file

or 2 conditions

line l !l condition
232 0 0 lc $3 || 'mm'
280 0 0 $$opt{'font'} || ['Helvetica']
305 0 0 $$opt{'default_font_size'} || 12
306 0 0 $$opt{'default_font'} || 'Helvetica'
1458 0 0 $$options{'current_value'} || 0
1459 0 0 $$cell{'group_results'} ||= {}
1701 0 0 lc $$cell{'align'} || 'l'
1877 0 0 $$cell{'colour_func'}($string, $row, $opt) || 'black'
1879 0 0 $$cell{'colour'} || 'black'
1928 0 0 $$cell{'text_whitespace'} || 0
1932 0 0 $$cell{'align'} || 'left'
2325 0 0 $$opt{'tempdir'} ||= '/tmp'

or 3 conditions

line l !l&&r !l&&!r condition
176 0 0 0 $$self{'pdf'} ||= 'PDF::API2'->new
208 0 0 0 $$opt{'paper'} eq 'Letter' or $$opt{'paper'} eq 'letter'
0 0 0 $$opt{'paper'} eq 'bsize' or $$opt{'paper'} eq 'Bsize'
0 0 0 $$opt{'paper'} eq 'Legal' or $$opt{'paper'} eq 'legal'
268 0 0 0 $$opt{'info'}{'Creator'} || "PDF::ReportWriter $PDF::ReportWriter::VERSION"
280 0 0 0 $$opt{'font_list'} ||= $$opt{'font'} || ['Helvetica']
570 0 0 0 $$self{'data'}{'page'}{'footer'} || $$self{'data'}{'page'}{'footerless'}
759 0 0 0 $$group{'value'} ne $$row[$$group{'data_column'}] or $want_new_page and $$group{'reprinting_header'}
836 0 0 0 shift() || $$self{'template'}
854 0 0 0 $new_page or $user_warned
864 0 0 0 $$self{'pdf'} ||= 'PDF::API2'->new
865 0 0 0 $new_page ||= $$self{'pdf'}->page
1082 0 0 0 not $imgdata{'img_x'} or $$cell{'image'}{'path'} and $$cell{'image'}{'path'} ne $$cell{'image'}{'previous_path'}
1210 0 0 0 not $row_heights[$$cell{'row'}] or $current_height > $row_heights[$$cell{'row'}]
1581 0 0 0 not exists $$background{'borders'} or uc $$background{'borders'} eq 'ALL'
1661 0 0 0 $$cell{'font_size'} || $$self{'default_font_size'}
1788 0 0 0 $$cell{'align'} eq 'centre' || $$cell{'align'} eq 'center'
1818 0 0 0 $$cell{'font'} || $$self{'default_font'}
1977 0 0 0 $align eq 'c' or $type eq 'header'
2415 0 0 0 $text || $$cell{'text'}