Branch Coverage

blib/lib/Excel/ValueReader/XLSX/Backend/LibXML.pm
Criterion Covered Total %
branch 71 78 91.0


line true false branch
25 528 800 if $reader->nodeType == 15
28 259 541 if ($node_name eq 'si') { }
260 281 elsif ($node_name eq '#text') { }
29 255 4 if defined $last_string
37 4 0 if defined $last_string
54 46 124 if $reader->nodeType == 15
56 24 100 if ($reader->name eq 'sheet') { }
2 191 elsif ($reader->name eq 'workbookPr' and my $attr_value = $reader->getAttribute('date1904')) { }
57 0 24 unless my $name = $reader->getAttribute("name")
62 1 1 if $attr_value eq 1 or $attr_value eq "true"
87 170 559 if $xml_reader->nodeType == 15
90 193 366 if ($expected_subnode)
92 128 65 if ($xml_reader->name eq $name and $xml_reader->depth == $depth) { }
9 56 elsif ($xml_reader->depth < $depth) { }
104 4 427 if ($xml_reader->name eq 'numFmts') { }
5 422 elsif ($xml_reader->name eq 'cellXfs') { }
109 37 1 if $id and $code and $code =~ /$date_style_regex/
169 15 7109 if $node_name eq "sheetData" and $node_type == 15
170 2885 4224 if $node_type == 15
172 730 3494 if ($node_name eq "row")
178 1205 3019 if ($node_name eq 'c') { }
1057 1962 elsif ($node_name =~ /^[vtf]$/) { }
1057 905 elsif ($node_name eq '#text') { }
181 1193 12 $A1_cell_ref ? :
200 1054 3 if ($seen_node eq 'v') { }
0 3 elsif ($seen_node eq 't' and $cell_type eq 'inlineStr') { }
3 0 elsif ($seen_node eq 'f') { }
201 653 401 if ($cell_type eq 's') { }
0 401 elsif ($cell_type eq 'e') { }
401 0 elsif ($cell_type =~ /^(n|d|b|str|)$/) { }
202 653 0 if (&looks_like_number($val)) { }
217 243 1 if ($has_date_formatter and $cell_style and &looks_like_number($val) and $val >= 0)
219 76 167 if $date_style
270 5 13 if $node_type == 15
272 8 5 if ($node_name eq "Relationship")
274 5 3 if ($target =~ m[tables/table(\d+)\.xml])
297 10 35 if $node_type == 15
299 5 30 if ($node_name eq 'table') { }
16 14 elsif ($node_name eq 'tableColumn') { }