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
185 0 0 cluck("set array is not defined") and return
197 0 0 cluck("min value cannot be larger than max value") and return
199 0 0 cluck("min value must be a positive integer") and return
201 0 0 cluck("max value must be a positive integer") and return
209 0 0 cluck("size value must be a positive integer") and return
211 0 0 cluck("size value exceeds set size") and return
252 0 0 cluck("set array is not defined") and return
296 0 0 cluck("max date is later than min date") and return
365 0 0 cluck("min time is later than max time") and return
428 0 0 cluck("max_date is later than min date") and return
445 0 0 cluck($@) and return

and 3 conditions

line !l l&&!r l&&r condition
249 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'} ||= ""
192 1232 1932 $options{'min'} ||= 0
447 0 0 $options{'minwidth'} ||= 1
448 0 0 $options{'maxwidth'} ||= 100
453 0 0 $options{'minheight'} ||= 1
454 0 0 $options{'maxheight'} ||= 100
459 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'}
189 1266 0 1898 exists $options{'min'} or exists $options{'max'}
0 1265 633 exists $options{'min'} or exists $options{'max'} or exists $options{'size'}
193 1266 1898 0 $options{'max'} ||= @{$options{'set'};}
199 0 0 3164 $options{'min'} < 0 or $options{'min'} != int $options{'min'}
201 0 0 3164 $options{'max'} < 0 or $options{'max'} != int $options{'max'}
205 2531 631 2 $options{'size'} ||= int(rand $options{'max'} - $options{'min'} + 1) + $options{'min'}
209 0 0 3164 $options{'size'} < 0 or $options{'size'} != int $options{'size'}
451 0 0 0 $options{'width'} ||= int(rand $options{'maxwidth'} - $options{'minwidth'} + 1) + $options{'minwidth'}
457 0 0 0 $options{'height'} ||= int(rand $options{'maxheight'} - $options{'minheight'} + 1) + $options{'minheight'}
460 0 0 0 $options{'maxpixels'} ||= $options{'width'} * $options{'height'}
463 0 0 0 $options{'pixels'} ||= int(rand $options{'maxpixels'} - $options{'minpixels'} + 1) + $options{'minpixels'}
465 0 0 0 $options{'bgcolor'} ||= _color()
466 0 0 0 $options{'fgcolor'} ||= _color()