Branch Coverage

lib/Pheno/Ranker/IO.pm
Criterion Covered Total %
branch 44 70 62.8


line true false branch
63 0 18 $mode eq 'write' ? :
66 2 16 $file =~ /\.gz$/ ? :
69 2 16 $is_gz ? :
78 0 18 unless &any(sub { $_ eq $ext; } , @exts)
93 18 0 $mode eq 'read' ? :
99 2 20 if ($file =~ /\.gz$/) { }
100 0 2 unless gunzip($file, \$str)
114 0 24 if ($file =~ /\.gz$/) { }
116 0 0 unless gunzip($file, \$yaml_str)
168 0 0 if ($match) { }
170 0 0 if $verbose
183 0 2 if (ref $data eq ref [])
185 0 0 if ($n == 1) { }
198 5 13 $file && -f $file ? :
201 13 5 unless defined $data
228 2 3 if (@errors)
253 2675 0 unless (not defined $item->{$key} or ref $item->{$key} eq "HASH" and not %{$item->{$key};} or ref $item->{$key} eq "ARRAY" and not @{$item->{$key};} or $item->{$key} eq "NA" or $item->{$key} eq "NaN")
276 14 2 unless @$include_terms
293 0 14 ref $ref_data->[0] eq ref {} ? :
14 4 if @$ref_data == 1
305 2 0 $$append_prefixes[$prefix_count - 1] ? :
312 1 1 if (ref $item eq ref []) { }
357 0 37 unless defined $id
367 15 2 unless $self->{'format'} eq "PXF"
370 0 2 if grep {$_ eq "interpretations";} @{$$self{"exclude_terms"};}
373 0 2 if defined $self->{'verbose'}
390 2 1 if (exists $genomic_interpretation->{'variantInterpretation'}) { }
1 0 elsif (exists $genomic_interpretation->{'geneDescriptor'}) { }
395 1 1 if (exists $variant_interpretation->{'variationDescriptor'}{'geneContext'}{'valueId'}) { }
1 0 elsif (exists $variant_interpretation->{'variationDescriptor'}{'id'}) { }
424 2 1 exists $genomic_interpretation->{'variantInterpretation'} ? :
436 2 2 unless exists $data->{'interpretations'}
450 2 0 if (ref $data eq 'ARRAY') { }
0 0 elsif (ref $data eq 'HASH') { }
452 4 0 if ref $entry eq "HASH"