blib/lib/Search/Tools/Snipper.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 47 | 51.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
133 | 26 | 5 | 2 | length $text < $self->max_chars and not $self->ignore_length |
160 | 29 | 1 | 1 | length $s > $self->max_chars * 4 and not $self->ignore_length |
313 | 5 | 3 | 26 | $last_ending and $start < $last_ending |
598 | 1 | 0 | 0 | $self->debug and exists $ranges->{$pos} |
659 | 0 | 0 | 0 | --$prefix_start >= 0 and substr($$text, $prefix_start, 1) =~ /(\S)/ |
677 | 0 | 1 | 3 | $end <= $t_len and substr($$text, $end++, 1) =~ /(\S)/ |
714 | 1 | 0 | 0 | $suffix =~ /<(\w+)/ and not $suffix =~ m[$1>] |
line | l | !l | condition |
---|---|---|---|
366 | 0 | 0 | $self->debug || 0 |
374 | 0 | 0 | $self->occur || 1 |
489 | 1 | 0 | $snip_per_q ||= 1 |
604 | 1 | 0 | $blen || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
103 | 27 | 4 | 0 | $self->type || $DefaultSnipper |
153 | 0 | 31 | 0 | $self->snipper || $self->_pick_snipper($text) |
160 | 29 | 0 | 1 | length $s || $self->ignore_length |
320 | 0 | 23 | 11 | $pos > $end or $pos < $start |
656 | 1 | 0 | 0 | $prefix =~ /^\s/ or substr($$text, $prefix_start - 1, 1) =~ /(\s)/ |
676 | 0 | 0 | 1 | $suffix =~ /\s$/ or substr($$text, $end, 1) =~ /(\s)/ |