Branch Coverage

lib/Pheno/Ranker.pm
Criterion Covered Total %
branch 49 74 66.2


line true false branch
84 0 19 unless (exists $config->{'allowed_terms'} and &ArrayRef()->check($config->{'allowed_terms'}) and @{$config->{'allowed_terms'};})
103 15 4 defined $self->{'exclude_variables_regex'} ? :
115 15 4 defined $config->{'seed'} && &Int()->check($config->{'seed'}) ? :
117 18 1 if ($self->{'array_terms'}[0] ne "foo")
118 0 18 unless (exists $config->{'id_correspondence'} and &HashRef()->check($config->{'id_correspondence'}))
125 3 15 if (exists $config->{'format'} and &Str()->check($config->{'format'}))
128 0 3 unless exists $config->{'id_correspondence'}{$config->{'format'}}
235 1 18 if (@{$self->{'append_prefixes'};})
237 0 1 unless @{$self->{'reference_files'};} > 1
239 0 1 unless @{$self->{'reference_files'};} == @{$self->{'append_prefixes'};}
241 0 19 if (@{$self->{'patients_of_interest'};})
243 0 0 unless @{$self->{'reference_files'};}
279 11 8 defined $align ? :
280 0 19 unless -d $align_dir
282 0 19 defined $export ? :
283 0 19 unless -d $export_dir
296 1 18 if ($has_precomputed) { }
298 0 1 if $self->{'verbose'}
332 0 16 if ($include_hpo_ascendants)
355 14 2 unless $target_file
364 2 14 if ($target_file)
386 0 16 if (defined $export)
387 0 0 $export ? :
412 0 16 unless -f $cohort_file
428 15 1 if (ref $json_data eq ref []) { }
429 0 15 unless exists $json_data->[0]{$primary_key}
432 0 1 unless exists $json_data->{$primary_key}
463 1 15 unless check_existence_of_include_terms($coverage_stats, $self->{'include_terms'})
468 12 3 unless defined $self->{'format'}
481 0 15 if (keys %$glob_hash > $self->{'max_number_vars'})
529 0 2 unless exists $tar_data->{$primary_key}
565 0 2 if $cli
568 2 0 if (defined $align)
569 0 2 $align ? :
580 2 0 if defined $align
590 1 15 if ($cytoscape_json)
601 1 15 if (defined $graph_stats)