Branch Coverage

lib/Pheno/Ranker.pm
Criterion Covered Total %
branch 50 76 65.7


line true false branch
88 0 19 unless (exists $config->{'allowed_terms'} and &ArrayRef()->check($config->{'allowed_terms'}) and @{$config->{'allowed_terms'};})
107 15 4 defined $self->{'exclude_variables_regex'} ? :
119 15 4 defined $config->{'seed'} && &Int()->check($config->{'seed'}) ? :
121 18 1 if ($self->{'array_terms'}[0] ne "foo")
122 0 18 unless (exists $config->{'id_correspondence'} and &HashRef()->check($config->{'id_correspondence'}))
129 3 15 if (exists $config->{'format'} and &Str()->check($config->{'format'}))
132 0 3 unless exists $config->{'id_correspondence'}{$config->{'format'}}
240 1 18 if (@{$self->{'append_prefixes'};})
242 0 1 unless @{$self->{'reference_files'};} > 1
244 0 1 unless @{$self->{'reference_files'};} == @{$self->{'append_prefixes'};}
246 0 19 if (@{$self->{'patients_of_interest'};})
248 0 0 unless @{$self->{'reference_files'};}
284 11 8 defined $align ? :
285 0 19 unless -d $align_dir
287 0 19 defined $export ? :
288 0 19 unless -d $export_dir
305 1 18 if ($has_precomputed) { }
307 0 1 if $self->{'verbose'}
337 0 18 if (@$poi)
362 0 16 if ($include_hpo_ascendants)
385 14 2 unless $target_file
394 2 14 if ($target_file)
416 0 16 if (defined $export)
417 0 0 $export ? :
442 0 16 unless -f $cohort_file
458 15 1 if (ref $json_data eq ref []) { }
459 0 15 unless exists $json_data->[0]{$primary_key}
462 0 1 unless exists $json_data->{$primary_key}
493 13 3 unless defined $self->{'format'}
499 1 15 unless check_existence_of_include_terms($coverage_stats, $self->{'include_terms'})
514 0 15 if (keys %$glob_hash > $self->{'max_number_vars'})
564 0 2 unless exists $tar_data->{$primary_key}
601 0 2 if $cli
604 2 0 if (defined $align)
605 0 2 $align ? :
616 2 0 if defined $align
626 1 15 if ($cytoscape_json)
637 1 15 if (defined $graph_stats)