Branch Coverage

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


line true false branch
33 0 0 unless $self->target_phrases
47 0 0 unless $text
50 0 0 if ($start_phrase and $text =~ /$start_phrase(.*)\Z/xi)
60 0 0 if scalar grep({$line =~ /\b$_\b/i;} @{$self->skip_phrases;})
61 0 0 unless grep {$line =~ /\b$_\b/i;} @{$self->target_phrases;}
66 0 0 if ($n_scope)
76 0 0 if (scalar @match)
84 0 0 if (scalar keys %{$self->target_sentence;}) { }
0 0 elsif (not scalar keys %{$self->target_sentence;}) { }
90 0 0 if (scalar keys %final_answer > 1)
95 0 0 if ($final_answer{'absent'} > $final_answer{'present'}) { }
0 0 elsif ($final_answer{'present'} > $final_answer{'absent'}) { }
109 0 0 if (grep {$text =~ /$_/i;} @{$self->absolute_present_phrases;} and $self->final_answer eq 'absent')
113 0 0 if (grep {$text =~ /$_/i;} @{$self->absolute_negative_phrases;} and $self->final_answer eq 'present')
123 0 0 if $self->skip_phrases
124 0 0 if $self->absolute_present_phrases
125 0 0 if $self->absolute_negative_phrases
126 0 0 if $self->start_phrase
135 0 0 $self->ambiguous == 3 ? :
0 0 $self->ambiguous == 2 ? :
0 0 $self->ambiguous == 1 ? :