Branch Coverage

blib/lib/Spreadsheet/ReadGnumeric.pm
Criterion Covered Total %
branch 77 94 81.9


line true false branch
50 12 64 unless ($sheets)
74 0 0 unless $stack
84 12444 0 if ($ns_prefix) { }
87 12236 208 if ($url and $url eq 'http://www.gnumeric.org/v10.dtd') { }
111 24 6198 if (grep {/^xmlns:(.*)$/;} keys %$attrs)
115 84 24 if ($attr =~ /^xmlns:(.*)$/)
125 6210 12 if $Spreadsheet::ReadGnumeric::Self->current_elt
153 6118 104 if ($gnumeric_p)
155 4116 2002 if $Spreadsheet::ReadGnumeric::Self->can($method)
162 12 6210 unless @$stack
178 40 76 if (length $alpha == 0) { }
192 0 8 unless $alpha
201 1220 36 $value <= 26 ? :
231 12 0 unless (defined $gzipped_p)
232 0 12 unless (read $stream, my $block, 2)
248 2 10 if (ref $input) { }
2 8 elsif ($input =~ /\A(\037\213|<\?xml)/) { }
257 0 8 unless open $stream, "<", $input
260 2 10 ref $input ? :
5 7 if $self->stream_gzipped_p($stream, ref $input ? () : $input)
273 124 32 unless $$stack[@$stack - 1][0] eq "Sheet"
290 0 32 unless defined $maxrow
300 4 0 if $self->attr
309 690 1622 unless $text
312 1142 480 if $self->rc
314 1142 480 if $self->cells
316 342 1280 if $self->attr
330 9 23 if $self->{'_sheet'}{'cell'}
334 8 24 if ($attr)
335 3 5 if $attr eq "keep"
339 8 0 unless ($self->minimal_attributes)
349 2 6 if ($merged)
355 2 2 $merge_p ? :
358 4 0 $self->rc ? :
372 6 6 if ($merge_p)
373 6 0 if $self->rc
376 6 0 if $self->cells
401 216 0 $value =~ /^GNM_.ALIGN_(.*)$/ ? :
412 342 171 if ($len <= 2) { }
0 171 elsif ($len == 3) { }
459 2052 0 $conversion ? :
461 153 1899 if $color_p and not $convert_colors
475 408 108 unless $self->attr
486 408 108 unless $self->attr
487 0 108 unless my $style_attributes = $self->style_attributes
498 342 2400 if ($style_region->start_col <= $col and $col <= $style_region->end_col and $style_region->start_row <= $row and $row <= $style_region->end_row)
517 408 108 unless $self->attr