Branch Coverage

lib/Sisimai/String.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
40 0 2685 unless ref $argv1 eq "SCALAR"
41 40 2645 unless $$argv1 =~ /\A[\x00-\x7f]+\z/
57 885 2199 if index($argv1, " ") == 0
58 507 2577 if substr($argv1, -1, 1) eq " "
71 0 24 unless ref $argv1 eq "SCALAR"
79 22 1 if ($loose or $plain =~ /$match->{'html'}/ or $plain =~ /$match->{'body'}/)
98 23 0 if (length $$argv1 > length $plain)
119 11 49 ref $hasguessed ? :
122 60 0 if ($encodefrom)
127 1 59 if $encodefrom =~ /$dontencode/
128 10 49 if $encodingto =~ /$dontencode/
138 49 11 if $hasencoded
139 0 11 unless $encodingto
140 11 0 if $encodingto =~ /$dontencode/