Branch Coverage

blib/lib/Encode/Guess.pm
Criterion Covered Total %
branch 44 56 78.5


line true false branch
35 0 4 ref $class ? :
42 4 0 ref $class ? :
44 0 7 unless my $e = &find_encoding($c)
53 0 2 unless (ref $guessed)
58 0 2 if $chk
68 29 0 ref $class ? :
72 1 28 unless defined $octet and length $octet
75 1 27 if (&Encode::is_utf8($octet))
76 1 0 unless $NoUTFAutoGuess
82 27 0 unless ($NoUTFAutoGuess)
84 0 27 if defined $BOM and $BOM eq $UTF8_BOM
87 1 26 if defined $BOM and $BOM == 65279 || $BOM == 4294836224
90 1 25 if defined $BOM and $BOM == 65279 || $BOM == 65534
92 4 21 if ($octet =~ /\x00/o)
96 2 2 if ($octet =~ /\x00\x00/o) { }
99 50 50 if $char & 65535
100 50 50 if $char & 4294901760
106 50 50 if $char & 255
107 50 50 if $char & 65280
111 0 4 if $be == $le
114 2 2 $be > $le ? :
120 0 7 unless my $e = &find_encoding($c)
128 2 67 if ($line =~ /\e/o)
132 2 6 if ref $try{$k} eq 'Encode::XS'
141 154 57 if ($scratch eq '') { }
152 3 66 unless %ok
153 14 52 if (scalar keys %ok == 1)
161 0 4 unless $try{'ascii'}