Branch Coverage

blib/lib/Text/GuessEncoding.pm
Criterion Covered Total %
branch 0 82 0.0


line true false branch
89 0 0 if (utf8::is_utf8($text)) { }
124 0 0 if defined $t
125 0 0 unless $n
127 0 0 if sysread($FILE, $buf, 1) <= 0
165 0 0 unless $t->setattr(fileno $FILE, 0)
190 0 0 if $r =~ /^\33\[(\d+);(\d+)R/
212 0 0 if $main::verbose > 1
215 0 0 unless defined $o
218 0 0 if ($$o{'x'} != 0)
220 0 0 if $$o{'x'} >= 20
228 0 0 if $main::verbose
233 0 0 if $$p{'x'} != 1
239 0 0 if $main::verbose
240 0 0 unless defined $p
245 0 0 if $$p{'x'} > 4 or $$p{'x'} < 2
249 0 0 if $$p{'x'} == 2 or $$p{'x'} == 3
250 0 0 if $$p{'x'} == 4
251 0 0 if $main::verbose
257 0 0 if $main::verbose
259 0 0 unless defined $p
264 0 0 unless $main::verbose
266 0 0 if ($$p{'x'} == 4)
268 0 0 if $maybe eq 'utf8'
272 0 0 if $maybe eq 'latin1'
317 0 0 if ($utf8_len) { }
0 0 elsif ($v > 7 and $v < 128) { }
0 0 elsif (($v & 224) == 192) { }
0 0 elsif (($v & 240) == 224) { }
0 0 elsif (($v & 248) == 240) { }
0 0 elsif ($typ_latin{$v}) { }
319 0 0 if (($v & 192) == 128) { }
322 0 0 unless (--$utf8_len)
331 0 0 if ($utf8_size - $utf8_len == 1 and $typ_latin{$utf8_start}) { }
333 0 0 if ($v > 7 and $v < 128) { }
0 0 elsif ($typ_latin{$v}) { }
495 0 0 if ($v < 128) { }
502 0 0 if (defined(my $a = $ascii_map{$name})) { }
0 0 elsif ($name =~ /^LATIN (SMALL )?LETTER (FINAL |SMALL CAPITAL |INVERTED )*(\w)/) { }
0 0 elsif ($name =~ /^LATIN CAPITAL LETTER (FINAL |SMALL CAPITAL |INVERTED )*(\w)/) { }
0 0 elsif ($name =~ /^(ARABIC|GREEK) (SMALL )?LETTER (FINAL |SMALL CAPITAL |INVERTED )*(\w+)$/) { }
0 0 elsif ($name =~ /^(ARABIC|GREEK) CAPITAL LETTER (FINAL |SMALL CAPITAL |INVERTED )*(\w+)$/) { }