blib/lib/Acme/Lingua/ZH/Remix.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 34 | 70.5 |
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 | 55927 | 23257 | 46 | $r < 0.2 and $iterations >= $max_iterations / 2 |
line | l | !l | condition |
---|---|---|---|
65 | 2607 | 12 | $phrase{$p} ||= [] |
145 | 0 | 4 | $phrase{$p} ||= [] |
155 | 316872 | 12 | $self->phrases->{$type} ||= [] |
165 | 79806 | 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 | 72 | 0 | $self->random_phrase(&random(("\x{3002}", "\x{ff01}", "\x{ff1f}"))) || "\x{2026}" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
223 | 301 | 0 | 0 | int rand($options{'max'} - $options{'min'}) + $options{'min'} || $average || $options{'max'} |