Condition Coverage

blib/lib/Data/Random.pm
Criterion Covered Total %
condition 30 129 23.2


and 2 conditions

line l !l condition
74 0 0 cluck('min value cannot be larger than max value') and return
76 0 0 cluck('min value must be a positive integer') and return
78 0 0 cluck('max value must be a positive integer') and return
86 0 0 cluck('size value must be a positive integer') and return
183 0 0 cluck('set array is not defined') and return
194 0 0 cluck('min value cannot be larger than max value') and return
196 0 0 cluck('min value must be a positive integer') and return
198 0 0 cluck('max value must be a positive integer') and return
206 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
321 0 0 cluck('minimum time is not in valid time format HH:MM:SS') and return
323 0 0 cluck('minimum time is not in valid time format HH:MM:SS') and return
325 0 0 cluck('minimum time is not in valid time format HH:MM:SS') and return
344 0 0 cluck('maximum time is not in valid time format HH:MM:SS') and return
346 0 0 cluck('maximum time is not in valid time format HH:MM:SS') and return
348 0 0 cluck('maximum time is not in valid time format HH:MM:SS') and return
361 0 0 cluck('min time is later than max time') and return
424 0 0 cluck('max_date is later than min date') and return
441 0 0 cluck($@) and return

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
443 0 0 $options{'minwidth'} ||= 1
444 0 0 $options{'maxwidth'} ||= 100
449 0 0 $options{'minheight'} ||= 1
450 0 0 $options{'maxheight'} ||= 100
455 0 0 $options{'minpixels'} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
76 0 0 130 $options{'min'} < 0 or $options{'min'} != int $options{'min'}
78 0 0 130 $options{'max'} < 0 or $options{'max'} != int $options{'max'}
82 78 52 0 $options{'size'} ||= int(rand $options{'max'} - $options{'min'} + 1) + $options{'min'}
86 0 0 130 $options{'size'} < 0 or $options{'size'} != int $options{'size'}
185 1266 0 1898 exists $options{'min'} or exists $options{'max'}
1266 1265 633 exists $options{'min'} or exists $options{'max'} or exists $options{'size'}
191 1266 1898 0 $options{'max'} ||= @{$options{'set'};}
196 0 0 3164 $options{'min'} < 0 or $options{'min'} != int $options{'min'}
198 0 0 3164 $options{'max'} < 0 or $options{'max'} != int $options{'max'}
202 2531 633 0 $options{'size'} ||= int(rand $options{'max'} - $options{'min'} + 1) + $options{'min'}
206 0 0 3164 $options{'size'} < 0 or $options{'size'} != int $options{'size'}
321 0 0 756010 $min_hour > 23 or $min_hour < 0
323 0 0 756010 $min_min > 59 or $min_min < 0
325 0 0 756010 $min_sec > 59 or $min_sec < 0
344 0 0 180020 $max_hour > 23 or $max_hour < 0
346 0 0 180020 $max_min > 59 or $max_min < 0
348 0 0 180020 $max_sec > 59 or $max_sec < 0
445 0 0 0 $options{'width'} ||= int(rand $options{'maxwidth'} - $options{'minwidth'} + 1) + $options{'minwidth'}
451 0 0 0 $options{'height'} ||= int(rand $options{'maxheight'} - $options{'minheight'} + 1) + $options{'minheight'}
456 0 0 0 $options{'maxpixels'} ||= $options{'width'} * $options{'height'}
457 0 0 0 $options{'pixels'} ||= int(rand $options{'maxpixels'} - $options{'minpixels'} + 1) + $options{'minpixels'}
461 0 0 0 $options{'bgcolor'} ||= _color()
462 0 0 0 $options{'fgcolor'} ||= _color()