Branch Coverage

lib/Pheno/Ranker/Compare.pm
Criterion Covered Total %
branch 86 120 71.6


line true false branch
24 2 10 exists $data->[0]{'subject'} ? :
38 0 14 if $self->{'debug'} or $self->{'verbose'}
61 0 14 $num_items > $max_items ? :
66 0 0 $switch ? :
0 14 if $self->{'debug'} or $self->{'verbose'}
80 0 420 if $self->{'verbose'}
93 0 15028 if ($switch) { }
99 0 0 $i == $j ? :
103 420 14608 if ($i == $j) { }
7304 7304 elsif ($j > $i) { }
131 0 14 if $self->{'debug'} or $self->{'verbose'}
150 0 2 if $self->{'debug'} or $self->{'verbose'}
171 0 72 if $self->{'verbose'}
173 0 72 if defined $self->{'debug'} and $self->{'debug'} > 1
209 1 1 $weight ? :
223 246 72 exists $nomenclature{$_} ? :
227 0 2 if @sort_keys_glob_hash != @labels
250 0 292 $sort_by eq 'jaccard' ? :
255 0 72 if $self->{'verbose'}
310 0 72 $target_vars == 0 ? :
312 0 72 $reference_vars == 0 ? :
350 936 360 if (defined $format->{$_}{'format'}) { }
354 72 0 if (defined $align)
392 36 36 $weight_bool eq 'True' ? :
403 2 70 if $count == $max_out
423 0 72 if $length1 != $length2
452 5164 6284 if $char1 == 0 and $char2 == 0
458 2112 9336 if $char1 ne $char2
460 9336 2112 $char1 eq $char2 ? :
507 0 456 unless my $id = $element->{$primary_key}
512 0 456 if $self->{'verbose'}
524 97 359 if defined $weight
568 0 458 if @included and @excluded
575 25 433 if (@included)
577 75 50 unless &any(sub { $_ eq $key; } , @included)
582 0 458 if (@excluded)
584 0 0 if exists $hash->{$key}
597 138 320 unless exists $hash->{'phenotypicFeatures'}
602 338 449 unless $feature->{'excluded'}
606 2 447 if ($switch) { }
609 0 2 $format eq 'BFF' ? :
651 0 458 unless %$hash
689 2799 84392 unless defined $hash->{$key}
696 50729 33663 if defined $exclude_variables_regex_qr and $key =~ /$exclude_variables_regex_qr/
703 1509 31774 if $format eq 'PXF' || $format eq 'BFF' and $key =~ /\.age(?!nt)|onset/i and not $self->{'age'}
713 7989 23564 if ref $val eq "HASH" and not keys %{$val;} or ref $val eq "ARRAY" and not @{$val;} or exists $exclude_values{$val} or $val =~ /$misc_regex_qr/
724 0 23564 if (defined $edges and $val =~ /^HP:/)
740 23564 0 if ($tmp_key_at_term_level =~ /\./)
747 5292 18272 if (defined $weight) { }
763 0 5247 exists $weight->{$tmp_key_at_term_level} ? :
45 5247 exists $weight->{$tmp_key_at_variable_level} ? :
784 23229 335 if defined $hash->{$label}
882 22358 1206 if ($key =~ /$array_terms_regex_qr/) { }
893 22228 130 if (defined $3) { }
897 0 22228 if (ref $id_correspondence->{$1} eq ref []) { }
928 0 1206 if $key =~ /^(\w+):/
954 22926 39344 exists $cmp_hash->{$individual_id}{$key} ? :
956 22926 39344 exists $cmp_hash->{$individual_id}{$key} ? :
1004 20 5057 if $hash_ref->{$key} == 0
1012 72 0 if ($input_string =~ /\. # Match a literal dot ([^\.]+) # Match and capture everything except a dot $ # Anchor to the end of the string /x)