Branch Coverage

blib/lib/Lingua/DxExtractor.pm
Criterion Covered Total %
branch 0 42 0.0


line true false branch
34 0 0 unless $self->target_phrases
48 0 0 unless $text
51 0 0 if ($start_phrase and $text =~ /$start_phrase(.*)\Z/xi)
61 0 0 if scalar grep({$line =~ /\b$_\b/i;} @{$self->skip_phrases;})
62 0 0 unless grep {$line =~ /\b$_\b/i;} @{$self->target_phrases;}
67 0 0 if ($n_scope)
77 0 0 if (scalar @match)
85 0 0 if (scalar keys %{$self->target_sentence;}) { }
0 0 elsif (not scalar keys %{$self->target_sentence;}) { }
91 0 0 if (scalar keys %final_answer > 1)
96 0 0 if ($final_answer{'absent'} > $final_answer{'present'}) { }
0 0 elsif ($final_answer{'present'} > $final_answer{'absent'}) { }
111 0 0 if (grep {$text =~ /$_/i;} @{$self->absolute_negative_phrases;} and $self->final_answer eq 'present')
115 0 0 if (grep {$text =~ /$_/i;} @{$self->absolute_present_phrases;} and $self->final_answer eq 'absent')
124 0 0 if $self->skip_phrases
125 0 0 if $self->absolute_present_phrases
126 0 0 if $self->absolute_negative_phrases
127 0 0 if $self->start_phrase
136 0 0 $self->ambiguous == 3 ? :
0 0 $self->ambiguous == 2 ? :
0 0 $self->ambiguous == 1 ? :