Branch Coverage

blib/lib/Lingua/YaTeA/TestifiedTermSet.pm
Criterion Covered Total %
branch 10 44 22.7


line true false branch
32 1 0 if ($format eq 'TTG') { }
38 0 0 if ($format eq 'PARSED')
50 0 1 unless my $fh = 'FileHandle'->new("<$file_path")
54 1 0 if ($line =~ /^[^\t]+\t[^\t]+\t[^\t]+$/) { }
59 0 0 if ($line =~ /^\( .+<=[HM]> /)
156 0 0 if ($match_type eq 'loose') { }
158 0 0 unless (exists $$filtering_lexicon_h{lc $IF_a->[$i]} or exists $$filtering_lexicon_h{lc $LF_a->[$i]})
170 0 0 if ($match_type eq 'strict') { }
172 0 0 unless (exists $$filtering_lexicon_h{lc($IF_a->[$i]) . '~' . $POS_a->[$i]})
182 0 0 unless (exists $$filtering_lexicon_h{lc $IF_a->[$i]})
199 0 0 if ($tag_set->existTag('CANDIDATES', $item->getPOS))
291 2 1 if ($word =~ /^([^\t]+)\t([^\t]+)\t([^\t]+)$/ and $2 ne $sentence_boundary)
298 2 0 if ($match_type eq 'loose') { }
300 0 0 unless (exists $$filtering_lexicon_h{lc $1} or exists $$filtering_lexicon_h{lc $3})
312 0 0 if ($match_type eq 'strict') { }
314 0 0 unless (exists $$filtering_lexicon_h{lc($1) . '~' . $2})
325 0 0 unless (exists $$filtering_lexicon_h{lc $1})
341 2 0 if ($tag_set->existTag('CANDIDATES', $item->getPOS))
347 1 0 if (scalar @lex_items > 1) { }
353 0 0 if (scalar @lex_items == 1)
358 1 0 if (&blessed($testified) and $testified->isa('Lingua::YaTeA::TestifiedTerm'))
368 1 0 if (not exists $this->getTestifiedTerms->{$key}) { }