Branch Coverage

blib/lib/Lingua/DxExtractor.pm
Criterion Covered Total %
branch 0 30 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')
131 0 0 $self->ambiguous ? :