Condition Coverage

blib/lib/Lingua/YaTeA/Corpus.pm
Criterion Covered Total %
condition 45 117 38.4


and 3 conditions

line !l l&&!r l&&r condition
57 2 9 288 $word =~ /^([^\t]+)\t([^\t]+)\t([^\t]+)$/ and $2 ne $sentence_boundary
11 0 288 $word =~ /^([^\t]+)\t([^\t]+)\t([^\t]+)$/ and $2 ne $sentence_boundary and $2 ne $document_boundary
93 0 20 0 defined $language and $language eq 'FR-Flemm'
216 2 18 578 not $fh->eof and index($line, "\t$sentence_boundary\t") == -1
253 4 0 0 defined $elems[0] and length $elems[0] > 0
332 0 18 594 &blessed($word) and $word->isa('Lingua::YaTeA::WordFromCorpus')
371 0 0 0 &blessed($word) and $word->isa('Lingua::YaTeA::WordFromCorpus')
404 0 10 10 defined $testified_set and $testified_set->size > 0
527 0 2 612 defined $fh and defined $word
563 0 18 594 &blessed($word) and $word->isa('Lingua::YaTeA::WordFromCorpus')
2 18 594 defined $word and (&blessed($word) and $word->isa('Lingua::YaTeA::WordFromCorpus'))
609 0 6 286 &blessed($word) and $word->isa('Lingua::YaTeA::WordFromCorpus')
620 0 0 6 &blessed($word) and $word->isa('Lingua::YaTeA::TestifiedTermMark')
660 0 186 2 &blessed($word) and $word->isa('Lingua::YaTeA::TestifiedTermMark')
666 0 4 182 &blessed($word) and $word->isa('Lingua::YaTeA::WordFromCorpus')
716 0 132 0 &blessed($word) and $word->isa('Lingua::YaTeA::TestifiedTermMark')
722 0 0 132 &blessed($word) and $word->isa('Lingua::YaTeA::WordFromCorpus')
727 0 0 126 &blessed($word) and $word->isa('Lingua::YaTeA::WordFromCorpus')
0 0 126 $inside_testified == 0 and (&blessed($word) and $word->isa('Lingua::YaTeA::WordFromCorpus'))
0 122 4 $inside_testified == 0 and (&blessed($word) and $word->isa('Lingua::YaTeA::WordFromCorpus')) and $potential_FS_a = $word->isEndTrigger($FS_set->getTriggerSet('END'))
758 0 8 0 &blessed($word) and $word->isa('Lingua::YaTeA::ForbiddenStructureMark')
792 0 147 0 &blessed($word) and $word->isa('Lingua::YaTeA::ForbiddenStructureMark')
795 0 145 2 &blessed($word) and $word->isa('Lingua::YaTeA::TestifiedTermMark')
849 0 0 0 &blessed($words_a->[0]) and $words_a->[0]->isa('Lingua::YaTeA::TestifiedTermMark')
890 0 4 0 &blessed($$words_a[$#$words_a]) and $$words_a[$#$words_a]->isa('Lingua::YaTeA::TestifiedTermMark')
1170 0 0 0 $i == 0 || !$tag_set->existTag('COORDINATIONS', $this->getWords->[$i - 1]->getPOS) and $i == scalar @{$this->getWords;} - 1 || !$tag_set->existTag('COORDINATIONS', $this->getWords->[$i + $tc_length]->getPOS)
1210 0 0 0 defined $occurrence and $occurrence->getEndChar == $word->getStartChar + $word->getLexItem->getLength
1529 0 0 0 &blessed($term) and $term->isa('Lingua::YaTeA::TestifiedTerm')
1606 0 0 0 $term_list_style ne '' and $term_list_style ne 'all'
0 0 0 $term_list_style ne '' and $term_list_style ne 'all' and $term_list_style ne 'multi' || &blessed($tc) && $tc->isa('Lingua::YaTeA::MultiWordTermCandidate') != 1

or 3 conditions

line l !l&&r !l&&!r condition
535 2 246 366 $i == $this->size or $word->isChunkEnd(\$action, \$split_after, $sentence_boundary, $document_boundary, $chunking_data) == 1
795 2 120 25 &blessed($word) and $word->isa('Lingua::YaTeA::TestifiedTermMark') or $word->isCompulsory($compulsory)
1170 0 0 0 $i == 0 || !$tag_set->existTag('COORDINATIONS', $this->getWords->[$i - 1]->getPOS)
0 0 0 $i == scalar @{$this->getWords;} - 1 || !$tag_set->existTag('COORDINATIONS', $this->getWords->[$i + $tc_length]->getPOS)
1264 0 0 0 $line =~ /^\s*$/ or $line =~ /^\s*#/
1369 0 0 0 $word->isSentenceBoundary($sentence_boundary) or $word == $this->getWords->[$#{$this->getWords;}]
1421 0 0 0 $word->isSentenceBoundary($sentence_boundary) or $word == $this->getWords->[$#{$this->getWords;}]
1529 0 0 0 &blessed($term) and $term->isa('Lingua::YaTeA::TestifiedTerm') or $occurrence->isMaximal
1606 0 0 0 $term_list_style ne 'multi' || &blessed($tc) && $tc->isa('Lingua::YaTeA::MultiWordTermCandidate') != 1