Condition Coverage

blib/lib/Alvis/TermTagger.pm
Criterion Covered Total %
condition 83 255 32.5


and 3 conditions

line !l l&&!r l&&r condition
237 0 581 0 defined $caseSensitive and $caseSensitive == 0 || length $tab_words_lc[$i] <= $caseSensitive
288 0 0 0 not $word_found and $i < scalar @tab_termlex
290 0 0 0 $word ne '' and length $word > 2 || scalar @tab_termlex == 1
0 0 0 $word ne '' and length $word > 2 || scalar @tab_termlex == 1 and exists $ref_corpus_index->{$word}
334 0 56 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField] <= $caseSensitive
359 55 0 103 $i < scalar @tab_termlex and $i < scalar @tab_termlexCap
55 103 0 $i < scalar @tab_termlex and $i < scalar @tab_termlexCap and $word eq '' || exists $ref_corpus_index->{$word} || ($caseSensitive == 0 || length $termCap > $caseSensitive) && exists $$ref_corpus_index{$tab_termlexCap[$i]}
431 0 76 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
56 6 14 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+]($term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>
0 25 37 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+]($term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>i
437 0 76 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
56 19 1 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<^($term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>i
0 72 3 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<^($term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>i
443 0 76 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
56 20 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]($term_regex)$>
0 76 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]($term_regex)$>i
449 0 76 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
56 20 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ /^($term_regex)$/i
0 76 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ /^($term_regex)$/i
509 0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+](?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>s
0 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+](?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>is
515 0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<^(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>s
0 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<^(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>is
521 0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+](?$term_regex)$>s
0 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+](?$term_regex)$>is
527 0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ /^(?$term_regex)$/s
0 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ /^(?$term_regex)$/is
588 0 12 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<(?[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+])(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>s
0 5 7 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<(?[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+])(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>is
595 0 12 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<^(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>s
0 11 1 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<^(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>is
602 0 12 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<(?[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+])(?$term_regex)$>s
0 12 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<(?[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+])(?$term_regex)$>is
609 0 12 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ /^(?$term_regex)$/s
0 12 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ /^(?$term_regex)$/is

or 3 conditions

line l !l&&r !l&&!r condition
136 0 0 35 $line =~ /^\s*\#/o or $line =~ m[^\s*//]o
0 0 35 $line =~ /^\s*\#/o or $line =~ m[^\s*//]o or $line =~ /^\s*$/o
237 147 79 355 $caseSensitive == 0 || length $tab_words_lc[$i] <= $caseSensitive
290 0 0 0 length $word > 2 || scalar @tab_termlex == 1
334 14 0 42 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField] <= $caseSensitive
359 100 0 3 $word eq '' || exists $ref_corpus_index->{$word} || ($caseSensitive == 0 || length $termCap > $caseSensitive) && exists $$ref_corpus_index{$tab_termlexCap[$i]}
431 20 0 56 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 50 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
14 0 62 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+]($term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]> or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+]($term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>i
437 20 0 56 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 63 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
1 0 75 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<^($term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>i or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<^($term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>i
443 20 0 56 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 64 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
0 0 76 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]($term_regex)$> or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]($term_regex)$>i
449 20 0 56 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 64 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
0 0 76 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ /^($term_regex)$/i or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ /^($term_regex)$/i
509 0 0 0 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
0 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+](?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>s or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+](?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>is
515 0 0 0 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
0 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<^(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>s or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<^(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>is
521 0 0 0 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
0 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+](?$term_regex)$>s or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+](?$term_regex)$>is
527 0 0 0 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
0 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
0 0 0 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ /^(?$term_regex)$/s or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ /^(?$term_regex)$/is
588 0 0 12 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
0 0 12 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<(?[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+])(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>s or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<(?[,.?!:;/ \n\-/\*'\#\{\}\(\)\[\]\+])(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>is
595 0 0 12 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
0 0 12 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<^(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>s or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<^(?$term_regex)[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+]>is
602 0 0 12 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
0 0 12 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ m<(?[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+])(?$term_regex)$>s or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ m<(?[,.?!:;/ \n\-/\*'\#\(\)\[\]\{\}\+])(?$term_regex)$>is
609 0 0 12 $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive
12 0 0 !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive
0 0 12 defined $caseSensitive and $caseSensitive == 0 || length $ref_termlist->[$counter][$termField2] <= $caseSensitive and $line =~ /^(?$term_regex)$/s or !defined($caseSensitive) || $caseSensitive < 0 || length $ref_termlist->[$counter][$termField2] > $caseSensitive and $line =~ /^(?$term_regex)$/is