Condition Coverage

blib/lib/Venus/Random.pm
Criterion Covered Total %
condition 28 43 65.1


and 3 conditions

line !l l&&!r l&&r condition
88 0 0 0 $tmp = $from and $from = $upto
0 0 0 $tmp = $from and $from = $upto and $upto = $tmp
123 385 0 0 $value < 0 && $value > -1
306 28 51 $value < 1 && $value > 0
143 2666 0 0 not defined $upto and $from == 0

or 2 conditions

line l !l condition
85 102 204 $from //= 0
118 153 232 $code ||= "digit"
131 153 357 $upto //= 0
160 204 128 $code ||= "digit"
161 281 51 $times ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
86 102 182 22 $upto //= $self->number
90 153 153 0 $place //= $self->nonzero
132 204 278 28 $from //= $self->digit
149 1768 0 898 not $from or $from > $ceil
150 0 0 2666 not $upto or $upto > $ceil
171 1 0 83 !$seed || $seed =~ /\D/u