Branch Coverage

blib/lib/Lingua/YaTeA/PhraseSet.pm
Criterion Covered Total %
branch 73 226 32.3


line true false branch
36 122 0 if (scalar @$words_a != 0)
38 122 0 if (scalar @$words_a > 0)
40 42 80 if (scalar @$words_a == 1) { }
50 106 16 if (not exists $this->getPhrases->{$key}) { }
53 3 103 if ($option_set->optionExists('termino') and scalar keys %$term_frontiers_h > 0)
66 72 34 if (&blessed($phrase) and $phrase->isa('Lingua::YaTeA::MultiWordPhrase')) { }
68 0 72 if (not $phrase->checkMaximumLength($option_set->getMaxLength)) { }
75 3 69 if (defined $phrase->getTestifiedTerms)
79 3 0 if (defined $phrase->getIslandSet)
84 2 1 if ($corrected == 1)
90 0 3 if ($complete == 1)
97 72 0 if ($complete == 0)
99 45 27 if ($phrase->searchParsingPattern($parsing_pattern_set, $tag_set, $option_set->getParsingDirection)) { }
117 0 34 if (defined $option_set->getOption('monolexical-all') and $option_set->getOption('monolexical-all')->getValue == 1) { }
148 72 34 if (&blessed($phrase) and $phrase->isa('Lingua::YaTeA::MultiWordPhrase')) { }
180 1 258 if (exists $this->{'IF_ACCESS'}{$key})
191 5 253 if (exists $this->{'LF_ACCESS'}{$key})
225 2 0 if (defined $this->{'UNPARSED'}) { }
247 0 2 unless (defined $ref)
252 2 0 if (defined $this->{'UNPARSED'})
267 8 19 if (defined $phrase->getIslandSet)
274 2 25 if ($corrected == 1)
278 0 27 if ($complete == 1) { }
288 25 2 if ($phrase->parseProgressively($tag_set, $parsing_direction, $parsing_pattern_set, $fh)) { }
319 2 0 if (exists $this->getPhrases->{$key})
328 0 2 if (exists $this->getPhrases->{$key}) { }
366 2 0 if (defined $this->getIFaccess)
378 16 224 if (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate') and $term_candidate->containsIslands)
387 0 2 if (defined $option_set->getOption('monolexical-included') and $option_set->getOption('monolexical-included')->getValue == 1)
401 0 0 if (defined $this->{'UNPARSABLE'})
405 0 0 if (&blessed($phrase) and $phrase->isa('Lingua::YaTeA::MultiWordPhrase') or not exists $$monolexical_transfer_h{$phrase->getID})
430 0 0 unless (defined $fh)
431 0 0 if ($file eq 'stdout') { }
434 0 0 if ($file eq 'stderr') { }
449 0 0 if (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate'))
477 2 0 unless (defined $fh)
478 0 2 if ($file eq 'stdout') { }
481 0 2 if ($file eq 'stderr') { }
490 2 0 unless (defined $sorted_weight)
498 2 0 if (scalar @term_candidates > 0)
515 112 128 if ($term_list_style eq '' or $term_list_style eq 'all' or $term_list_style eq 'multi' and (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate')))
531 112 0 if (defined $term_candidate->getWeight($mes))
536 112 0 if (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate')) { }
557 0 0 unless (defined $fh)
558 0 0 if ($file eq 'stdout') { }
561 0 0 if ($file eq 'stderr') { }
570 0 0 unless (defined $sorted_weight)
587 0 0 if ($term_list_style eq '' or $term_list_style eq 'all' or $term_list_style eq 'multi' and (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate')))
602 0 0 if ($term_candidate->getIF ne $term_candidate->getHead->getIF)
622 0 0 unless (defined $fh)
623 0 0 if ($file eq 'stdout') { }
626 0 0 if ($file eq 'stderr') { }
635 0 0 unless (defined $sorted_weight)
652 0 0 if ($term_list_style eq '' or $term_list_style eq 'all' or $term_list_style eq 'multi' and (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate')))
667 0 0 if ($term_candidate->getIF ne $term_candidate->getHead->getIF)
686 0 0 unless (defined $fh)
687 0 0 if ($file eq 'stdout') { }
690 0 0 if ($file eq 'stderr') { }
721 0 0 if ($term_list_style eq '' or $term_list_style eq 'all' or $term_list_style eq 'multi' and (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate')))
735 0 0 if (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate')) { }
755 860 0 unless (defined $b->getWeight($weight))
759 0 0 if ($b->getWeight($weight) == $a->getWeight($weight)) { }
761 0 0 if ($b->getReliability == $a->getReliability) { }
781 0 0 unless (defined $fh)
782 0 0 if ($file eq 'stdout') { }
785 0 0 if ($file eq 'stderr') { }
797 0 0 if (defined $this->getUnparsable)
800 0 0 if (&blessed($phrase) and $phrase->isa('Lingua::YaTeA::MultiWordPhrase'))
806 0 0 if ($file ne 'stdout' and $file ne 'stderr')
818 0 0 unless (defined $fh)
819 0 0 if ($file eq 'stdout') { }
822 0 0 if ($file eq 'stderr') { }
833 0 0 if (defined $this->getUnparsed)
836 0 0 if (&blessed($phrase) and $phrase->isa('Lingua::YaTeA::MultiWordPhrase'))
842 0 0 if ($file ne 'stdout' and $file ne 'stderr')
851 2 0 unless (defined $fh)
852 0 2 if ($file eq 'stdout') { }
855 0 2 if ($file eq 'stderr') { }
869 112 128 if ($ttg_style eq '' or $ttg_style eq 'all' or $ttg_style eq 'multi' and (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate')))
899 0 0 unless (defined $fh)
900 0 0 if ($file eq 'stdout') { }
903 0 0 if ($file eq 'stderr') { }
917 0 0 if ($ttg_style eq '' or $ttg_style eq 'all' or $ttg_style eq 'multi' and (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate')))
948 2 0 unless (defined $fh)
949 0 2 if ($file eq 'stdout') { }
952 0 2 if ($file eq 'stderr') { }
984 0 2 unless (defined $fh)
985 0 0 if ($file eq 'stdout') { }
988 0 0 if ($file eq 'stderr') { }
1054 16 224 if (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate') and $term_candidate->containsIslands)
1064 11 5 if (&blessed($island) and $island->isa('Lingua::YaTeA::TermCandidate')) { }
1088 112 128 if (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate'))
1099 26 86 if (defined $term_candidate->getPreposition)
1105 6 106 if (defined $term_candidate->getDeterminer)
1124 0 0 unless (defined $fh)
1125 0 0 if ($file eq 'stdout') { }
1128 0 0 if ($file eq 'stderr') { }
1189 0 0 unless (exists $term2CC{$term_candidate->getID})
1206 0 0 if ($term_candidate->getID ne $term_candidate->getHead->getID)
1301 0 0 if (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate'))
1305 0 0 if (exists $term2CC{$term_candidate->getRootHead->getID} and $term2CC{$term_candidate->getRootHead->getID} ne $term2CC{$term_candidate->getID}) { }
1313 0 0 if (defined $CC2relations{$oldCC})
1336 0 0 if (exists $term2CC{$term_candidate->getRootModifier->getID} and $term2CC{$term_candidate->getRootModifier->getID} ne $term2CC{$term_candidate->getID}) { }
1346 0 0 if (defined $CC2relations{$oldCC})
1431 0 0 if (exists $relationLabel{$rel})
1434 0 0 if (exists $relationLabelH{$rel})
1447 0 0 unless (defined $fh)
1448 0 0 if ($file eq 'stdout') { }
1451 0 0 if ($file eq 'stderr') { }
1487 0 0 if ($term_candidate->getID ne $term_candidate->getHead->getID)
1553 0 0 if (&blessed($term_candidate) and $term_candidate->isa('Lingua::YaTeA::MultiWordTermCandidate'))
1602 0 0 unless (defined $fh)
1620 0 2 unless (defined $fh)