Branch Coverage

blib/lib/XML/Excel.pm
Criterion Covered Total %
branch 38 68 55.8


line true false branch
42 0 4 if ($$attr{'ParseExcel'}) { }
60 0 3 unless my $workbook = $ParseExcel_obj->Parse($file_name)
63 0 3 unless defined $workbook
65 0 0 if $$class{'error_out'} == 1 and $@
69 1 2 unless exists $$attr{'headings'}
71 1 2 if ($$attr{'headings'} == 0)
73 1 0 if ($$class{'column_headings'})
81 2 1 if ($$attr{'headings'} != 0)
83 1 1 defined $$attr{'sub_char'} ? :
84 0 2 unless $cols_returned
85 0 2 if $$class{'error_out'} == 1
87 0 2 unless $cols_returned
103 257 18 defined $cell ? :
121 3 1 unless $$args{'file_tag'}
122 4 0 unless $$args{'parent_tag'}
123 3 1 unless $$args{'format'}
127 0 4 if ($$class{'column_data'} == 0 or $$class{'column_headings'} == 0 and $$class{'headings'})
133 4 0 if ($file_out) { }
140 1 3 if $$class{'declare_xml'}
143 1 3 if $$class{'declare_doctype'}
145 1 3 if $$class{'declare_doctype'}
152 4 0 if ($#{$$class{'column_headings'};} > 0) { }
192 1 0 if (exists $$attr{'version'}) { }
200 0 0 if $$class{'error_out'} == 1
203 1 0 if exists $$attr{'encoding'}
204 1 0 if (exists $$attr{'standalone'} and $$attr{'standalone'} =~ /[yes|no]/) { }
0 0 elsif (not $$attr{'standalone'} =~ /[yes|no]/) { }
212 0 0 if $$class{'error_out'} == 1
230 1 0 if ($$attr{'source'} eq 'SYSTEM' or $$attr{'source'} eq 'PUBLIC') { }
237 0 0 if $$class{'error_out'} == 1
240 1 0 if (exists $$attr{'location1'} and not exists $$attr{'subset'}) { }
247 0 0 if $$class{'error_out'} == 1
250 1 0 if exists $$attr{'location2'}
251 0 1 if exists $$attr{'subset'}