Branch Coverage

blib/lib/Lingua/EN/Tokenizer/Offsets.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
35 0 2 unless defined $text
55 0 4 if ref $text
61 31 916 if ($length <= 0)
66 67 849 if ($s =~ /^\s*$/u)
71 849 0 if (defined $1)
72 849 0 if (defined $2)
82 0 2 if ref $text
113 37 2059 if ($s =~ /^$pat(?!$)/gu)
117 37 0 if $first != $second
123 180 2 if $first != $second
125 39 2057 if ($s =~ /(?
129 39 0 if $first != $second
132 50 2046 if @$split_points
144 464 0 unless $start == $$p[0]
154 0 2 if ref $text
170 0 2 unless open my $prefix, '<', $prefixfile
172 28 186 if /^#/u or /^\s*$/u
175 6 180 if ($item =~ /(.*)[\s]+(\#NUMERIC_ONLY\#)/u) { }
183 0 2 if ref $text
198 24 392 if ($s =~ /^(\S+)\.\s?$/u)
200 0 0 unless ($pre =~ /\./u and $pre =~ /\p{IsAlpha}/u or $$nonbpref{$pre} and $$nonbpref{$pre} == 1 or $t =~ /^[\p{IsLower}]/u or $$nonbpref{$pre} and $$nonbpref{$pre} == 2 and $t =~ /^\d+/u)
210 2 13 unless defined $+[1]