Branch Coverage

blib/lib/Alvis/QueryFilter.pm
Criterion Covered Total %
branch 0 208 0.0


line true false branch
85 0 0 unless (defined $$self{'CQLParser'})
110 0 0 if (defined @_)
124 0 0 unless (defined $errcode)
129 0 0 if (exists $ErrMsgs{$errcode}) { }
131 0 0 if ($errcode == $ERR_OK) { }
138 0 0 if (defined $errmsg)
194 0 0 if (defined $lemma_dict_f) { }
202 0 0 if (defined $term_dict_f) { }
210 0 0 if (defined $NE_dict_f) { }
218 0 0 if (defined $typing_rules_f) { }
226 0 0 if (defined $onto_nodes_f) { }
234 0 0 if (defined $onto_mapping_f) { }
264 0 0 unless (defined open(F, '<:utf8', $f))
300 0 0 unless (defined open(F, '<:utf8', $f))
312 0 0 if ($verbose and defined $dict{$cf} and $dict{$cf} ne $can)
318 0 0 if (scalar @tt > $term_max_len)
322 0 0 if ($$self{'termMaxLen'} < $term_max_len)
339 0 0 unless (defined open(F, '<:utf8', $f))
351 0 0 if ($verbose and defined $dict{$cf} and $dict{$cf} ne $can)
357 0 0 if (scalar @tt > $term_max_len)
361 0 0 if ($$self{'termMaxLen'} < $term_max_len)
377 0 0 unless (defined open(F, '<:utf8', $f))
403 0 0 unless (defined open(F, '<:utf8', $f))
429 0 0 unless (defined open(F, '<:utf8', $f))
474 0 0 unless (defined $lemmatized_by_tagger)
484 0 0 unless (defined $lemmatized)
493 0 0 unless (defined $term_NE_expanded)
502 0 0 unless (defined $typing_expanded)
509 0 0 unless (defined $onto_expanded)
524 0 0 if (/&query=([^\&]*)/)
545 0 0 if ($p =~ /^query=(.*)$/) { }
554 0 0 unless (defined $query)
575 0 0 if ($@)
589 0 0 unless (defined $seq_list)
598 0 0 unless (defined $cats)
617 0 0 unless (defined $CQL_tail)
627 0 0 if ($cats)
653 0 0 unless (defined $$self{'currSeqList'})
664 0 0 unless (defined $query_XML)
690 0 0 if ($CQL_parse_node->isa('CQL::AndNode')) { }
0 0 elsif ($CQL_parse_node->isa('CQL::OrNode')) { }
0 0 elsif ($CQL_parse_node->isa('CQL::NotNode')) { }
0 0 elsif ($CQL_parse_node->isa('CQL::TermNode')) { }
726 0 0 unless (defined $index_name)
739 0 0 if ($qualifier eq 'text' or $qualifier eq 'srw.ServerChoice')
768 0 0 if ($CQL_parse_node->isa('CQL::AndNode')) { }
0 0 elsif ($CQL_parse_node->isa('CQL::OrNode')) { }
0 0 elsif ($CQL_parse_node->isa('CQL::NotNode')) { }
0 0 elsif ($CQL_parse_node->isa('CQL::TermNode')) { }
773 0 0 if ($text_catq_l and $text_catq_r)
796 0 0 if ($qualifier ne 'text' and $qualifier ne 'srw.ServerChoice') { }
827 0 0 if ($POS eq 'INDEX' and $token =~ /^([a-z0-9\-\_\.]+)=(.*)/) { }
0 0 elsif (defined $max_type) { }
0 0 elsif (defined $lemma and $POS =~ /$$self{'lemmaSearch'}/o and $$self{'keepLemmas'}) { }
831 0 0 if ($max_type eq 'term_dict') { }
0 0 elsif ($max_type eq 'NE_dict') { }
842 0 0 if (not defined $max_type or $max_type ne 'term_dict' or not defined $match_can_form or $can_form ne $match_can_form)
851 0 0 if (defined $onto and $onto ne '') { }
872 0 0 if (not defined $max_type or $max_type ne 'NE_dict' or not defined $match_can_form or $can_form ne $match_can_form)
881 0 0 if (not defined $type or $type eq '') { }
0 0 elsif (not $type =~ m[/]) { }
905 0 0 if (scalar @seq_items <= 1) { }
919 0 0 unless ($term =~ /^\"/ and $term =~ /\"$/)
922 0 0 if ($$self{'textFields'} =~ / /)
959 0 0 if (defined $max_type) { }
0 0 elsif (defined $lemma and $POS =~ /$$self{'lemmaSearch'}/o and $$self{'keepLemmas'}) { }
961 0 0 if ($max_type eq 'term_dict') { }
0 0 elsif ($max_type eq 'NE_dict') { }
972 0 0 if (not defined $max_type or $max_type ne 'term_dict' or $match_can_form ne $can_form)
983 0 0 if (defined $onto and $onto ne '')
1001 0 0 if ($max_type ne 'NE_dict' or $match_can_form ne $can_form)
1011 0 0 if (defined $type and $type ne '')
1012 0 0 if (not $type =~ m[/]) { }
1049 0 0 if ($POS =~ /^V.*/) { }
0 0 elsif ($POS =~ /^N.*/) { }
1082 0 0 if ($POS eq 'CD') { }
0 0 elsif ($token eq ucfirst $token and lc $token eq $lemma) { }
1106 0 0 if (defined $$self{'lemma_dict'}) { }
1114 0 0 if ($token =~ /^([a-z0-9\-\_\.]+)=(.*)/i) { }
0 0 elsif ($token =~ /\#\#/) { }
0 0 elsif ($token =~ /_/) { }
0 0 elsif ($lemma eq '') { }
1129 0 0 if (defined $$self{'lemma_dict'}{$token}{'lemma'}) { }
1132 0 0 if (defined $$self{'lemma_dict'}{$token}{'POS'})
1157 0 0 if ($token =~ /^([a-z0-9\-\_\.]+)=(.*)/i) { }
0 0 elsif ($token =~ /\#\#/) { }
0 0 elsif ($token =~ /_/) { }
0 0 elsif ($lemma eq '') { }
1190 0 0 if (not defined $$self{'term_dict'} && defined $$self{'NE_dict'}) { }
1202 0 0 if ($POS eq 'INDEX' or $POS eq 'TEXT')
1216 0 0 if ($maxmax > $$self{'termMaxLen'})
1220 0 0 if ($POS eq 'TAG')
1224 0 0 if ($i > 0)
1227 0 0 if ($tpos eq 'INDEX' or $tpos eq 'TAG' or $tpos eq 'TEXT')
1232 0 0 if (not defined $$lemmatized[$start + $i][2]) { }
1242 0 0 if (defined($max_match = $$self{'term_dict'}{&{$$self{'tcanon'};}($term)})) { }
0 0 elsif (defined($max_match = $$self{'NE_dict'}{&{$$self{'ncanon'};}($term)})) { }
1255 0 0 if ($max) { }
1283 0 0 if (not defined $$self{'typing_rules'}) { }
1296 0 0 if (defined $max_type and $max_type eq 'NE_dict' and defined $match_can_form and defined $$self{'typing_rules'}{$match_can_form})
1318 0 0 if (not defined $$self{'onto_nodes'} && defined $$self{'onto_paths'}) { }
1329 0 0 if (defined $match_can_form and defined $$self{'onto_nodes'}{$match_can_form})
1333 0 0 if (defined $$self{'onto_paths'}{$node})
1336 0 0 if ($path ne '')