Branch Coverage

blib/lib/Treex/Tool/Segment/RuleBased.pm
Criterion Covered Total %
branch 7 36 19.4


line true false branch
87 1 0 if ($self->use_paragraphs)
91 0 1 if ($self->use_lines)
111 0 2 $self->segment_too_long($_) ? :
130 0 0 $self->segment_too_long($_) ? :
133 0 0 $self->segment_too_long($_) ? :
136 0 0 $self->segment_too_long($_) ? :
144 0 2 if $self->limit_words == 0
148 0 2 if $wc >= $self->limit_words
193 0 2 if $self->detect_lists == 0
197 2 0 if $self->detect_lists > $wc
216 0 0 if $neg
219 0 0 $items > 0 ? :
222 0 0 if ($items >= $MIN_LIST_ITEMS and $len < $max and $len > $min and !$sel_len || $len * $PRIORITY < $sel_len)
229 0 0 unless $sel_list_type
237 0 0 if $neg
240 0 0 if ($sel_list_type->{'type'} eq 'e') { }
281 0 0 if $self->segment_too_long($_)
295 0 0 if $limit > @tokens - 1