Condition Coverage

blib/lib/Search/Tools/HeatMap.pm
Criterion Covered Total %
condition 36 47 76.6


and 3 conditions

line !l l&&!r l&&r condition
205 4 13 3 defined $heat_sentence_starts->[$i] and $heat_sentence_starts->[$i] != $start
312 2 30 10 $i and exists $heatmap{$cluster_pos[$i - 2]}
324 13 0 7 $query_has_phrase and not $self->{'_treat_phrases_as_singles'}
342 2 2 0 $n_terms == $query_has_phrase and $n_terms > $span{'unique'}
447 17 27 33 $i and $pos - $positions[$i - 1] > $proximity
489 0 50 11 @cluster_tokens and not $cluster_tokens[0]->is_match
492 0 50 6 @cluster_tokens and not $cluster_tokens[-1]->is_match
524 5 49 23 $i and exists $heatmap{$cluster_pos[$i - 2]}
535 36 0 3 $query_has_phrase and not $self->{'_treat_phrases_as_singles'}
551 1 1 0 $n_terms == $query_has_phrase and $n_terms > $span{'unique'}

or 2 conditions

line l !l condition
138 30 0 $self->window_size || 20
139 13 17 $self->as_sentences || 0
153 0 13 $self->debug || 0
401 0 17 $self->debug || 0

or 3 conditions

line l !l&&r !l&&!r condition
392 16 0 35 $Search::Tools::HeatMap::b->{'unique'} <=> $Search::Tools::HeatMap::a->{'unique'} or $Search::Tools::HeatMap::b->{'proximate'} <=> $Search::Tools::HeatMap::a->{'proximate'}
16 5 30 $Search::Tools::HeatMap::b->{'unique'} <=> $Search::Tools::HeatMap::a->{'unique'} or $Search::Tools::HeatMap::b->{'proximate'} <=> $Search::Tools::HeatMap::a->{'proximate'} or $Search::Tools::HeatMap::b->{'heat'} <=> $Search::Tools::HeatMap::a->{'heat'}
468 19 0 42 scalar @$b <=> scalar @$a or $heatmap{$Search::Tools::HeatMap::b->[0]} <=> $heatmap{$Search::Tools::HeatMap::a->[0]}