Branch Coverage

blib/lib/Spreadsheet/HTML/File/Loader.pm
Criterion Covered Total %
branch 12 66 18.1


line true false branch
22 0 5 if ($args->{'file'} =~ m[^https?://])
23 0 0 if ($NO_URI or $NO_LWP or $NO_TEMP or $NO_BASE) { }
33 0 0 if &LWP::Simple::is_error($error)
34 0 0 defined $args->{'_unlink'} ? :
39 1 4 if ($file =~ /\.html?$/) { }
1 3 elsif ($file =~ /\.jso?n$/) { }
1 2 elsif ($file =~ /\.ya?ml$/) { }
0 2 elsif ($file =~ /\.(gif|png|jpe?g)$/) { }
49 2 0 unless -r $file or $file eq '-'
50 0 0 if $NO_READER
63 0 0 if ref $file eq 'GLOB'
67 0 0 if ($args->{'preserve'} and ref $parsed->{'attr'} eq 'ARRAY' and scalar @{$parsed->{'attr'};})
76 0 0 unless $map and $attr->{$key}
77 0 0 if ($map->[0]) { }
213 1 0 unless -r $file
214 0 0 if $NOT_AVAILABLE
235 1 0 unless -r $file
236 0 0 if $NOT_AVAILABLE
238 0 0 unless open my $fh, '<', $file
259 1 0 unless -r $file
260 0 0 if $NOT_AVAILABLE
266 0 0 $table ? :
284 0 0 unless -r $file
285 0 0 if $NOT_AVAILABLE
288 0 0 unless my(@images) = $imager->read_multi('file', $file)
291 0 0 ($args->{'block'} || 0) < 1 ? :
0 0 $args->{'block'} && $args->{'block'} =~ /\D/ ? :
309 0 0 if ($args->{'block'} == 1) { }
312 0 0 if ($args->{'blend'}) { }
315 0 0 unless ref $pixel
326 0 0 unless ref $pixel
334 0 0 if ($args->{'alpha'})
343 0 0 unless $args->{'alpha'} and $args->{'alpha'} eq $primary