Branch Coverage

blib/lib/Acme/Lingua/ZH/Remix.pm
Criterion Covered Total %
branch 16 20 80.0


line true false branch
95 1 5 unless $corpus
112 111 2735 unless my $p = shift @x
157 0 316884 if $count == 0
165 0 79806 unless &random(@{$self->phrases->{$type} ||= [];})
194 0 200 unless (defined $x and int $x eq $x and $x >= 0)
199 0 100 if (defined $options{'max'} and defined $options{'min'} and $options{'max'} < $options{'min'})
233 3353 76080 if ($l + length($p) < $options{'max'})
239 203 79230 if $r < 0.1
240 46 79184 if $r < 0.2 and $iterations >= $max_iterations / 2
247 152 149 if (rand > 0.5) { }