blib/lib/Venus/Random.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 28 | 46 | 60.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
90 | 0 | 0 | 0 | $tmp = $from and $from = $upto |
0 | 0 | 0 | $tmp = $from and $from = $upto and $upto = $tmp | |
125 | 385 | 0 | 0 | $value < 0 && $value > -1 |
306 | 28 | 51 | $value < 1 && $value > 0 | |
145 | 2666 | 0 | 0 | not defined $upto and $from == 0 |
line | l | !l | condition |
---|---|---|---|
87 | 102 | 204 | $from //= 0 |
120 | 153 | 232 | $code ||= "digit" |
133 | 153 | 357 | $upto //= 0 |
162 | 204 | 128 | $code ||= "digit" |
163 | 281 | 51 | $times ||= 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
40 | 0 | 0 | 0 | ref $self || $self |
88 | 102 | 182 | 22 | $upto //= $self->number |
92 | 153 | 153 | 0 | $place //= $self->nonzero |
134 | 204 | 278 | 28 | $from //= $self->digit |
151 | 1768 | 0 | 898 | not $from or $from > $ceil |
152 | 0 | 0 | 2666 | not $upto or $upto > $ceil |
173 | 1 | 0 | 83 | !$seed || $seed =~ /\D/u |