Condition Coverage

blib/lib/Acme/Lingua/ZH/Remix.pm
Criterion Covered Total %
condition 24 34 70.5


and 3 conditions

line !l l&&!r l&&r condition
198 402 0 200 defined $x and int $x eq $x
402 0 200 defined $x and int $x eq $x and $x >= 0
203 201 0 100 defined $options{'max'} and defined $options{'min'}
201 100 0 defined $options{'max'} and defined $options{'min'} and $options{'max'} < $options{'min'}
244 50190 19709 39 $r < 0.2 and $iterations >= $max_iterations / 2

or 2 conditions

line l !l condition
67 2607 12 $phrase{$p} ||= []
147 0 4 $phrase{$p} ||= []
159 279208 12 $self->phrases->{$type} ||= []
169 70540 0 $self->phrases->{$type} ||= []
208 100 201 $options{'min'} ||= 0
209 100 201 $options{'max'} ||= 140
214 301 0 $self->random_phrase(&random(("\x{3002}", "\x{ff01}", "\x{ff1f}"))) || "\x{2026}"
217 84 0 $self->random_phrase(&random(("\x{3002}", "\x{ff01}", "\x{ff1f}"))) || "\x{2026}"

or 3 conditions

line l !l&&r !l&&!r condition
227 301 0 0 int rand($options{'max'} - $options{'min'}) + $options{'min'} || $average || $options{'max'}