Branch Coverage

lib/Spreadsheet/Reader/ExcelXML/Workbook.pm
Criterion Covered Total %
branch 52 68 76.4


line true false branch
372 28 11 unless ($worksheet_name)
377 9 19 !$self->in_the_list ? :
380 9 19 if ($next_position >= $self->worksheet_count)
394 11 19 unless defined $next_position
396 0 30 if (not $worksheet_info && $worksheet_info->{'sheet_type'}) { }
1 29 elsif ($worksheet_info->{'sheet_type'} and $worksheet_info->{'sheet_type'} eq 'chartsheet') { }
409 0 29 unless $self->file_opened
423 261 0 if exists $args->{$arg}
430 29 0 if ($worksheet) { }
472 20 0 if (&XLSXFile()->check($file)) { }
483 20 0 if (ref $file_handle) { }
487 0 0 length $@ > 0 ? :
512 28 0 if ($result)
515 19 9 if ($result->loaded_correctly) { }
526 9 0 unless ($result)
534 1 19 unless ($result)
563 94 1 if ($result)
564 91 3 if (&is_Object($result) and $result->loaded_correctly) { }
566 34 57 if ($meta_load->[0] eq 'self')
595 23 0 if ($self)
597 0 23 if ($self->_has_file)
604 22 1 if ($self->has_error_inst)
611 14 9 if ($self->has_shared_strings_interface)
618 18 5 if ($self->has_styles_interface)
625 18 5 if ($self->_has_workbook_file_interface)
632 22 1 if ($self->_has_formatter_inst)
840 124 0 if (exists $file_ref->{'differentiation'})
851 20 104 &is_ArrayRef($file_ref->{'file'}) ? :
853 123 1 if ($file) { }
856 0 123 if ($self->_should_show_sub_file_size)
858 0 0 if ($self->get_cache_size($interface_type)) { }
868 66 57 if ($self->has_cache_size($interface_type))
871 4 62 -s $file > $self->get_cache_size($interface_type) ? :
907 224 4 if (defined $return)