Condition Coverage

blib/lib/Data/Random.pm
Criterion Covered Total %
condition 26 102 25.4


and 2 conditions

line l !l condition
75 0 0 cluck('min value cannot be larger than max value') and return
77 0 0 cluck('min value must be a positive integer') and return
79 0 0 cluck('max value must be a positive integer') and return
87 0 0 cluck('size value must be a positive integer') and return
183 0 0 cluck('set array is not defined') and return
195 0 0 cluck('min value cannot be larger than max value') and return
197 0 0 cluck('min value must be a positive integer') and return
199 0 0 cluck('max value must be a positive integer') and return
207 0 0 cluck('size value must be a positive integer') and return
209 0 0 cluck('size value exceeds set size') and return
250 0 0 cluck('set array is not defined') and return
294 0 0 cluck('max date is later than min date') and return
363 0 0 cluck('min time is later than max time') and return
426 0 0 cluck('max_date is later than min date') and return
443 0 0 cluck($@) and return

and 3 conditions

line !l l&&!r l&&r condition
247 29 0 1 @_ == 1 && ref $_[0] eq 'ARRAY'

or 2 conditions

line l !l condition
67 50 80 $options{'min'} ||= 1
68 52 78 $options{'max'} ||= 1
71 130 0 $options{'wordlist'} ||= ''
190 1232 1932 $options{'min'} ||= 0
445 0 0 $options{'minwidth'} ||= 1
446 0 0 $options{'maxwidth'} ||= 100
451 0 0 $options{'minheight'} ||= 1
452 0 0 $options{'maxheight'} ||= 100
457 0 0 $options{'minpixels'} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
77 0 0 130 $options{'min'} < 0 or $options{'min'} != int $options{'min'}
79 0 0 130 $options{'max'} < 0 or $options{'max'} != int $options{'max'}
83 78 52 0 $options{'size'} ||= int(rand $options{'max'} - $options{'min'} + 1) + $options{'min'}
87 0 0 130 $options{'size'} < 0 or $options{'size'} != int $options{'size'}
187 1266 0 1898 exists $options{'min'} or exists $options{'max'}
0 1265 633 exists $options{'min'} or exists $options{'max'} or exists $options{'size'}
191 1266 1898 0 $options{'max'} ||= @{$options{'set'};}
197 0 0 3164 $options{'min'} < 0 or $options{'min'} != int $options{'min'}
199 0 0 3164 $options{'max'} < 0 or $options{'max'} != int $options{'max'}
203 2531 631 2 $options{'size'} ||= int(rand $options{'max'} - $options{'min'} + 1) + $options{'min'}
207 0 0 3164 $options{'size'} < 0 or $options{'size'} != int $options{'size'}
449 0 0 0 $options{'width'} ||= int(rand $options{'maxwidth'} - $options{'minwidth'} + 1) + $options{'minwidth'}
455 0 0 0 $options{'height'} ||= int(rand $options{'maxheight'} - $options{'minheight'} + 1) + $options{'minheight'}
458 0 0 0 $options{'maxpixels'} ||= $options{'width'} * $options{'height'}
461 0 0 0 $options{'pixels'} ||= int(rand $options{'maxpixels'} - $options{'minpixels'} + 1) + $options{'minpixels'}
463 0 0 0 $options{'bgcolor'} ||= _color()
464 0 0 0 $options{'fgcolor'} ||= _color()