Branch Coverage

lib/Text/ProcessMap.pm
Criterion Covered Total %
branch 106 202 52.4


line true false branch
47 21 0 if (exists $_attrs{$property} and $_attrs{$property} eq $method) { }
104 17 0 if ($self->_accessible($key, 'header'))
112 4 0 if ($self->_accessible($key, 'body'))
122 0 8 if (not defined $col or $col < 1)
132 2 0 unless $fd
134 2 0 if $$self{'_output_file'}
140 0 2 if ($fd =~ /::/)
141 0 2 unless open OUTPUT, ">$fd"
2 0 if ($fd)
160 0 2 if ($ml_imax < 0)
164 0 2 if ($#{$$self{'_coltitles'};} != $ml_imax)
168 0 2 if ($#{$$self{'_colwidths'};} != $ml_imax)
172 0 2 unless $self->_is_header_fancy
178 2 0 if ($$self{'_title'})
183 2 0 if ($$self{'_description'})
188 2 0 if ($$self{'_number'})
193 2 0 if ($$self{'_topnote'})
202 4 2 if ($i < $ml_imax) { }
239 0 2 unless ($$self{'_layout'} =~ /^stack$|^matrix$/)
247 2 0 if ($$self{'_layout'} eq 'stack')
254 0 0 if (defined @{$$self{'_mlayout'}[$col];}[$row])
264 0 0 if ($$self{'_layout'} eq 'matrix')
272 0 0 unless (defined @{$$self{'_mheight'};}[$row])
276 0 0 if (defined @{$$self{'_mlayout'}[$col];}[$row])
280 0 0 unless (defined @{$$self{'_mheight'};}[$row])
284 0 0 if ($rheight > @{$$self{'_mheight'};}[$row])
297 0 0 unless (defined @{$$self{'_mlayout'}[$col];}[$row])
302 0 0 if ($row > 1)
330 0 0 if (defined @{$$self{'_mlayout'}[$col];}[$row])
363 0 0 $j < $numcols - 1 ? :
371 0 0 if ($$self{'_diagramnote'})
387 0 0 unless $self->_is_footer_fancy
393 0 0 if ($#{$$self{'_fnotes'};} > 0)
401 0 0 if ($fcnt)
406 0 0 if ($$self{'_name'})
424 0 2 unless ($$self{'_loader_file'})
426 0 2 unless open LOAD, $$self{'_loader_file'}
431 20 79 unless $_
432 0 79 if /^#/
434 10 69 if (/^\[/)
435 10 0 if (/(header|body|column\s+(\d{1,}))/i)
447 13 56 if ($section =~ /header/i)
448 11 2 unless (/^put/)
454 6 63 if ($section =~ /body/i)
455 4 2 if (/^boxchars|^coltitles|^colwidths/i) { }
456 4 0 unless (/^put/i)
457 0 4 if (/^boxchars/i)
460 2 2 if (/^coltitles/i)
463 2 2 if (/^colwidths/i)
468 0 2 unless (/^put/i)
475 50 19 if ($section =~ /column/i)
476 22 28 if (/^element/i) { }
479 20 8 unless (/^put/i)
486 12 57 if (/^put/i)
487 2 10 if ($section =~ /body/i)
488 0 2 if (@boxc)
489 2 0 if (@colt)
490 2 0 if (@colw)
493 2 10 if ($section =~ /header/i)
496 8 4 if ($section =~ /column/i)
523 0 6 if (length $str >= $width)
547 0 28 if ($ll + length($w) > $width) { }
556 8 0 if $tmp
564 0 28 if (length $str > $width)
580 0 0 if ($$self{'_title'} or $$self{'_description'} or $$self{'_number'})
588 0 0 if ($#{$$self{'_fnotes'};} > 0 or $$self{'_name'})
612 0 10 $mwidth > $bwidth ? :
618 0 0 if ($$self{'_test'})
707 8 0 unless ($$self{'_connect'})
711 1 7 if ($$self{'_type'} =~ /^arrow/)
719 0 1 if ($$self{'_subtype'} > 3)
724 0 8 unless ($$self{'_type'} =~ /^box$|^arrow$|^blank$/)
728 0 8 unless ($$self{'_border'} =~ /^on$|^off$/)
733 8 0 if ($$self{'_type'} =~ /^arrow$|^box$/)
736 4 4 if ($$self{'_col'} > $ccol)
737 0 8 if ($$self{'_row'} > 0 and $$self{'_row'} < $crow)
738 0 8 if ($$self{'_row'} > $crow)
783 7 1 if ($$self{'_border'} eq 'on') { }
789 7 1 if ($$self{'_type'} eq 'box')
791 7 0 if ($border)
796 2 5 if ($$self{'_header'})
803 7 0 if ($$self{'_id'})
808 7 0 if ($$self{'_title'})
813 7 0 if ($#{$$self{'_elements'};} > -1)
821 2 5 if ($$self{'_footer'})
828 7 0 if ($border)
835 1 7 if ($$self{'_type'} eq 'arrow')
839 1 0 if ($$self{'_title'})
848 0 8 if ($$self{'_type'} eq 'blank')
850 0 0 if ($$self{'_boxheight'} > 0)
861 8 0 if ($$self{'_connect'})
880 0 0 if ($height > $$self{'_boxheight'})
923 4 85 if ($ll + length($w) > $width) { }
932 41 0 if $tmp
934 41 0 if ($center) { }
953 0 89 if (length $str > $width)
1012 0 1 if ($subtype == 0)
1013 0 1 if ($subtype == 1)
1014 0 1 if ($subtype == 2)
1015 1 0 if ($subtype == 3)
1023 4 23 unless $cc