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
194 402 0 200 defined $x and int $x eq $x
402 0 200 defined $x and int $x eq $x and $x >= 0
199 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'}
240 61922 14648 29 $r < 0.2 and $iterations >= $max_iterations / 2

or 2 conditions

line l !l condition
65 2607 12 $phrase{$p} ||= []
145 0 4 $phrase{$p} ||= []
155 305741 12 $self->phrases->{$type} ||= []
165 77197 0 $self->phrases->{$type} ||= []
204 100 201 $options{'min'} ||= 0
205 100 201 $options{'max'} ||= 140
210 301 0 $self->random_phrase(&random(("\x{3002}", "\x{ff01}", "\x{ff1f}"))) || "\x{2026}"
213 84 0 $self->random_phrase(&random(("\x{3002}", "\x{ff01}", "\x{ff1f}"))) || "\x{2026}"

or 3 conditions

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