Branch Coverage

lib/Spreadsheet/Reader/ExcelXML/XMLReader/FileWorksheet.pm
Criterion Covered Total %
branch 112 124 90.3


line true false branch
49 14 193 unless $result
73 47 146 if (exists $full_row_ref->{'c'})
84 193 0 exists $full_row_ref->{'attributes'} ? :
90 187 6 if (exists $full_row_ref->{'attributes'}{'spans'}) { }
116 189 310 if (exists $cell->{'t'}) { }
272 38 elsif (defined $v_node) { }
117 174 15 if ($cell->{'t'} eq 's') { }
3 12 elsif ($cell->{'t'} =~ /^(e|inlineStr)$/) { }
11 1 elsif ($cell->{'t'} eq 'str') { }
1 0 elsif ($cell->{'t'} eq 'b') { }
0 0 elsif ($cell->{'t'} eq 'd') { }
0 0 elsif ($cell->{'t'} eq 'n') { }
120 166 8 $self->has_shared_strings_interface ? :
124 79 95 if (&is_HashRef($position)) { }
126 75 4 unless $cell->{'rich_text'}
138 0 11 if (not exists $cell->{'f'} and $v_node =~ /\=/)
144 1 0 $v_node ? :
160 8 22 if ($self->are_spaces_empty and $cell->{'cell_xml_value'} and $cell->{'cell_xml_value'} =~ /^\s+$/)
169 270 2 if $cell->{'cell_xml_value'} and $cell->{'cell_xml_value'} ne ''
172 220 279 if ($self->get_empty_return_type eq 'empty_string') { }
41 239 elsif (not defined $cell->{'cell_xml_value'} or $cell->{'cell_xml_value'} and length $cell->{'cell_xml_value'} == 0) { }
173 16 204 unless exists $cell->{'cell_xml_value'} and defined $cell->{'cell_xml_value'}
182 52 447 if exists $cell->{'f'}
195 3 190 $last_value_column && $new_ref->{'row_span'}[1] < $last_value_column ? :
209 34 62 if ($merge_range and $merge_range->[$col])
214 4 30 if ($self->spreading_merged_values)
216 4 0 if (defined $column_to_cell_translations->[$col] and $$alt_ref[$column_to_cell_translations->[$col]])
220 2 2 if ($$alt_ref[$column_to_cell_translations->[$col]]{'r'} eq $1)
226 7 1 if (not exists $primary_ref->{$key} and exists $$alt_ref[$column_to_cell_translations->[$col]]{$key})
233 1 1 unless $primary_ref->{'rich_text'}
239 2 2 if ($not_primary)
251 499 403 if ($new_cell or defined $column_to_cell_translations->[$col] and $$alt_ref[$column_to_cell_translations->[$col]])
258 67 298 $full_row_ref->{'attributes'}{'hidden'} ? :
45 365 $self->get_custom_column_data($col) && exists $self->get_custom_column_data($col)->{'hidden'} && $self->get_custom_column_data($col)->{'hidden'} ? :
89 410 $self->is_sheet_hidden ? :
259 298 201 unless $new_cell->{'cell_hidden'}
267 499 403 if (defined $column_to_cell_translations->[$col] and $$alt_ref[$column_to_cell_translations->[$col]])
270 2843 4 if not exists $new_cell->{$_}
279 15 7 if ($self->should_skip_hidden and $new_cell and exists $new_cell->{'cell_hidden'})
289 4 58 if ($self->get_values_only and $new_cell and not exists $new_cell->{'cell_xml_value'})
298 480 403 if ($new_cell and keys %$new_cell > 0)
314 186 7 if ($cell_stack) { }
318 6 180 if (not $self->has_max_col or $last_value_column > $self->_max_col)
324 2 184 if ($new_ref->{'row_span'}[1] < $last_value_column)
330 26 160 if (not $self->has_max_row or $new_ref->{'row_number'} > $self->_max_row)
336 3 183 if (not $self->has_max_col or $new_ref->{'row_span'}[1] > $self->_max_col)
367 0 32 if ($current_named_node->{'name'} eq 'dimension') { }
375 31 1 if ($result) { }
383 31 1 $self->starts_at_the_edge ? :
385 25 7 $end ? :
393 24 8 if defined $end_column
394 24 8 if defined $end_row
408 28 4 if ($self->collecting_column_formats)
409 2 26 if ($node_name eq 'EOF')
415 34 12 if ($result)
431 0 66 unless &is_HashRef($definition) and &is_HashRef($definition->{'attributes'})
435 176 85 if defined $definition->{'attributes'}{$_}
455 28 4 if ($self->collecting_merge_data)
456 9 19 if ($node_name eq 'EOF')
463 14 20 if ($result)
491 20 20 if ($start_col > $end_col)
505 32 0 if ($good_load) { }