Branch Coverage

blib/lib/Lingua/YaTeA/IndexSet.pm
Criterion Covered Total %
branch 77 158 48.7


line true false branch
64 0 0 unless ($larger_index_set->indexExists($index))
85 277 2440 if (&blessed($sub_index) and $sub_index->isa('Lingua::YaTeA::IndexSet'))
101 21 39 if ($this->getLast <= $other_index->getFirst or $this->getFirst >= $other_index->getLast) { }
118 12 27 if ($this->getFirst < $other_index->getFirst and $this->getLast > $other_index->getLast) { }
141 0 0 if ($this->getLast < $other_index->getFirst or $this->getFirst > $other_index->getLast)
162 0 0 if ($this->getFirst < $index_set->getFirst and $this->getLast > $index_set->getLast and not $this->moreThanOneInCommon($index_set))
181 0 0 if ($parsing_direction eq 'RIGHT') { }
194 0 0 if ($this->getFirst >= $other_index->getFirst and $this->getLast <= $other_index->getLast and not $this->moreThanOneInCommon($other_index))
203 0 0 if (not defined $pivot or $this->checkInclusion($other_index, $pivot))
223 0 0 if ($previous == -1 or $previous < $this->getFirst)
229 0 0 if ($next == -1 or $next > $this->getLast)
246 0 23 if ($pivot == $this->getFirst) { }
252 19 4 if ($pivot == $this->getLast) { }
266 0 0 if ($this->getFirst == $other_index->getLast) { }
272 0 0 if ($this->getLast == $other_index->getFirst) { }
300 16 27 if ($counter > 1)
306 1 26 if ($i >= $this->getSize or $j >= $other_index->getSize)
325 0 19 if ($i >= $this->getSize or $j >= $other_index->getSize)
345 10 9 if ($i >= $this->getSize or $j >= $other_index->getSize)
370 10670 10545 if ($i & 2 ** ($j - 1))
372 10178 492 if ($previous == -1 and $$words_a[$j - 1]->isCleaningFrontier($chunking_data) or $previous != -1) { }
392 2124 593 if ($sub_index->getSize > 1)
394 277 1820 if ($sub_index->getSize < $this->getSize and $$words_a[$sub_index->getLast]->isCleaningFrontier($chunking_data) and $sub_index->testSyntacticBreakAndRepetition($words_a, $tag_set))
421 2637 1744 if ($this->getIndex($i) != $j + 1) { }
425 1538 2055 if ($tag_set->existTag('PREPOSITIONS', $$words_a[$j + 1]->getIF))
429 1821 234 if ($tag_set->existTag('CANDIDATES', $$words_a[$j + 1]->getPOS))
431 0 1821 if (exists $words{$$words_a[$j + 1]->getLF})
462 0 0 if ($this->getIndex($i) != $j + 1) { }
466 0 0 if ($tag_set->existTag('PREPOSITIONS', $$words_a[$j + 1]->getIF))
470 0 0 if ($tag_set->existTag('CANDIDATES', $$words_a[$j + 1]->getPOS))
472 0 0 if (exists $words{$$words_a[$j + 1]->getLF})
511 41 229 if ($tag_set->existTag('PREPOSITIONS', $words_a->[$index]->getIF)) { }
547 0 6 if (scalar @$source_a > 1)
557 0 0 if ($a->getPOS eq $b->getPOS)
560 0 0 if ($a->getPOS eq $this->buildPOSSequence($words_a, $tag_set))
564 0 0 if ($b->getPOS eq $this->buildPOSSequence($words_a, $tag_set))
607 0 64 if ($position eq 'LEFT')
614 64 0 if ($position eq 'RIGHT')
632 47 42 if (defined $fh)
654 310 15 if ($j < scalar @{$partial_index_set->getIndexes;}) { }
704 208 102 if ($index == $index_partial) { }
706 144 64 if (!defined($pivot) || $index != $pivot and not $tree->getIndexSet->indexExists($index))
724 208 0 if (ref $head ne 'SCALAR' and defined $head) { }
725 89 119 if ($index_partial == $head->getIndex)
766 0 0 if ($j < scalar @{$partial_index_set->getIndexes;}) { }
770 0 0 if ($index == $index_partial) { }
772 0 0 if (exists $pivots_h->{$index})
805 19 145 if ($i == $j)
820 3 0 if (defined $fh) { }
843 24 6 if ($this->getFirst <= $other_index->getFirst and $this->getLast >= $other_index->getLast)
858 30 166 if (exists $this_index{$index})
881 1 4 if ($index >= $stop_index)
896 0 5 if ($index > $stop_index)
911 0 0 if ($index != $index_to_remove)
934 52 0 if (scalar @{$this->getIndexes;} > 0)
935 3 49 if ($this->getLast < $to_append->getFirst or $this->getFirst > $to_append->getLast)
948 25 24 if ($this->getLast == $to_append->getFirst or $this->getFirst == $to_append->getLast)
957 1 23 if ($this->getFirst <= $to_append->getFirst)
959 1 0 if ($this->getLast >= $to_append->getLast) { }
961 1 0 if (defined $pivot)
966 0 0 unless ($this->crosses($to_append))
974 0 0 if ($this->getLast < $to_append->getLast)
976 0 0 if (defined $pivot)
978 0 0 if ($pivot == $this->getLast) { }
991 23 0 if ($this->getFirst >= $to_append->getFirst)
993 19 4 if ($this->getLast <= $to_append->getLast) { }
995 19 0 if (defined $pivot)
999 0 0 unless ($this->crosses($to_append))
1006 4 0 if ($this->getLast > $to_append->getLast)
1008 4 0 if (defined $pivot)
1010 0 4 if ($pivot == $this->getFirst) { }
1034 0 0 if ($this->getFirst < $to_append->getFirst and $this->getLast > $to_append->getFirst and $this->getLast < $to_append->getLast or $this->getFirst > $to_append->getFirst and $this->getFirst < $to_append->getLast and $this->getLast > $to_append->getLast)
1056 0 0 if (scalar @$gaps_a > 1)
1062 0 0 if (exists $gap_h->{$index})
1070 0 0 if (scalar @fulled_gaps > 1)
1093 141 64 if (defined $previous)
1095 25 116 if ($index > $previous + 1)
1123 0 0 if ($this->getIndexes->[$i] != $this->getIndexes->[$i - 1] + 1)
1140 0 0 unless (exists $uniq{$index})